/// <summary>
        /// Event handler for when the Quit Game menu entry is selected.
        /// </summary>
        void CheckQuitGame(PlayerIndexEventArgs e)
        {
            CheckQuitScreen confirmQuitMessageBox = new CheckQuitScreen();

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer);
        }
        /// <summary>
        /// When the user cancels the main menu, ask if they want to exit the sample.
        /// </summary>
        protected void OnExit(PlayerIndexEventArgs e)
        {
            CheckQuitScreen confirmExitMessageBox = new CheckQuitScreen();

            confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmExitMessageBox, e.PlayerIndex);
        }
 void ExcerciseTwoSelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new QuadrantGameScreen(QuadrantExcercises.NumbersTwo));
 }
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to quit" message box. This uses the loading screen to
 /// transition from the game back to the main menu screen.
 /// </summary>
 /// 
 void Advance(PlayerIndexEventArgs e)
 {
     this.ExitScreen();
 }
 void ToMainMenu( PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new MainMenuScreen());
 }
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 /// 
 void EducationalEntrySelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new EducationalMenuScreen());
 }
 void LaunchOptionsScreen(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new OptionsScreen());
 }
 void ResumeGame(PlayerIndexEventArgs e)
 {
     this.ExitScreen();
 }
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void MegaWeenieSelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicGameScreen( Difficulty.VeryEasy));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to quit" message box. This uses the loading screen to
 /// transition from the game back to the main menu screen.
 /// </summary>
 void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     Main.quit = true;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to quit" message box. This uses the loading screen to
 /// transition from the game back to the main menu screen.
 /// </summary>
 void ConfirmMainMenuMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new MainMenuScreen());
 }
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void QuadrantEntrySelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new QuadrantGameSelectionScreen());
 }
 void ExcerciseSixSelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new QuadrantGameScreen(QuadrantExcercises.PolarityThree));
 }
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 /// 
 void BackEntrySelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new MainMenuScreen());
 }
 void ToMainMenu(PlayerIndexEventArgs e)
 {
     TransitioningToGame = false;
     ScreenManager.TransitionTo(new MainMenuScreen());
 }
 void SuperBadassSelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicGameScreen(Difficulty.Hardest));
 }
 void PansySelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicGameScreen(Difficulty.Easy));
 }
 void NormalSelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicGameScreen(Difficulty.Normal));
 }
Exemplo n.º 19
0
 void ReplayGame(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(replayScreen);
 }
Exemplo n.º 20
0
 void ToNextLevel(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(nextScreen);
 }
Exemplo n.º 21
0
 void RestartGame(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo( Main.gameManager.LaunchGameScreen(gameType, gameDiff));
 }
Exemplo n.º 22
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void ClassicEntrySelected( PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicDifficultySelectionScreen());
 }
Exemplo n.º 23
0
        /// <summary>
        /// Event handler for when the Quit Game menu entry is selected.
        void CheckMainMenu(PlayerIndexEventArgs e)
        {
            CheckQuitScreen confirmMainMenu = new CheckQuitScreen();

            confirmMainMenu.Accepted += ConfirmMainMenuMessageBoxAccepted;

            ScreenManager.AddScreen(confirmMainMenu, ControllingPlayer);
        }
 void HairySelected(PlayerIndexEventArgs e)
 {
     ScreenManager.TransitionTo(new ClassicGameScreen(Difficulty.Hard));
 }