Reference › Function reference › UI

UI.condition_layout.CreateConditionGroup

public

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

NameTypeWhat it does
selfRMAddonRotation Master addon instance (implicit with colon calls).

Returns

1RMConditionGroupCondition 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

Dependencies

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

Back to Function reference