ElementsControls
AddCustomSlider
Create a compact styled slider with optional named stops and plugin hooks.
AddCustomSlider
Creates a normal AddSlider with Preset = "Compact" when no preset is supplied. It supports all numeric-slider and named-parameter options. Aliases: CreateCustomSlider and CustomSlider.
local Effort = Tab:AddCustomSlider({
Name = "Effort",
Parameters = {
{Name = "Instant", Value = "Instant", Description = "Quick answers"},
{Name = "Balanced", Value = "Balanced", Description = "Normal planning"},
{Name = "Deep", Value = "Deep", Description = "More context"},
},
Default = "Balanced",
ShowDots = true,
Callback = function(value, parameter, index)
print(value, parameter.Name, index)
end,
})
Effort:SetParameter("Deep")The Compact preset also accepts Thin and ChatGPT names, case-insensitively. By default it keeps a minimum usable height and handle size; AllowSmall / AllowMini opts out of that minimum.
For full style fields, plugin hooks, and controller methods, see Current API additions.