buff: set buff and debuff backdrops only once

This commit is contained in:
shagu
2020-06-02 18:53:43 +02:00
parent c3f286d3b8
commit 442ed2d761
+3 -4
View File
@@ -51,8 +51,6 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
-- Set Buff Texture and Border
buff.mode = buff.btype
buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))
CreateBackdrop(buff)
CreateBackdropShadow(buff)
if buff.btype == "HARMFUL" then
local dtype = GetPlayerBuffDispelType(buff.bid)
@@ -199,8 +197,6 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
end
end)
CreateBackdrop(buff)
CreateBackdropShadow(buff)
RefreshBuffButton(buff)
return buff
@@ -296,6 +292,9 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
buff:ClearAllPoints()
buff:SetPoint("TOPRIGHT", relFrame, "TOPRIGHT",offsetX, offsetY)
CreateBackdrop(buff)
CreateBackdropShadow(buff)
buff.timer:SetFont(pfUI.font_default, fontsize, "OUTLINE")
buff.stacks:SetFont(pfUI.font_default, fontsize+1, "OUTLINE")