Difference between revisions of "ImGui.Core:inputFloat3"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 8: Line 8:
 
(number), (number), (number), (bool) =
 
(number), (number), (number), (bool) =
 
   ImGui:inputFloat3(label, value1, value2, value3, [format="%.3f", ImGuiInputTextFlags=0])
 
   ImGui:inputFloat3(label, value1, value2, value3, [format="%.3f", ImGuiInputTextFlags=0])
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 26: Line 26:
 
=== 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

Sets three input float fields side by side (no plus/minus buttons).

(number), (number), (number), (bool) =
  ImGui:inputFloat3(label, value1, value2, value3, [format="%.3f", ImGuiInputTextFlags=0])

Parameters

label: (string) the label
value1: (number) the first value to be displayed
value2: (number) the second value to be displayed
value3: (number) the third value to be displayed
format: (string) the format of the displayed value
ImGuiInputTextFlags : (number) the input text flag

Return values

Returns (number) the current first value
Returns (number) the current second value
Returns (number) the current third value
Returns (bool) whether a current value has changed

Example