Exemple #1
0
 public override void setupMenuItems()
 {
     addMenuItem("RESUME", (Action)(delegate
     {
         GameLoop.EndPause();
         MenuManager.DisableAllMenus();
     }));
     addMenuItem("OPTIONS", (Action)(delegate
     {
         MenuManager.pausedSystem.setCurrentMenu(MenuPage.Options);
     }));
     addMenuItem("MAIN MENU", (Action)(delegate
     {
         ((ConfirmationMenu)IMenuStack.Confim).initYesNo("WARNING: Finish race and return to the menus?", "Yes", "No",
                                                         (Action)(delegate
         {
             GameLoop.setGameStateAndResetPlayers(GameState.Menu);
         }),
                                                         (Action)(delegate
         {
             MenuManager.menuBack();
         }));
         MenuManager.pausedSystem.setCurrentMenu(MenuPage.Confimation);
     }));
 }
Exemple #2
0
 public override void respondToMenuBack()
 {
     GameLoop.EndPause();
     MenuManager.DisableAllMenus();
 }