Skip to content

GetLayer

StormFX edited this page Dec 13, 2022 · 1 revision

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.

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

Clone this wiki locally