Group - SFX-WoW/Masque GitHub Wiki

Contents

The Group method of Masque's API returns a reference to a new or existing group object. This reference can then be used to interact with Masque's Group API.

Example

-- Establish a reference to Masque.
local Masque, MSQ_Version = LibStub("Masque", true)

-- Create or return a group object.
local MSQ_Group = Masque:Group("Addon", "Bar 1")

Signature

{Group} = {Masque}:Group("Addon" [, "Group" [, "StaticID"]])

Parameters

Parameter Type Required Description
Addon string Yes The name of the add-on that the group is assigned to.
Group string No The name of the sub-group that buttons are assigned to.
StaticID string No A static string identifier that allows the group to be renamed.
Notes

  • Groups must have a StaticID in order to be capable of being renamed.

Returns

Return Type Description
Group table A new or existing group object.

8.2.5 80200

  • Replaced IsActionBar with StaticID as the third parameter.

7.2.2 70200

  • Added IsActionBar as the third parameter.
⚠️ **GitHub.com Fallback** ⚠️