🍏ImGui (Menu)

Contains all functions from ImGui namespace

Remember to call these functions in SAKURA_MENU_RENDER callback.

-- Creates an Menu tab item with a specified title and associates it with a Lua function to call.
-- Parameters:
--     title: the title of the tab item to create.
--     function: the Lua function to call when the tab item is selected.
ImGui.Menu(title, function)
-- Creates an ImGui window with a specified title and flags and associates it with a Lua function to call.
-- Parameters:
--     title: the title of the window to create.
--     flags: the ImGui window flags to apply.
--     function: the Lua function to call when the window is opened.
ImGui.Window(title, flags, function)
-- Adds a new line of text to the current ImGui window.
-- Parameters:
--     text: the text to display.
ImGui.Text(text)
-- Creates a clickable button widget in the current ImGui window.
-- Parameters:
    -- text: the text to display on the button.
-- Returns:
    -- True if the button was clicked, false otherwise.
ImGui.Button(text)

Last updated