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