mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed a potential nil access if some other mod has redefined RAID_CLASS_COLORS like a naughty little addon
- clarified some settings text a smidge
This commit is contained in:
@ -296,7 +296,12 @@ end
|
|||||||
|
|
||||||
function IceElement.prototype:GetClassColor(class)
|
function IceElement.prototype:GetClassColor(class)
|
||||||
class = string.upper(class)
|
class = string.upper(class)
|
||||||
return RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b
|
if 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
|
||||||
|
else
|
||||||
|
-- crazy talk...who the crap wouldn't have a blizzard-defined global defined?
|
||||||
|
return 1,1,1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ IceHUD.options =
|
|||||||
|
|
||||||
alphaic = {
|
alphaic = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = 'Alpha IC',
|
name = 'Alpha in combat',
|
||||||
desc = 'Bar alpha In Combat',
|
desc = 'Bar alpha In Combat',
|
||||||
get = function()
|
get = function()
|
||||||
return IceHUD.IceCore:GetAlpha("IC")
|
return IceHUD.IceCore:GetAlpha("IC")
|
||||||
@ -128,7 +128,7 @@ IceHUD.options =
|
|||||||
|
|
||||||
alphaooc = {
|
alphaooc = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = 'Alpha OOC',
|
name = 'Alpha out of combat',
|
||||||
desc = 'Bar alpha Out Of Combat without target',
|
desc = 'Bar alpha Out Of Combat without target',
|
||||||
get = function()
|
get = function()
|
||||||
return IceHUD.IceCore:GetAlpha("OOC")
|
return IceHUD.IceCore:GetAlpha("OOC")
|
||||||
@ -171,7 +171,7 @@ IceHUD.options =
|
|||||||
|
|
||||||
alphaicbg = {
|
alphaicbg = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = 'BG Alpha IC',
|
name = 'BG Alpha in combat',
|
||||||
desc = 'Background alpha for bars IC',
|
desc = 'Background alpha for bars IC',
|
||||||
get = function()
|
get = function()
|
||||||
return IceHUD.IceCore:GetAlphaBG("IC")
|
return IceHUD.IceCore:GetAlphaBG("IC")
|
||||||
@ -188,7 +188,7 @@ IceHUD.options =
|
|||||||
|
|
||||||
alphaoocbg = {
|
alphaoocbg = {
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = 'BG Alpha OOC',
|
name = 'BG Alpha out of combat',
|
||||||
desc = 'Background alpha for bars OOC without target',
|
desc = 'Background alpha for bars OOC without target',
|
||||||
get = function()
|
get = function()
|
||||||
return IceHUD.IceCore:GetAlphaBG("OOC")
|
return IceHUD.IceCore:GetAlphaBG("OOC")
|
||||||
|
Reference in New Issue
Block a user