colors: add fallback values for unknown classes

This commit is contained in:
shagu
2017-09-30 11:12:29 +02:00
parent 937ab0cd98
commit 90c6fefd2d
+4 -1
View File
@@ -17,8 +17,11 @@ function pfUI.environment:UpdateColors()
["PRIEST"] = { r = 1, g = 1, b = 1, colorStr = "ffffffff" },
["WARLOCK"] = { r = 0.58, g = 0.51, b = 0.79, colorStr = "ff9482c9" },
["PALADIN"] = { r = 0.96, g = 0.55, b = 0.73, colorStr = "fff58cba" },
["UNKNOWN"] = { r = 0.6, g = 0.6, b = 0.6, colorStr = "ff999999" }
}
RAID_CLASS_COLORS = setmetatable(RAID_CLASS_COLORS, { __index = function(tab,key)
return { r = 0.6, g = 0.6, b = 0.6, colorStr = "ff999999" }
end})
end
-- run environment update