- added oft-requested combo points bar

This commit is contained in:
Parnic
2010-04-05 03:49:48 +00:00
parent 6d1ca7f55e
commit a5f1ee8df3
4 changed files with 99 additions and 7 deletions

View File

@ -245,13 +245,6 @@ function IceUnitBar.prototype:Update()
end
function IceUnitBar.prototype:SetScaledColor(colorVar, percent, maxColor, minColor)
colorVar.r = ((maxColor.r - minColor.r) * percent) + minColor.r
colorVar.g = ((maxColor.g - minColor.g) * percent) + minColor.g
colorVar.b = ((maxColor.b - minColor.b) * percent) + minColor.b
end
function IceUnitBar.prototype:Alive()
-- instead of maintaining a state for 3 different things
-- (dead, dead/ghost, alive) just afford the extra function call here