Difference between revisions of "ImGui.Core:inputScalar"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 8: Line 8:
 
(number), (bool) =
 
(number), (bool) =
 
   ImGui:inputScalar(label, ImGuiDataType, value, v_min, v_max, format, [ImGuiInputTextFlags=0])
 
   ImGui:inputScalar(label, ImGuiDataType, value, v_min, v_max, format, [ImGuiInputTextFlags=0])
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 26: Line 26:
 
<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

Sets an input scalar field.

(number), (bool) =
  ImGui:inputScalar(label, ImGuiDataType, value, v_min, v_max, format, [ImGuiInputTextFlags=0])

Parameters

label: (string) the label
ImGuiDataType: (number) one of ImGui data type
value: (number) the value to be displayed
v_min: (number) the minimum value
v_max: (number) the maximum value
format: (string) the format of the displayed value
ImGuiInputTextFlags : (number) the input text flag

Return values

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

Example

--- ???