Quality Colors
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:
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:
|
You can use ZO_ColorDef class:
Lua Code:
or write the conversion out yourself: Lua Code:
|
Function GetItemQualityColor(index) returns ZO_ColorDef objects. When you have color, you can use its method :Colorize(text). Something like this:
Lua Code:
|
Awesome, thanks to you both.
|
All times are GMT -6. The time now is 08:39 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI