GetColor - SFX-WoW/Masque GitHub Wiki
The GetColor method of the Group API returns a set of color values assigned to the specified region.
local r, g, b, a = MSQ_Group:GetColor("Highlight")Notes
- The values returned from this method may not be the same as those currently assigned to the specified region.
- This method first attempts to return the color values assigned to calling group. If those aren't available, it then attempts to pull them from the calling group's skin. If neither the group nor the skin have colors assigned to the specified region, the values
1, 1, 1, 1are returned.
r, g, b, a = {Group}:GetColor("Layer")| Parameter | Type | Required | Description |
|---|---|---|---|
Layer |
string | Yes | The name of the region to return colors for. |
| Return | Type | Description |
|---|---|---|
r |
number | The red color value assigned to the region. |
g |
number | The green color value assigned to the region. |
b |
number | The blue color value assigned to the region. |
a |
number | The alpha value assigned to the region. |