ImGui.Core:inputScalar

From GiderosMobile
Revision as of 15:28, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2020.9
Class: ImGui

Description

Sets an input scalar field. <syntaxhighlight lang="lua"> (number), (bool) =

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

</source>

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

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