/// <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 LevelMenuScreen());

            //LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
            //       new GameplayScreen());

            ScreenManager.AddScreen(new LevelMenuScreen(), e.PlayerIndex);
        }
 void InstructionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new InstructionsScreen(), null);
     //ScreenManager.AddScreen(new PhoneScoreScreen(), null);
     //SetMenuEntryText();
 }
 /// <summary>
 /// Event handler for when the Elf menu entry is selected.
 /// </summary>
 void UpgradeMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ShipSelectScreen(), null);
     //SetMenuEntryText();
 }
        /// <summary>
        /// Event handler for when the Frobnicate menu entry is selected.
        /// </summary>
        void DifficultyMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            currentDifficulty = (currentDifficulty + 1) % difficulty.Length;

            SetMenuEntryText();
        }
 /// <summary>
 /// Event handler for when the Language menu entry is selected.
 /// </summary>
 void LevelMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     Config.level = (Config.level + 1) % 6;
     SetMenuEntryText();
     Config.Level = (LevelSelect)Config.level + 1;
     BackgroundScreen.BackgroundTransition = true;
 }
        /// <summary>
        /// Event handler for when the Ungulate menu entry is selected.
        /// </summary>
        void PlayMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            //LoadingScreen.Load(ScreenManager, true, null,
            //                   new GameplayScreen());
            if (Config.Level == LevelSelect.Practise)
                Config.Level = Config.tempLevel;

            ScreenManager.AddScreen(new PhoneModeScreen(), null);
        }
Esempio n. 7
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);
 }
        void LeaderBoardMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            //using this to fix the way back button is working when exiting XLiveStartupForm, need to find a less hackish method.
            ScreenManager.AddScreen(new LevelMenuScreen(), e.PlayerIndex);

            //this.ScreenManager.Enabled = false;
            //ScreenManager.XLiveStartupForm = new XLiveStartupForm2(ScreenManager.XLiveManager, ScreenManager);
            ////ScreenManager.XLiveStartupForm.Background = backgroundTexture;
            //ScreenManager.XLiveStartupForm.ExitButton = false;
            //ScreenManager.XLiveStartupForm.ContinueButton = false;
            //ScreenManager.XLiveStartupForm.NewgameButton = false;
            //ScreenManager.XLiveStartupForm.HelpButton = false;
            //ScreenManager.XLiveStartupForm.Show();

            OpenXLive.Forms.XLiveFormFactory.Factory.ShowForm("Lobby");
            //OpenXLive.Forms.XLiveFormFactory.Factory.ShowForm("Lobby");
        }
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
 void CreditsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new CreditsScreen(), e.PlayerIndex);
 }
 void ThumbsticksEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     Config.ThumbsticksOn = !Config.ThumbsticksOn;
     SetMenuEntryText();
 }
 void ControlsEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     Config.ControlOption = (Config.ControlOption + 1) % 4;
     SetMenuEntryText();
 }
 void SFXMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     Config.SoundFXOn = !Config.SoundFXOn;
     SetMenuEntryText();
 }
        void MusicMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            Config.MusicOn = !Config.MusicOn;
            GameStateManagementGame.Instance.musicManager.Enabled = !GameStateManagementGame.Instance.musicManager.Enabled;

            if (!Config.MusicOn)
                GameStateManagementGame.Instance.musicManager.Stop();
            else
                GameStateManagementGame.Instance.musicManager.Play(titleScreenmusic);
            
            SetMenuEntryText();
        }
        void VibrateMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            Vibration = !Vibration;

            Config.Vibrate = !Config.Vibrate;

            SetMenuEntryText();
        }