mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Version 0.6
- Improved TargetInfo and ToT module - RoundBar texture looks better than ever - PlayerHealth and TargetHealth modules have an option to turn off Blizzard default frames - Fixed MH3 rounding bug
This commit is contained in:
@ -187,6 +187,7 @@ function IceElement.prototype:GetColor(color, alpha)
|
||||
return self.colors[color].r, self.colors[color].g, self.colors[color].b, alpha
|
||||
end
|
||||
|
||||
|
||||
function IceElement.prototype:GetHexColor(color, alpha)
|
||||
local r, g, b, a = self:GetColor(color)
|
||||
return string.format("%02x%02x%02x%02x", a * 255, r * 255, g * 255, b * 255)
|
||||
@ -213,6 +214,11 @@ function IceElement.prototype:GetClassColor(class)
|
||||
end
|
||||
|
||||
|
||||
function IceElement.prototype:ConvertToHex(color)
|
||||
return string.format("ff%02x%02x%02x", color.r*255, color.g*255, color.b*255)
|
||||
end
|
||||
|
||||
|
||||
function IceElement.prototype:FontFactory(weight, size, frame, font)
|
||||
local weightString = ""
|
||||
if (weight) then
|
||||
|
Reference in New Issue
Block a user