Call as
addon:CreateConditionGroup()
Available directly through addon; no dependency is needed.
What it does
Create a condition field container with RM-owned List, Table and responsive spell-field layouts. It accepts registered native condition widgets; add children with AddChild and attach the group to the callback parent.
Arguments
| Name | Type | What it does |
|---|---|---|
self | RMAddon | Rotation Master addon instance (implicit with colon calls). |
Returns
| 1 | RMConditionGroup | Condition container supporting SetLayout, AddChild, SetUserData, SetWidth and DoLayout. |
|---|
Editions
Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.
It reads no game API directly.
How the addon calls it
Conditions.common.Widget_SpellWidgetlocal spell_group = addon:CreateConditionGroup()Conditions.talent.blocklocal widget=addon:CreateConditionGroup();widget:SetFullWidth(true);widget:SetLayout("RM-IconRows");parent:AddChild(widget)
Dependencies
constructor→UI.condition_layout.constructor
Source
UI/condition_layout.lua, line 211. Read only in game; Duplicate makes an editable copy.
UI.condition_layout.CreateConditionGroup(self)
local group=addon:AcquireConditionWidget('RM-ConditionGroup',constructor)
---@cast group RMConditionGroup
return group