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
| Name | Type | What it does |
|---|---|---|
self | RMAddon | Rotation Master addon instance (implicit with colon calls). |
Returns
| 1 | RMConditionInput | Numeric 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
- Distance Count (widget)
local distance = addon:CreateConditionSlider() - Time Until Health Percentage (widget)
local health = addon:CreateConditionSlider()
Dependencies
constructor→UI.condition_inputs.constructor
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