Difference between revisions of "Options Menu"

Jump to navigation Jump to search
97 bytes added ,  21:09, 16 June 2012
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
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
abMenu = False ; End the function
aiButton = MainMenuMESG.Show() ; Main Menu
If aiButton == 0 ; Breakfast
abMenu = False ; End the function
aiButton = BreakfastMESG.Show()
If aiButton == 0 ; Breakfast
If aiButton == 0 ; Sweet Roll & Coffee
aiButton = BreakfastMESG.Show()
ElseIf aiButton == 1 ; Pancakes, Bacon & Eggs
If aiButton == 0 ; Sweet Roll & Coffee
ElseIf aiButton == 2 ; Chicken Fried Pony Steak
ElseIf aiButton == 1 ; Pancakes, Bacon & Eggs
EndIf
ElseIf aiButton == 2 ; Chicken Fried Pony Steak
ElseIf aiButton == 1 ; Lunch
EndIf
aiButton = LunchMESG.Show()
ElseIf aiButton == 1 ; Lunch
If aiButton == 0 ;  Glazed Turkey Sandwich
aiButton = LunchMESG.Show()
ElseIf aiButton == 1 ; Grilled Ham Sandwich
If aiButton == 0 ;  Glazed Turkey Sandwich
ElseIf aiButton == 2 ; Shredded Pony Sandwich
ElseIf aiButton == 1 ; Grilled Ham Sandwich
EndIf
ElseIf aiButton == 2 ; Shredded Pony Sandwich
ElseIf aiButton == 2 ; Dinner
EndIf
aiButton = DinnerMESG.Show()
ElseIf aiButton == 2 ; Dinner
If aiButton == 0 ; Filet Mignon
aiButton = DinnerMESG.Show()
ElseIf aiButton == 1 ; Pony Fajitas
If aiButton == 0 ; Filet Mignon
ElseIf aiButton == 2 ; Lobster
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
Anonymous user

Navigation menu