Skip to main content

Argumenty

ImGuiWindow
wymagane
ImGuiWindow returned by imgui.create. If the object is invalid or has already been destroyed, the method raises a Lua error.
string
wymagane
Slider label required to be a string.
integer
wymagane
Initial slider value required to be an integer and stored as the current int value.
integer
wymagane
Minimum value required to be an integer and passed to an integer slider.
integer
wymagane
Maximum value required to be an integer and passed to an integer slider.
(number) -> ()
wymagane
Callback called with the updated integer value when the slider changes.

Zwroty

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

Typy

ImGuiWindow

Uchwyt zwrócony przez imgui.create. Metody budowania kontroli zwracają ten sam uchwyt, dzięki czemu można łączyć wywołania.