Reference › Function reference › UI

UI.condition_inputs.CreateConditionSlider

public

Call as

addon:CreateConditionSlider()

Available directly through addon; no dependency is needed.

What it does

Create a native numeric condition input with a slider and typed numeric field. Configure SetSliderValues, SetValue, SetIsPercent and SetCallback; OnValueChanged reports committed values. Add it with parent:AddChild(widget).

Arguments

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

Returns

1RMConditionInputNumeric widget supporting slider bounds, percent display and pending-edit validation.

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_inputs.lua, line 161. Read only in game; Duplicate makes an editable copy.

UI.condition_inputs.CreateConditionSlider(self)
    local w=addon:AcquireConditionWidget('RM-ConditionSlider',function() return constructor(true) end)
    ---@cast w RMConditionInput
    return w

Back to Function reference