Beta Documentation - Subject to change.

Constructs a new menu item.

Syntax

Lua
function MenuItem:MenuItem(text, enabled);

Parameters

text
Type: string
The text to use for the menu item.
enabled
Type: boolean
Flag indicating if the menu item is enabled.

Remarks

Constructs a new menu item with the specified text and enabled state.

See Also