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_TShort excerpt from the shipping addon LibAddonMenu-2.0 — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| LibAddonMenu-2.0 | 6,183,657 |
| Provision's TeamFormation : Teammate Radar | 1,506,270 |
| Lootdrop, Continued (All in One) | 1,145,178 |
| Wykkyd Outfitter | 632,442 |
| Merlin the Enchanter | 228,648 |
| Wykkyd Full Immersion | 223,536 |