mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-22 12:10:48 +00:00
unitframes: remove icon cache on player buffs
This commit is contained in:
+3
-9
@@ -680,7 +680,6 @@ function pfUI.uf:UpdateConfig()
|
|||||||
f.buffs[i]:SetHeight(f.config.buffsize)
|
f.buffs[i]:SetHeight(f.config.buffsize)
|
||||||
|
|
||||||
if f:GetName() == "pfPlayer" then
|
if f:GetName() == "pfPlayer" then
|
||||||
f.buffs[i]:SetScript("OnShow", BuffOnUpdate)
|
|
||||||
f.buffs[i]:SetScript("OnUpdate", BuffOnUpdate)
|
f.buffs[i]:SetScript("OnUpdate", BuffOnUpdate)
|
||||||
elseif f:GetName() == "pfTarget" and pfUI.expansion == "tbc" then
|
elseif f:GetName() == "pfTarget" and pfUI.expansion == "tbc" then
|
||||||
f.buffs[i]:SetScript("OnUpdate", TargetBuffOnUpdate)
|
f.buffs[i]:SetScript("OnUpdate", TargetBuffOnUpdate)
|
||||||
@@ -1242,20 +1241,15 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
|
|
||||||
local texture, stacks
|
local texture, stacks
|
||||||
if unit.label == "player" then
|
if unit.label == "player" then
|
||||||
stacks = GetPlayerBuffApplications(GetPlayerBuff(PLAYER_BUFF_START_ID+i,"HELPFUL"))
|
stacks = GetPlayerBuffApplications(GetPlayerBuff(PLAYER_BUFF_START_ID+i,"HELPFUL"))
|
||||||
texture = GetPlayerBuffTexture(GetPlayerBuff(PLAYER_BUFF_START_ID+i,"HELPFUL"))
|
texture = GetPlayerBuffTexture(GetPlayerBuff(PLAYER_BUFF_START_ID+i,"HELPFUL"))
|
||||||
else
|
else
|
||||||
texture, stacks = UnitBuff(unitstr, i)
|
texture, stacks = UnitBuff(unitstr, i)
|
||||||
end
|
end
|
||||||
|
|
||||||
unit.buffs[i].texture:SetTexture(texture)
|
unit.buffs[i].texture:SetTexture(texture)
|
||||||
|
|
||||||
if texture then
|
if texture then
|
||||||
if unit.buffs[i].oldtexture ~= texture then
|
|
||||||
unit.buffs[i]:Hide()
|
|
||||||
end
|
|
||||||
|
|
||||||
unit.buffs[i].oldtexture = texture
|
|
||||||
unit.buffs[i]:Show()
|
unit.buffs[i]:Show()
|
||||||
|
|
||||||
if stacks > 1 then
|
if stacks > 1 then
|
||||||
|
|||||||
Reference in New Issue
Block a user