api: use same shadow conditions as for backdrop

This commit is contained in:
shagu
2019-07-18 20:40:21 +02:00
parent 25f78a6378
commit 798500d6d2
+3
View File
@@ -866,6 +866,9 @@ end
-- Creates a pfUI compatible frame as shadow element
-- 'f' [frame] the frame which should get a backdrop.
function pfUI.api.CreateBackdropShadow(f)
-- exit if now frame was given
if not f then return end
if f.backdrop_shadow or pfUI_config.appearance.border.shadow ~= "1" then
return
end