- 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:
Parnic
2010-03-25 19:55:29 +00:00
parent fbdfbcd77f
commit aeb3ed2026
5 changed files with 37 additions and 0 deletions

View File

@ -302,6 +302,12 @@ function IceThreat.prototype:Update(unit)
self.aggroBar.bar:SetTexCoord(0, 1, 0, pos)
end
self.aggroBar.bar:SetHeight(self.settings.barHeight * pos)
if pos == 0 then
self.aggroBar.bar:Hide()
else
self.aggroBar.bar:Show()
end
self.aggroBar:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, y)
end