September 20, 2022




Whether to change the current slider Value, minimum slider MinValue, maximum slider Maxvalue, step slider Clickstep is rounded to an integer, and the default value is false.

When integer mode is not used, all values retain two decimal places.

When integer mode is used, the value changes only when the interpolation distance of dragging the slider is 1.

Code Example


-- 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 slider control integer mode
slider.WholeNumbers = true