mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40: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:
@ -786,6 +786,12 @@ function IceBarElement.prototype:SetScale(texture, scale)
|
||||
texture:SetTexCoord(0, 1, min_y, max_y)
|
||||
end
|
||||
self.barFrame.bar:SetHeight(self.settings.barHeight * self.CurrScale)
|
||||
|
||||
if self.CurrScale == 0 then
|
||||
self.barFrame.bar:Hide()
|
||||
else
|
||||
self.barFrame.bar:Show()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user