api: only add shadow to specific frames

This commit is contained in:
shagu
2019-06-02 20:41:09 +02:00
parent 85b4c4334a
commit 545be99fd7
63 changed files with 150 additions and 17 deletions
+8 -2
View File
@@ -823,6 +823,8 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
f.RegisterEvent = function() return end
end
CreateBackdropShadow(f)
f.hp = CreateFrame("Frame",nil, f)
f.hp.bar = CreateFrame("StatusBar", nil, f.hp)
f.power = CreateFrame("Frame",nil, f)
@@ -1154,7 +1156,9 @@ function pfUI.uf:RefreshUnit(unit, component)
texture, stacks = UnitBuff(unitstr, i)
end
pfUI.api.CreateBackdrop(unit.buffs[i], default_border)
CreateBackdrop(unit.buffs[i], default_border)
CreateBackdropShadow(unit.buffs[i])
unit.buffs[i].texture:SetTexture(texture)
if texture then
@@ -1219,7 +1223,9 @@ function pfUI.uf:RefreshUnit(unit, component)
texture, stacks, dtype = UnitDebuff(unitstr, i)
end
pfUI.api.CreateBackdrop(unit.debuffs[i], default_border)
CreateBackdrop(unit.debuffs[i], default_border)
CreateBackdropShadow(unit.debuffs[i])
unit.debuffs[i].texture:SetTexture(texture)
local r,g,b = DebuffTypeColor.none.r,DebuffTypeColor.none.g,DebuffTypeColor.none.b