예제 #1
0
 void EnterHighScoreAndExitSelected(object sender, PlayerIndexEventArgs e)
 {
     if (highScores.GetTable("Normal").ScoreQualifies(((GameplayScreen)ScreenManager.GetScreenByName("GameplayScreen")).Score))
     {
         captureDone = false;
     }
 }
예제 #2
0
 void restartSelected(object sender, PlayerIndexEventArgs e)
 {
     ExitScreen();
     GameplayScreen screen = ScreenManager.GetScreenByName("GameplayScreen") as GameplayScreen;
     screen.ResetGameScreen(true);
     GC.Collect();
 }
예제 #3
0
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayBackground(), new GameplayScreen(), new GameplayUI());
 }
예제 #4
0
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
예제 #5
0
 void HighScoreMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new HighScoreDisplay());
 }
예제 #6
0
 void ReturnToMainMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.RemoveScreens();
     ScreenManager.AddScreen(new Background(), ControllingPlayer);
     ScreenManager.AddScreen(new MainMenuScreen(), ControllingPlayer);
 }
예제 #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();
 }