Пример #1
0
        /// <summary>
        /// Event handler for when the Quit Game menu entry is selected.
        /// </summary>
        void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Are you sure?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer);
        }
Пример #2
0
 void actMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ActSelectionScreen(), PlayerIndex.One);
 }
Пример #3
0
 void survivalModeEntrySelected(object sender, PlayerIndexEventArgs e)
 {
 }
Пример #4
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen());
 }
Пример #5
0
 void chapterOne_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, PlayerIndex.One, new ChapterOne());
 }
Пример #6
0
 void tutlevel_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                         new TutLevel1());
 }
Пример #7
0
 void actOne_Selected(object sender, PlayerIndexEventArgs e)
 {
     //LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
       //                  new TutLevel1());
     ScreenManager.AddScreen(new ActOneScreen(),PlayerIndex.One);
 }
Пример #8
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Пример #9
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen());
 }
Пример #10
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Пример #11
0
 void survivalModeEntrySelected(object sender, PlayerIndexEventArgs e)
 {
 }
Пример #12
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());
 }
Пример #13
0
 /// <summary>
 /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 /// </summary>
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }
Пример #14
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to exit" message box.
 /// </summary>
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Пример #15
0
 void actMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ActSelectionScreen(), PlayerIndex.One);
 }
Пример #16
0
 void levelEditEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager,true,e.PlayerIndex,
        new LevelEditor());
 }
Пример #17
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Пример #18
0
 void chapterOne_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, PlayerIndex.One, new ChapterOne());
 }
Пример #19
0
 void levelEditEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new LevelEditor());
 }
Пример #20
0
 void test1_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                         new TestingPickupable());
 }
Пример #21
0
 void actOne_Selected(object sender, PlayerIndexEventArgs e)
 {
     //LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
     //                  new TutLevel1());
     ScreenManager.AddScreen(new ActOneScreen(), PlayerIndex.One);
 }
Пример #22
0
 void level3_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager,true,e.PlayerIndex,
                         new level3Screen());
 }
Пример #23
0
 void  tut_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, PlayerIndex.One, new TutLevel1());
 }