mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 12:40:02 +00:00
buff: set buff and debuff backdrops only once
This commit is contained in:
+3
-4
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user