Commit 9a12eb77 authored by Jordan Deprez's avatar Jordan Deprez

Fix Shadow for DBM and BW

parent f666fa3e
......@@ -7,8 +7,6 @@ local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('BigWigs') then return end
function AS:BigWigs(event, addon)
if BUI.ShadowMode ~= true then return end
if event == 'PLAYER_ENTERING_WORLD' then
if BigWigsLoader then
BigWigsLoader.RegisterMessage('AddOnSkins', "BigWigs_FrameCreated", function(event, frame, name)
......@@ -17,7 +15,7 @@ function AS:BigWigs(event, addon)
frame:ClearAllPoints()
frame:SetPoint('TOP', '$parent', 'BOTTOM', 0, -(AS.PixelPerfect and 2 or 4))
frame:SetHeight(16)
if E.db.benikuiSkins.addonSkins.bigwigs then
if BUI.ShadowMode and E.db.benikuiSkins.addonSkins.bigwigs then
frame:CreateSoftShadow()
end
end
......@@ -28,7 +26,7 @@ function AS:BigWigs(event, addon)
if event == 'ADDON_LOADED' and addon == 'BigWigs_Plugins' then
AS:UnregisterSkinEvent('BigWigs', "ADDON_LOADED")
if E.db.benikuiSkins.addonSkins.bigwigs then
if BUI.ShadowMode and E.db.benikuiSkins.addonSkins.bigwigs then
BigWigsInfoBox:CreateSoftShadow()
BigWigsAltPower:CreateSoftShadow()
end
......@@ -39,7 +37,7 @@ function AS:BigWigs(event, addon)
local CreateBG = function()
local BG = CreateFrame('Frame')
BG:SetTemplate('Transparent')
if E.db.benikuiSkins.addonSkins.bigwigs then
if BUI.ShadowMode and E.db.benikuiSkins.addonSkins.bigwigs then
BG:CreateSoftShadow()
end
......
......@@ -142,7 +142,7 @@ function mod:AddonSkins()
hooksecurefunc(AS, "SkinTab", mod.TabShadowsAS)
if E.db.benikuiSkins.addonSkins.dbm then
if BUI.ShadowMode and E.db.benikuiSkins.addonSkins.dbm then
mod:DBMShadows()
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment