VM_CHOICE IDX, OPTIONS, COUNT
Executes menu.
.UI_MENU_STANDARD
- Default menu behavior..UI_MENU_LAST_0
- Last item returns result of 0.UI_MENU_CANCEL_B
- B button cancels the menu execution..UI_MENU_SET_START
- If set IDX may contain the initial item index.Instruction must be followed by the COUNT of .MENUITEM definitions:
.MENUITEM X, Y, iL, iR, iU, iD
where:
X
- X-coordinate of the cursor pointer in tiles.
Y
- Y-coordinate of the cursor pointer in tiles.
iL
- Menu item number where the cursor must move when you press LEFT.
iR
- Menu item number where the cursor must move when you press RIGHT.
iU
- Menu item number where the cursor must move when you press UP.
iD
- Menu item number where the cursor must move when you press DOWN.