示例#1
0
        /// <summary>
        /// Event handler for when the 3D play game option is selected.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void PlayGame3DMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            MessageBoxScreen dimensionWarningBox = new MessageBoxScreen("Sorry! 3D Mode coming soon!");
            dimensionWarningBox.Accepted += WarningBoxAccepted;
            ScreenManager.AddScreen(dimensionWarningBox, null);

            /*
            foreach (GameScreen screen in ScreenManager.GetScreens())
                screen.ExitScreen();
            ScreenManager.AddScreen(new GameplayScreen(3), null);
             */
        }
示例#2
0
 /// <summary>
 /// Event handler for when the 2D play game option is selected.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void PlayGame2DMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     foreach (GameScreen screen in ScreenManager.GetScreens())
         screen.ExitScreen();
     ScreenManager.AddScreen(new GameplayScreen(2), null);
 }