Originally Posted by SkOODaT
is thier any way by chance to use :ToHex() with something like GetUnitReactionColor("reticleover")
...
local colorDef = GetUnitReactionColor("reticleover")
local hexString = colorDef:ToHex()
|
GetUnitReactionColor("reticleover") returns r, g, and b values
You could use them to create your own ZO_ColorDef object and then use it that way.
Zgoo dump of the ZO_ColorDef object:
To create a new ColorDef, you can use:
Lua Code:
local myColor = ZO_ColorDef:New(red, green, blue, alpha)
Any you leave out will default to 1.
Since GetUnitReactionColor returns r,g,b you can do the following:
Lua Code:
local colorDef = ZO_ColorDef:New(GetUnitReactionColor("reticleover"))
local hexString = colorDef:ToHex()