mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
thirdparty: calculate wim color string
This commit is contained in:
@@ -457,8 +457,8 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
|
|||||||
hooksecurefunc("WIM_InitClassProps", function()
|
hooksecurefunc("WIM_InitClassProps", function()
|
||||||
for class in pairs(RAID_CLASS_COLORS) do
|
for class in pairs(RAID_CLASS_COLORS) do
|
||||||
local wimclass = _G[format("WIM_LOCALIZED_%s",class)]
|
local wimclass = _G[format("WIM_LOCALIZED_%s",class)]
|
||||||
local colorstr = gsub(RAID_CLASS_COLORS[class].colorStr, "^ff", "")
|
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] = colorstr
|
_G.WIM_ClassColors[wimclass] = gsub(colorstr, "^ff", "")
|
||||||
end
|
end
|
||||||
end, true)
|
end, true)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user