Script API - v1.21.90.25
    Preparing search index...
    interface IMenu {
        checked?: boolean;
        enabled: boolean;
        id: string;
        submenu: IMenu[];
        addItem(
            params: IMenuCreationParams,
            action?: RegisteredAction<NoArgsAction>,
        ): IMenu;
        dispose(): void;
        hide(): void;
        replaceAction(action: RegisteredAction<NoArgsAction>): void;
        show(): void;
    }
    Index

    Properties

    checked?: boolean

    If defined, the menu will show a checked or unchecked checkbox.

    enabled: boolean

    The menu will be in either an enabled or disabled state

    id: string

    Unique ID for the menu

    submenu: IMenu[]

    Sub menus of this menu

    Methods

    • Returns void

      Destroy the menu and all of its children.

    • Returns void

      Hide the menu and all of its children.

    • Returns void

      Show the menu and all of its children.