How do you output text to the chat window using item quality colors?
I know you can get item quality colors to use on a lable like this:
Lua Code:
_cControl:SetColor(GetInterfaceColor(INTERFACE_COLOR_TYPE_ITEM_QUALITY_COLORS, _tData.quality))
But GetInterfaceColor outputs a decimal. I tried googling some formula so I could just convert it, but I had no luck.
Is there another function or a way to convert that decimal it so I could do something like:
Lua Code:
local LegendaryColor = GetInterfaceColor(INTERFACE_COLOR_TYPE_ITEM_QUALITY_COLORS, ITEM_QUALITY_LEGENDARY)
d(LegendaryColor.."whatever message")