View Single Post
06/19/21, 07:59 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
Just in case you guys need to find the other exisitng ZO_ColorDef functions, they are located here:
/esoui/libraries/utility/zo_colordef.lua

~around lines 66ff

Current version of the file:
https://github.com/esoui/esoui/blob/...lordef.lua#L66

Lua Code:
  1. function ZO_ColorDef:UnpackRGB()
  2. function ZO_ColorDef:UnpackRGBA()
  3. function ZO_ColorDef:SetRGB(r, g, b)
  4. function ZO_ColorDef:SetRGBA(r, g, b, a)
  5. function ZO_ColorDef:SetAlpha(a)
  6. function ZO_ColorDef:IsEqual(other)
  7. function ZO_ColorDef:Clone()
  8. function ZO_ColorDef:ToHex()
  9. function ZO_ColorDef:ToARGBHex()
  10. function ZO_ColorDef:Colorize(text)
  11. function ZO_ColorDef:Lerp(colorToLerpTorwards, amount)
  12. function ZO_ColorDef:ToHSL()
  13. function ZO_ColorDef:ToHSV()
  14. function ZO_ColorDef.RGBAToFloats(r, g, b, a)
  15. function ZO_ColorDef.FloatsToRGBA(r, g, b, a)
  16. function ZO_ColorDef.RGBAToStrings(r, g, b, a)
  17. function ZO_ColorDef.FloatsToStrings(r, g, b, a)
  18. function ZO_ColorDef.RGBAToHex(r, g, b, a)
  19. function ZO_ColorDef.FloatsToHex(r, g, b, a)
  20. function ZO_ColorDef.HexToRGBA(hexColor)
  21. function ZO_ColorDef.HexToFloats(hexColor)
  Reply With Quote