mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 10:26:02 +00:00
buff: draw backdrop in update function if required
This commit is contained in:
+5
-3
@@ -52,6 +52,11 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
|
||||
buff.mode = buff.btype
|
||||
buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))
|
||||
|
||||
if not buff.backdrop then
|
||||
CreateBackdrop(buff)
|
||||
CreateBackdropShadow(buff)
|
||||
end
|
||||
|
||||
if buff.btype == "HARMFUL" then
|
||||
local dtype = GetPlayerBuffDispelType(buff.bid)
|
||||
if dtype == "Magic" then
|
||||
@@ -292,9 +297,6 @@ 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