GetLayer - SFX-WoW/Masque GitHub Wiki
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. |