thirdparty: calculate wim color string

This commit is contained in:
shagu
2020-04-26 13:25:54 +02:00
parent b8b54a003d
commit e5fd656425
+2 -2
View File
@@ -457,8 +457,8 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
hooksecurefunc("WIM_InitClassProps", function()
for class in pairs(RAID_CLASS_COLORS) do
local wimclass = _G[format("WIM_LOCALIZED_%s",class)]
local colorstr = gsub(RAID_CLASS_COLORS[class].colorStr, "^ff", "")
_G.WIM_ClassColors[wimclass] = colorstr
local colorstr = rgbhex(RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b, RAID_CLASS_COLORS[class].a)
_G.WIM_ClassColors[wimclass] = gsub(colorstr, "^ff", "")
end
end, true)