Fix aura icons not always showing on custom bars

This commit is contained in:
Parnic
2023-05-18 10:17:13 -05:00
parent 573049f77e
commit 343ac7b70b
3 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,7 @@ v1.14.21:
- Fixed TargetCC/FocusCC modules on Wrath Classic.
- Fixed disabled Buff/Debuff Watchers showing a static gray bar when set to When Missing or Always display modes.
- Fixed Buff/Debuff Watchers showing an empty bar when set to Missing mode. If the background was disabled, this looked like just a floating spell icon.
- Fixed spell icons sometimes not showing up for custom bars until the tracked spell had been cast once.
v1.14.20:

View File

@ -83,6 +83,7 @@ function IceCustomBar.prototype:Enable(core)
self:FixupTextColors()
self:SetCustomTextColor(self.frame.bottomUpperText, self.moduleSettings.upperTextColor)
self:SetCustomTextColor(self.frame.bottomLowerText, self.moduleSettings.lowerTextColor)
self:UpdateAuraIcon()
end
function IceCustomBar.prototype:Disable(core)
@ -204,6 +205,7 @@ end
function IceCustomBar.prototype:Redraw()
IceCustomBar.super.prototype.Redraw(self)
self:UpdateAuraIcon()
self:UpdateCustomBar(self.unit)
end
@ -903,3 +905,13 @@ function IceCustomBar.prototype:Show(bShouldShow, bForceHide)
IceCustomBar.super.prototype.Show(self, bShouldShow)
end
end
function IceCustomBar.prototype:UpdateAuraIcon()
if not self.barFrame or not self.barFrame.icon then
return
end
local _, _, auraIcon = GetSpellInfo(self.moduleSettings.buffToTrack)
self.barFrame.icon:SetTexture(auraIcon)
end

View File

@ -6,6 +6,7 @@ v1.14.21:
- Fixed TargetCC/FocusCC modules on Wrath Classic.
- Fixed disabled Buff/Debuff Watchers showing a static gray bar when set to When Missing or Always display modes.
- Fixed Buff/Debuff Watchers showing an empty bar when set to Missing mode. If the background was disabled, this looked like just a floating spell icon.
- Fixed spell icons sometimes not showing up for custom bars until the tracked spell had been cast once.
v1.14.20: