Thread: Setting Colors
View Single Post
11/24/20, 04:26 AM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
For Lua code you should just rely on the ZO_ColorDef class which handles all the tedious stuff:

Lua Code:
  1. -- declare your color once in your initialization code
  2. local MINT_GREEN = ZO_ColorDef:New("c8ffd2")
  3.  
  4. -- assign it to the control whenever you need it
  5. Nyght_Status_Window_StatusBar:SetColor(MINT_GREEN:UnpackRGBA())
  Reply With Quote