|
Bitfighter
021
The Bitfighter Lua Documentation - Robots, Levelgens, and Plugins
|
Menu item that lets users choose one of several options.
Member Functions | |
| ToggleMenuItem(name, options, currentIndex, wrap, help) | |
| Constructor. | |
Menu item that lets users choose one of several options.
| Arg types: name: string, options: table, currentIndex: int, wrap: bool, help: string | returns ToggleMenuItem |
Constructor.
Example:
| name | The text shown on the menu item. |
| options | The options to be displayed. |
| currentIndex | The index of the item to be selected initially (1 = first item). |
| wrap | trueif the items should wrap around when you reach the last index. |
| help | A bit of help text. |
The MenuItem will return the text of the item the user selected.
For example: