Exemple #1
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)
 {
     LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(),
                        new MainMenuScreen());
 }
Exemple #2
0
 void InputMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new InputDebugScreen(), e.PlayerIndex);
 }
Exemple #3
0
        /* void CharacterMenuEntrySelected(object sender, PlayerIndexEventArgs e)
         * {
         *   ScreenManager.AddScreen(new CharacterTestScreen(), e.PlayerIndex);
         * }*/

        void BackMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            ScreenManager.AddScreen(new MainMenuScreen(), e.PlayerIndex);
        }
Exemple #4
0
 /// <summary>
 /// Loads the intro sequence.
 /// </summary>
 /// <param name="e"></param>
 void LoadIntroSequence(PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new IntroSequenceScreen());
 }
Exemple #5
0
 void ScenarioMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ScenarioScreen(), e.PlayerIndex);
 }
Exemple #6
0
 /// <summary>
 /// Event handler for when the Elite menu entry is selected.
 /// </summary>
 void EliteMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadIntroSequence(e);
 }
Exemple #7
0
 /// <summary>
 /// Event handler for when the Exit Game menu entry is selected.
 /// </summary>
 void ExitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     // Exit game code
 }
Exemple #8
0
 /// <summary>
 /// Event hander for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsScreen(), e.PlayerIndex);
 }
Exemple #9
0
 /// <summary>
 /// Event handler for when the Tutorial menu entry is selected.
 /// </summary>
 void TutorialMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new TutorialScreen(), e.PlayerIndex);
 }
Exemple #10
0
 /// <summary>
 /// Event handler for when the Continue menu entry is selected.
 /// </summary>
 void ContinueMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ContinueMenuScreen(), e.PlayerIndex);
 }