コード例 #1
0
 /// <summary>
 /// Confirming player exit method/event handler
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
コード例 #2
0
 /// <summary>
 /// Event handler for the play button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayScreen(game)); //, new CutSceneScreen());
 }
コード例 #3
0
 // Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }