AddSlider
Adds a numeric control constrained by minimum, maximum, and increment values.
AddSlider
What it does
Adds a numeric control constrained by minimum, maximum, and increment values.
When to use it
Use it for volume, speed, distance, opacity, size, or any bounded number.
ElementFunction:AddSlider(SliderConfig)
AutoFarm:AddSlider({
Name = "Speed",
Min = 1,
Max = 100,
Default = 25,
Increment = 1,
input = true,
Callback = function(value)
print(value)
end
})Behavior and return value
Named parameters, styles, and plugins
The current source also supports named stops through Parameters / Points / Stops / Modes, compact presets, custom styles, parameter formatting, and plugin hooks. Use AddCustomSlider for a compact preset by default.
See Current API additions for a complete named-stop example, all new fields, callback arguments, and methods including SetParameter, GetParameter, GetParameters, SetDotsVisible, UsePlugin, and ApplyStyle.
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.