Bitfighter
021
The Bitfighter Lua Documentation - Robots, Levelgens, and Plugins
|
A specialized ToggleMenuItem prepopulated with Yes and No.
Member Functions | |
YesNoMenuItem(name, currentIndex, help) | |
Constructor. | |
A specialized ToggleMenuItem prepopulated with Yes and No.
To create a YesNoMenuItem from a plugin, use the following syntax:
Arg types: name: string, currentIndex: int, help: string | returns YesNoMenuItem |
Constructor.
Example:
name | The text shown on the menu item. |
currentIndex | The index of the item to be selected initially (1 = Yes, 2 = No). |
help | A bit of help text. |
The YesNoMenuItem will return 1 if the user selected Yes, 2 if No.
For example: