Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Draws a menu item with explicit availability and checked state.

API: scripting
Project: Inno.Editor.ImGui
Scope: Editor

public static bool InnoEditor.ImGui.ImGui.MenuItem(string label, string shortcut = "", bool selected = false, bool enabled = true)

Parameter label: The visible label and optional stable ID suffix.

Parameter shortcut: A display label only; execution remains with the Action router.

Parameter selected: Whether the item is currently selected.

Parameter enabled: Whether the control can accept input.

True when the documented control event or condition is present; otherwise false.