mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fix aura icons not always showing on custom bars
This commit is contained in:
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user