Beispiel #1
0
        /// <summary>
        /// Event handler for when the Play Game menu entry is selected.
        /// </summary>

        /// <summary>
        /// When the user cancels the main menu, ask if they want to exit the sample.
        /// </summary>
        protected override void OnCancel(PlayerIndex playerIndex)
        {
            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(ScreenManager.ExitMessage);

            confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmExitMessageBox, playerIndex, null);
        }
Beispiel #2
0
        public static void ShowMessage(ScreenManager Manager, String msg)
        {
            MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(msg);

            Manager.AddScreen(confirmExitMessageBox, null, null);
        }