Reference › Function reference › UI

UI.selector.CreateConditionDropdown

public

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

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

Returns

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

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

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

Back to Function reference