Reference › Function reference › UI

UI.checkbox.CreateConditionCheckBox

public

Call as

addon:CreateConditionCheckBox()

Available directly through addon; no dependency is needed.

What it does

Create a native boolean condition control. Configure SetLabel, SetValue, SetDisabled and OnValueChanged; add it with parent:AddChild(widget).

Arguments

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

Returns

1RMConditionCheckBoxCheckbox widget with boolean value and callback methods.

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

and 19 more: Distance Count (widget), In Group (widget), Group Count (widget), Immune (widget), Item Available (widget), Item Cooldown (widget), Item In Range (widget), Level (widget), Raid Mark (widget), Spell Known (widget), Stagger (widget), Weapon Swing Time (widget), Weapon Swing Time Remaining (widget), Weapon Enchant Present (widget), Weapon Enchant Type (widget), Weapon Enchant Time Remaining (widget), Weapon Enchant Stacks (widget), Zone (widget), Conditions.common.Widget_SpellWidget

Dependencies

Source

UI/checkbox.lua, line 46. Read only in game; Duplicate makes an editable copy.

UI.checkbox.CreateConditionCheckBox(self)
    local widget=addon:AcquireConditionWidget('RM-CheckBox',constructor)
    ---@cast widget RMConditionCheckBox
    return widget

Back to Function reference