mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
unitframes: set buff backdrop only once
This commit is contained in:
+3
-3
@@ -624,6 +624,9 @@ function pfUI.uf:UpdateConfig()
|
||||
f.buffs[i].cd:SetAlpha(0)
|
||||
f.buffs[i].id = i
|
||||
|
||||
CreateBackdrop(f.buffs[i], default_border)
|
||||
CreateBackdropShadow(f.buffs[i])
|
||||
|
||||
f.buffs[i]:RegisterForClicks("RightButtonUp")
|
||||
f.buffs[i]:ClearAllPoints()
|
||||
|
||||
@@ -1219,9 +1222,6 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
texture, stacks = UnitBuff(unitstr, i)
|
||||
end
|
||||
|
||||
CreateBackdrop(unit.buffs[i], default_border)
|
||||
CreateBackdropShadow(unit.buffs[i])
|
||||
|
||||
unit.buffs[i].texture:SetTexture(texture)
|
||||
|
||||
if texture then
|
||||
|
||||
Reference in New Issue
Block a user