-
-
Notifications
You must be signed in to change notification settings - Fork 9
GetLayer
StormFX edited this page Dec 13, 2022
·
1 revision
The GetLayer method of the Group API returns the requested region from the specified button.
local Highlight1 = MSQ_Group:GetLayer(Button1, "Highlight")Notes
- This method only works for buttons that are registered with the calling group.
- This method does not work with the
Backdrop,Gloss,NormalorShadowregions. See the Masque API section for methods to interact with those regions.
{Region} = {Group}:GetLayer({Button}, "Layer")| Parameter | Type | Required | Description |
|---|---|---|---|
Button |
table | Yes | The button object to get the region from. |
Layer |
string | Yes | The name of the region to return. |
| Return | Type | Description |
|---|---|---|
Region |
table | The region object specified by Layer associated with Button. |
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