ImGui.Core:sliderInt

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2020.9
Class: ImGui

Description

Displays a regular int slider. <syntaxhighlight lang="lua"> (number), (bool) =

 ImGui:sliderInt(label,value,[min=0,max=0,formatString= "%d",ImGuiSliderFlags=0])

</source>

Parameters

label: (string) the label
value: (number) the current value
min: (number) the min value
max: (number) the max value
formatString: (string) the format of the value
ImGuiSliderFlags: (number) the drag slider flag

Return values

Returns (number) the current value
Returns (bool) whether the current value has changed

Example

<syntaxhighlight lang="lua"> </source>