mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- Added support for CUSTOM_CLASS_COLORS (ticket #26)
This commit is contained in:
@ -304,12 +304,14 @@ function IceElement.prototype:GetClassColor(class)
|
|||||||
if r and g and b then
|
if r and g and b then
|
||||||
return r, g, b
|
return r, g, b
|
||||||
else
|
else
|
||||||
return RAID_CLASS_COLORS["WARRIOR"]
|
return CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS["WARRIOR"] or RAID_CLASS_COLORS["WARRIOR"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class = string.upper(class)
|
class = class:upper()
|
||||||
if RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
|
if CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] then
|
||||||
|
return CUSTOM_CLASS_COLORS[class].r, CUSTOM_CLASS_COLORS[class].g, CUSTOM_CLASS_COLORS[class].b
|
||||||
|
elseif RAID_CLASS_COLORS and RAID_CLASS_COLORS[class] then
|
||||||
return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
||||||
else
|
else
|
||||||
-- crazy talk...who the crap wouldn't have a blizzard-defined global defined?
|
-- crazy talk...who the crap wouldn't have a blizzard-defined global defined?
|
||||||
|
Reference in New Issue
Block a user