/// <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(); }
/// <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()); }
// Helper overload makes it easy to use OnCancel as a MenuEntry event handler. protected void OnCancel(object sender, PlayerIndexEventArgs e) { OnCancel(e.PlayerIndex); }