-
-
Notifications
You must be signed in to change notification settings - Fork 11
GetColor
StormFX edited this page Dec 13, 2022
·
1 revision
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, 1
are 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. |
Wiki
• Home
Project
• Contributors
• History
Reference
⚬ Masque API
⚬ Group API
• AddButton()
• Delete()
• GetColor()
• GetLayer()
• GetOptions()
• RegisterCallback()
• RemoveButton()
• ReSkin()
• SetCallback()
• SetName()
⚬ Regions
Skins
• Skin List
Mirrors
• CurseForge
• Wago.io
• Wow Interface