ClickStep||doc136516

September 20, 2022

Format

Slider.ClickStep

Describe

The distance the slider moves when you click the progress bar on both sides of the slider. Only when you use the step size to move the slider Movebystep= true, which is 0.01 by default.

If the time step setting is less than 0, it will be adjusted to 0.

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--Get the Slider control for testing according to the name
local slider = APIRootWindow.APISlider

--Set the click step of the slider control
slider.ClickStep = 0.2