mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
v1.3.3-Release
- interface version up to 3.0! hooray new stuff. - mod version bumped to 1.3.3 for all the new stuff and 3.0 client compatibility - made the threat module wow 3.0-compatible (these changes do not branch based on interface version due to the removal of lots of libs...there's no goin' back now!) - fixed text display on threat module to actually show threat % as intended - extracted MathRound function to make it accessible to all modules instead of being embedded within TargetHealth - added a few more user-submitted bar textures - removed LibDruidMana and fixed up DruidMana module to work with the new UnitPower API
This commit is contained in:
@ -383,23 +383,15 @@ end
|
||||
|
||||
function IceTargetHealth.prototype:Round(health)
|
||||
if (health > 1000000) then
|
||||
return self:MathRound(health/1000000, 1) .. "M"
|
||||
return IceHUD:MathRound(health/1000000, 1) .. "M"
|
||||
end
|
||||
if (health > 1000) then
|
||||
return self:MathRound(health/1000, 1) .. "k"
|
||||
return IceHUD:MathRound(health/1000, 1) .. "k"
|
||||
end
|
||||
return health
|
||||
end
|
||||
|
||||
|
||||
function IceTargetHealth.prototype:MathRound(num, idp)
|
||||
local mult = 10^(idp or 0)
|
||||
return math.floor(num * mult + 0.5) / mult
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function IceTargetHealth.prototype:ShowBlizz()
|
||||
TargetFrame:Show()
|
||||
|
Reference in New Issue
Block a user