Difference between revisions of "ImGui.Core:inputFloat4"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' ImGui<br/> === Description === Sets four input float fields side by side (no plus/minus buttons). <sourc...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets four input float fields side by side (no plus/minus buttons).
 
Sets four input float fields side by side (no plus/minus buttons).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number), (number), (bool) =
 
(number), (number), (number), (number), (bool) =
 
   ImGui:inputFloat4(label, value1, value2, value3, value4, [format="%.3f", ImGuiInputTextFlags=0])
 
   ImGui:inputFloat4(label, value1, value2, value3, value4, [format="%.3f", ImGuiInputTextFlags=0])
Line 27: Line 27:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
</source>
 
</source>
  
 
{{ImGui}}
 
{{ImGui}}

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Sets four input float fields side by side (no plus/minus buttons). <syntaxhighlight lang="lua"> (number), (number), (number), (number), (bool) =

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

</source>

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
value4: (number) the fourth 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 (number) the current fourth value
Returns (bool) whether a current value has changed

Example

<syntaxhighlight lang="lua"> </source>