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