Example #1
0
        /// <summary>
        /// Handler for when the user has chosen a menu entry.
        /// </summary>
        protected virtual void OnSelectEntry(int entryIndex, PlayerIndex playerIndex)
        {
            mSound.Play(Sound.SoundFX.Selection);
            MediaPlayer.Stop();
            GameScreen[] screenstoload = new GameScreen[2];
            screenstoload[0] = new TitleBackground(ScreenManager);
            screenstoload[1] = new TitleScreen(ScreenManager);

            LoadingScreen.Load(ScreenManager, true, playerIndex, screenstoload);
        }
 //        protected virtual void OnCancel(PlayerIndex playerIndex)
 protected override void OnCancel(PlayerIndex playerIndex)
 {
     mSound.Play(Sound.SoundFX.Selection);
     ScreenManager.RemoveScreen(this);
     GameScreen[] screenstoload = new GameScreen[2];
     screenstoload[0] = new TitleBackground(ScreenManager);
     screenstoload[1] = new TitleScreen(ScreenManager);
     LoadingScreen.Load(ScreenManager, true, playerIndex, screenstoload);
 }
Example #3
0
 /// <summary>
 /// Handler for when the user has cancelled the menu.
 /// </summary>
 protected virtual void OnCancel(PlayerIndex playerIndex)
 {
     //mSound.Play(Sound.Music.Background);
     mSound.Play(Sound.SoundFX.Selection);
     MediaPlayer.Stop();
     ScreenManager.RemoveScreen(this);
     GameScreen[] screenstoload = new GameScreen[2];
     screenstoload[0] = new TitleBackground(ScreenManager);
     screenstoload[1] = new TitleScreen(ScreenManager);
     LoadingScreen.Load(ScreenManager, true, playerIndex, screenstoload);
 }