mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- added some code to hide a bar if its height would have been set to 0. not sure why, but GlowArc and HiBar are having issues with zero-height bars, so this seems to fix it without needing to figure out what's up with the texture
This commit is contained in:
@ -991,6 +991,12 @@ function PlayerHealth.prototype:Update(unit)
|
||||
self.healFrame.bar:SetTexCoord(0, 1, barValue, 1)
|
||||
end
|
||||
self.healFrame.bar:SetHeight(self.settings.barHeight * percent)
|
||||
|
||||
if percent == 0 then
|
||||
self.healFrame.bar:Hide()
|
||||
else
|
||||
self.healFrame.bar:Show()
|
||||
end
|
||||
end
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
|
Reference in New Issue
Block a user