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
| Name | Type | What it does |
|---|---|---|
self | RMAddon | Rotation Master addon instance (implicit with colon calls). |
Returns
| 1 | RMConditionCheckBox | Checkbox 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
- Buff Present (widget)
local ownbuff = addon:CreateConditionCheckBox() - Buff Time Remaining (widget)
local ownbuff = addon:CreateConditionCheckBox() - Buff Stacks (widget)
local ownbuff = addon:CreateConditionCheckBox() - Class In Group (widget)
local raid = addon:CreateConditionCheckBox() - Debuff Present (widget)
local owndebuff = addon:CreateConditionCheckBox() - Debuff Time Remaining (widget)
local owndebuff = addon:CreateConditionCheckBox() - Debuff Stacks (widget)
local owndebuff = addon:CreateConditionCheckBox() - Debuff Type Present (widget)
local owndebuff = addon:CreateConditionCheckBox()
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
constructor→UI.checkbox.constructor
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