/// <summary> /// Event handler for when the user selects ok on the "are you sure /// you want to quit" message box. This uses the loading screen to /// transition from the game back to the main menu screen. /// </summary> void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen("Menus/gamemenu_final"), new MainMenuScreen()); }
/// <summary> /// Handler for when the user has cancelled the menu. /// </summary> protected override void OnCancel(PlayerIndex playerIndex) { LoadingScreen.Load(ScreenManager, true, playerIndex, new GameplayScreen()); }
/// <summary> /// Event handler for when the user selects ok on the "are you sure /// you want to exit" message box. /// </summary> void GameOverMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { GamePad.SetVibration(PlayerIndex.One, 0.0f, 0.0f);// Stop controller from rumbling LoadingScreen.Load(screenManager, false, null, new BackgroundScreen("Menus/gamemenu_final"), new MainMenuScreen()); }
void ContinueMenuEntrySelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new BackgroundScreen("Menus/gamemenu_final"), new MainMenuScreen()); }