imgui. create Synchronous
Create a window that can contain labels, controls, and layout elements. Use it to build a small settings panel or interactive tool. Store the returned window so callbacks can add controls or close it.
Luau
imgui.create(title: string) -> ImGuiWindowParameters
| Parameter | Type | Description |
|---|---|---|
title | string | Title displayed by the window. |
Returns
ImGuiWindowAn ImGuiWindow handle. Use its methods to add content and destroy to close it.
Example
Luau
local window = imgui.create("Preferences")
window:Text("Choose your settings")
window:Button("Close", function()
window:destroy()
end)