Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-30-09, 06:57 AM   #1
Heimdall
A Murloc Raider
Join Date: Jul 2009
Posts: 9
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
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » STUF Lua editor


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off