STUF Lua editor
Hi all,
i'm trying to color a string using the class color in STUF, the problem is that i don't know how to do that...
I tryied usin the table RAID_CLASS_COLORS but i must be missing something:
local DB = {}
for class, color in pairs(RAID_CLASS_COLORS) do
DB.[class] = { color.r, color.g, color.b }
end
This code seems to be wrong or i can't access the table RAID_CLASS_COLORS but i don't get any error in that way however it seems that the structure DB in empty....
There another way to do that? Maybe using the 'cache' parameter? But using cache i only know how to get info like name, level ecc (info that anyway i can get using standard API), any thoughts?
Thank you
|