mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +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.mode = buff.btype
|
||||||
buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))
|
buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))
|
||||||
|
|
||||||
|
if not buff.backdrop then
|
||||||
|
CreateBackdrop(buff)
|
||||||
|
CreateBackdropShadow(buff)
|
||||||
|
end
|
||||||
|
|
||||||
if buff.btype == "HARMFUL" then
|
if buff.btype == "HARMFUL" then
|
||||||
local dtype = GetPlayerBuffDispelType(buff.bid)
|
local dtype = GetPlayerBuffDispelType(buff.bid)
|
||||||
if dtype == "Magic" then
|
if dtype == "Magic" then
|
||||||
@@ -292,9 +297,6 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
|
|||||||
buff:ClearAllPoints()
|
buff:ClearAllPoints()
|
||||||
buff:SetPoint("TOPRIGHT", relFrame, "TOPRIGHT",offsetX, offsetY)
|
buff:SetPoint("TOPRIGHT", relFrame, "TOPRIGHT",offsetX, offsetY)
|
||||||
|
|
||||||
CreateBackdrop(buff)
|
|
||||||
CreateBackdropShadow(buff)
|
|
||||||
|
|
||||||
buff.timer:SetFont(pfUI.font_default, fontsize, "OUTLINE")
|
buff.timer:SetFont(pfUI.font_default, fontsize, "OUTLINE")
|
||||||
buff.stacks:SetFont(pfUI.font_default, fontsize+1, "OUTLINE")
|
buff.stacks:SetFont(pfUI.font_default, fontsize+1, "OUTLINE")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user