Originally Posted by Phanx
The colorStr keys have been part of RAID_CLASS_COLORS at least since they enabled addons in the MoP beta, in case anyone was wondering.
|
What would be the best way to easily create a table for just the hex values of those strings, i.e. just clip the 'ff' off at the start?
Lua Code:
HEX_CLASS_COLORS = {};
for i=1,#CLASS_SORT_ORDER do
local str = RAID_CLASS_COLORS[CLASS_SORT_ORDER[i]].colorStr;
local str = -- Do action here that changes str to correct str;
HEX_CLASS_COLORS[CLASS_SORT_ORDER[i]] = str;
end
edit: local str = gsub(str,"(ff)","",1)
seems to do the trick.