menu
¶
Returns information about visible menus. Inherits window when a menu is open.
Members¶
int NumVisibleMenus
¶
- returns number of currently visible menus. Ordinarily this is going to be 1 if a menu is showing and 0 if not.
int CurrMenu
¶
- returns the index for the currently visible menu. Ordinarily this will be 0 if a menu is open and -1 if not
string Name
¶
- returns the name of the menu or the first item's name.
int NumItems
¶
- returns number of items in the currently open menu.
string Items[#]
¶
- returns the Itemname specified by Index
string To String
¶
- If no menu open, returns "No Menu Open". It returns the first menu item's name when a menu is open
Methods¶
- Select
- Clicks a menu item.
Examples¶
/invoke ${Menu.Select[open the door]}
- Clicks the menu item "open the door"
/echo ${Menu.Name}
- Output: Shabby Lobby Door
/echo ${Menu.NumItems}
- Output: 4
/echo ${Menu.Items[2]}
- Output: Adjust Placement