Difference between revisions of "Options Menu"
Jump to navigation
Jump to search
m
Restored aiButton == -1 for the examples where it matters. Menus will stagger if it's not there, showing the MessageBox when not desired.
imported>Fg109 m (→Examples) |
imported>JustinOther m (Restored aiButton == -1 for the examples where it matters. Menus will stagger if it's not there, showing the MessageBox when not desired.) |
||
Line 43: | Line 43: | ||
Function Menu(Bool abMenu = True, Int aiButton = 0) | Function Menu(Bool abMenu = True, Int aiButton = 0) | ||
While abMenu | While abMenu | ||
aiButton = MainMenuMESG.Show() ; Main Menu | If aiButton != -1 ; Wait for input | ||
aiButton = MainMenuMESG.Show() ; Main Menu | |||
abMenu = False ; End the function | |||
If aiButton == 0 ; Breakfast | |||
aiButton = BreakfastMESG.Show() | |||
If aiButton == 0 ; Sweet Roll & Coffee | |||
ElseIf aiButton == 1 ; Pancakes, Bacon & Eggs | |||
ElseIf aiButton == 2 ; Chicken Fried Pony Steak | |||
EndIf | |||
ElseIf aiButton == 1 ; Lunch | |||
aiButton = LunchMESG.Show() | |||
If aiButton == 0 ; Glazed Turkey Sandwich | |||
ElseIf aiButton == 1 ; Grilled Ham Sandwich | |||
ElseIf aiButton == 2 ; Shredded Pony Sandwich | |||
EndIf | |||
ElseIf aiButton == 2 ; Dinner | |||
aiButton = DinnerMESG.Show() | |||
If aiButton == 0 ; Filet Mignon | |||
ElseIf aiButton == 1 ; Pony Fajitas | |||
ElseIf aiButton == 2 ; Lobster | |||
EndIf | EndIf | ||
EndIf | EndIf | ||
Line 88: | Line 89: | ||
Function Menu(Int aiMessage = 0, Int aiButton = 0, Bool abMenu = True) | Function Menu(Int aiMessage = 0, Int aiButton = 0, Bool abMenu = True) | ||
While abMenu | While abMenu | ||
If aiMessage == 0 | If aiButton == -1 ; Wait for input | ||
ElseIf aiMessage == 0 | |||
aiButton = OptionsMenu00MESG.Show() | aiButton = OptionsMenu00MESG.Show() | ||
If aiButton == 0 | If aiButton == 0 |