Difference between revisions of "ImGui.Core:sliderInt4"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 9: Line 9:
 
   ImGui:sliderInt4(label, value1, value2, value3, value4, [min=0, max=0, formatString="%d",
 
   ImGui:sliderInt4(label, value1, value2, value3, value4, [min=0, max=0, formatString="%d",
 
     ImGuiSliderFlags=0])
 
     ImGuiSliderFlags=0])
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 31: Line 31:
 
=== Example ===
 
=== Example ===
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
</source>
+
</syntaxhighlight>
  
 
{{ImGui}}
 
{{ImGui}}

Latest revision as of 15:29, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Displays 4 regular int sliders side by side.

(number), (number), (number), (number), (bool) =
  ImGui:sliderInt4(label, value1, value2, value3, value4, [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
value3: (number) the current third value
value4: (number) the current fourth 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 (number) the current third value
Returns (number) the current fourth value
Returns (bool) whether a value has changed

Example