GetLayer - SFX-WoW/Masque GitHub Wiki

Contents

The GetLayer method of the Group API returns the requested region from the specified button.

Example

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, Normal or Shadow regions. See the Masque API section for methods to interact with those regions.

Signature

{Region} = {Group}:GetLayer({Button}, "Layer")

Parameters

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.

Returns

Return Type Description
Region table The region object specified by Layer associated with Button.
⚠️ **GitHub.com Fallback** ⚠️