ESODecoded

SetColor

ESO Lua API function — used by 202 of the 3,030 addons we indexed (combined 14,804,599 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

SetColor(number r, number g, number b, number a)

Real usage — from LibAddonMenu-2.0


    control.label:SetColor((disable and ZO_DEFAULT_DISABLED_COLOR or control.value and ZO_DEFAULT_ENABLED_COLOR or ZO_DEFAULT_DISABLED_COLOR):UnpackRGBA())
    control.checkbox:SetColor((disable and ZO_DEFAULT_DISABLED_COLOR or ZO_NORMAL_T

Short excerpt from the shipping addon LibAddonMenu-2.0its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LibAddonMenu-2.06,183,657
Provision's TeamFormation : Teammate Radar1,506,270
Lootdrop, Continued (All in One)1,145,178
Wykkyd Outfitter632,442
Merlin the Enchanter228,648
Wykkyd Full Immersion223,536