Exemple #1
0
 /// <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());
 }
Exemple #2
0
 /// <summary>
 /// Handler for when the user has cancelled the menu.
 /// </summary>
 protected override void OnCancel(PlayerIndex playerIndex)
 {
     LoadingScreen.Load(ScreenManager, true, playerIndex, new GameplayScreen());
 }
Exemple #3
0
 /// <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());
 }