/// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen());
 }
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
 /// <summary>
 /// Event handler for when the Credits Game menu entry is selected.
 /// </summary>
 void CreditsGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new CreditsMenuScreen(), e.PlayerIndex);
 }
 /// <summary>
 /// Event handler for when the Continue Game menu entry is selected.
 /// </summary>
 void ContinueGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     //LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
     //                   new GameplayScreen());
     ScreenManager.AddScreen(new ContinueGameMenuScreen(), e.PlayerIndex);
 }
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Пример #6
0
 /// <summary>
 /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 /// </summary>
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }