Example #1
0
 void EnterHighScoreAndExitSelected(object sender, PlayerIndexEventArgs e)
 {
     if (highScores.GetTable("Normal").ScoreQualifies(((GameplayScreen)ScreenManager.GetScreenByName("GameplayScreen")).Score))
     {
         captureDone = false;
     }
 }
Example #2
0
 void restartSelected(object sender, PlayerIndexEventArgs e)
 {
     ExitScreen();
     GameplayScreen screen = ScreenManager.GetScreenByName("GameplayScreen") as GameplayScreen;
     screen.ResetGameScreen(true);
     GC.Collect();
 }
Example #3
0
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayBackground(), new GameplayScreen(), new GameplayUI());
 }
Example #4
0
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Example #5
0
 void HighScoreMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new HighScoreDisplay());
 }
Example #6
0
 void ReturnToMainMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.RemoveScreens();
     ScreenManager.AddScreen(new Background(), ControllingPlayer);
     ScreenManager.AddScreen(new MainMenuScreen(), ControllingPlayer);
 }
Example #7
0
 void RestartGameSelected(object sender, PlayerIndexEventArgs e)
 {
     ExitScreen();
     foreach (GameScreen screen in ScreenManager.GetScreens()) {
         if (screen is GameplayScreen) {
             ((GameplayScreen)screen).ResetGameScreen(true);
         }
     }
     GC.Collect();
 }