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:
@ -289,6 +289,12 @@ function SliceAndDice.prototype:UpdateDurationBar(unit)
|
||||
self.durationFrame.bar:SetTexCoord(0, 1, 1-scale, 1)
|
||||
end
|
||||
self.durationFrame.bar:SetHeight(self.settings.barHeight * scale)
|
||||
|
||||
if scale == 0 then
|
||||
self.durationFrame.bar:Hide()
|
||||
else
|
||||
self.durationFrame.bar:Show()
|
||||
end
|
||||
|
||||
if sndEndTime < GetTime() then
|
||||
self:SetBottomText1(self.moduleSettings.upperText .. "0 (" .. PotentialSnDDuration .. ")")
|
||||
|
Reference in New Issue
Block a user