Skip to main content

Đối số

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

Giá trị trả về

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

Kiểu

ImGuiWindow

Xử lý được trả về bởi imgui.create. Các phương pháp xây dựng điều khiển trả về cùng một thẻ điều khiển để các cuộc gọi có thể được xâu chuỗi.