ImGui.Core:sliderInt2

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.9
Class: ImGui

Description

Displays 2 regular int sliders side by side.

(number), (number), (bool) =
  ImGui:sliderInt2(label, value1, value2, [min=0, max=0, formatString="%d", ImGuiSliderFlags=0])

Parameters

label: (string) the label
value1: (number) the current first value
value2: (number) the current second 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 first value
Returns (number) the current second value
Returns (bool) whether a value has changed

Example