Call as
addon:CreateConditionDropdown()
Available directly through addon; no dependency is needed.
What it does
Create a native condition selector. SetList accepts key-to-label or key-to-entry maps; SetValue selects a key and OnValueChanged reports changes. Add it with parent:AddChild(widget).
Arguments
| Name | Type | What it does |
|---|---|---|
self | RMAddon | Rotation Master addon instance (implicit with colon calls). |
Returns
| 1 | RMConditionSelector | Selector widget supporting SetList, SetValue, SetLabel, SetDisabled and callbacks. |
|---|
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
- Action Context (widget)
local context = addon:CreateConditionDropdown() - Class (widget)
local class = addon:CreateConditionDropdown() - Unit Classification (widget)
local class = addon:CreateConditionDropdown() - Class In Group (widget)
local class = addon:CreateConditionDropdown() - Combat Action History (widget)
local action = addon:CreateConditionDropdown() - Combat Action History Time (widget)
local action = addon:CreateConditionDropdown() - Creature Type (widget)
local class = addon:CreateConditionDropdown() - Debuff Type Present (widget)
local debufftype = addon:CreateConditionDropdown()
and 38 more: Eclipse (widget), Extended Character Stat (widget), Extended Character Stat Percentage (widget), Shapeshift Form (widget), Group Count (widget), Hero Talent Tree (widget), Immune (widget), Instance (widget), Item Cooldown (widget), Loss Of Control Blocked (widget), Loss Of Control Type (widget), Raid Mark (widget), Raid Mark Count (widget), Pet Happiness (widget), Player State (widget), Health Within Range (widget), Health Percentage Within Range (widget), Mana Within Range (widget), Mana Percentage Within Range (widget), Raid Role (widget), Resistant (widget), Role (widget), Runes (widget), Rune Cooldown (widget), Engraved Rune (widget), Item Set Pieces Equipped (widget), Specialization (widget), Character Stat (widget), Threat (widget), Threat Count (widget), Totem Present (widget), Totem Time Remaining (widget), Time Until Health (widget), Time Until Health Percentage (widget), Weapon Type (widget), Zone PVP (widget), Conditions.common.Widget_UnitWidget, Conditions.talent.dropdown
Dependencies
selectorWidget→UI.selector.selectorWidget
Source
UI/selector.lua, line 555. Read only in game; Duplicate makes an editable copy.
UI.selector.CreateConditionDropdown(self)
local w=addon:AcquireConditionWidget('RM-Selector',selectorWidget)
---@cast w RMConditionSelector
return w