mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
api: do not proceed in backdrop code without frame
This commit is contained in:
@@ -323,6 +323,9 @@ end
|
||||
-- 'legacy' [bool] use legacy backdrop instead of creating frames.
|
||||
-- 'transp' [bool] force default transparency of 0.8.
|
||||
function pfUI.api.CreateBackdrop(f, inset, legacy, transp)
|
||||
-- exit if now frame was given
|
||||
if not f then return end
|
||||
|
||||
-- use default inset if nothing is given
|
||||
local border = inset
|
||||
if not border then
|
||||
|
||||
Reference in New Issue
Block a user