ui/imgui Reference
Module defined in `lua/common/extensions/ui/imgui.lua`. ImGui context manager - initializes and maintains the Lua-side ImGui context linked to the C++ engine context.
Module defined in lua/common/extensions/ui/imgui.lua. ImGui context manager - initializes and maintains the Lua-side ImGui context linked to the C++ engine context.
Exports
Functions
M.onImGuiReady()
Hook: Called when ImGui is first ready. Initializes the Lua ImGui context.
M.onExtensionLoaded()
Hook: Re-initializes context on dynamic extension reload.
Variables
M.ctx
- Type: userdata (ImGui context)
- Description: The main C++ ImGui context obtained from
Engine.imgui.GetMainContext()
M.flags
- Type: function
- Description: Alias to
bit.borfor combining ImGui flags
M.setEnabled
- Type: function
- Description: Function to enable/disable ImGui rendering
Hooks
onImGuiReadyonExtensionLoaded
Internal Notes
initContext()gets the C++ context and wires it to Lua- Context must be re-acquired on extension reload
- This module is the foundation that other ImGui modules depend on
ui/imgui_gen_luaintf Reference
Module defined in `lua/common/extensions/ui/imgui_gen_luaintf.lua`. **Auto-generated** Lua-to-ImGui function bindings. DO NOT EDIT - generated by `tools/imguiUtilities/gen_luaintf.py`.
ui/imguiUtils Reference
Module defined in `lua/common/extensions/ui/imguiUtils.lua`. Higher-level ImGui widget utilities - dropdowns, key-value tables, recursive tree displays, texture objects, and sampled float displays.