ImGui
Build script windows with labels, buttons, sliders, and other controls. Window methods return the window for chaining; interaction callbacks receive the values chosen by the user.
Functions
imgui.createOpen a small interactive window and receive its handle. Add labels, controls, and layout items through that handle to build a tool or settings panel.
imgui.setvsyncSet the ImGui vertical-sync preference exposed by this compatibility API. The current implementation stores the boolean but does not change the rendering loop.
ImGuiWindow:ButtonAdd an action button to a window. The callback runs when the person activates the button, so put the action inside that function rather than after this call.
ImGuiWindow:CheckboxAdd an on/off control with an initial state. Keep the boolean passed to the callback if the rest of your script needs the updated setting.
ImGuiWindow:CollapsingHeaderGroup controls beneath a heading that can be collapsed. Add the group’s children in the content callback; collapsing later hides those existing controls.
ImGuiWindow:ColorPickerAdd four numeric inputs for red, green, blue, and alpha. Use the callback to keep all four parts of a color setting together.
ImGuiWindow:destroyClose the window and disconnect its control listeners. Call this when your tool is finished or from a Close button callback.
ImGuiWindow:InputTextAdd a short text field for a name, label, or similar setting. The callback receives the field’s contents when the person leaves the input.
ImGuiWindow:SameLinePlace the next control in the previous control’s row. Call it immediately before adding the item that should sit alongside its neighbor.
ImGuiWindow:SeparatorAdd a thin divider between controls. It helps a crowded panel read as a few related groups without creating a new window.
ImGuiWindow:SliderFloatAdd a numeric field for a fractional value such as scale or opacity. Despite its name, Kawaii presents an editable number; it clamps submitted input to the requested range.
ImGuiWindow:SliderIntAdd a numeric field for a whole-number setting such as a count or limit. Kawaii clamps a submitted number to the range and floors the resulting value.
ImGuiWindow:TextPlace a text label in the current window layout. Use it to explain a control, show a short status, or separate groups with a heading.