Beta Documentation - Subject to change.

Constructs a new menu item.

Syntax

Lua
function MenuItem:MenuItem(text, enabled, checked);

Parameters

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

Remarks

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

See Also