Difference between revisions of "ImGui.Core:inputScalar"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' ImGui<br/> === Description === Sets an input scalar field. <source lang="lua"> (number), (bool) = ImGu...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets an input scalar field.
 
Sets an input scalar field.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(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 24: Line 24:
  
 
=== Example ===
 
=== Example ===
<source 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

--- ???