/// <summary>
        /// Constructor.
        /// </summary>
        public PauseMenuScreen()
            : base("Paused")
        {
            // Create our menu entries.
            MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game");
            MenuEntry restartGameMenuEntry = new MenuEntry("Restart Level");
            musicOn = new MenuEntry("Music :" + (GameSettings.MusicOn ? " On" : " Off"));
            multiSample = new MenuEntry("Graphics SuperSampling :" + (GameSettings.MultiSampling ? " On" : " Off"));
            debugView = new MenuEntry("Debug View :" + (GameSettings.DebugViewEnabled ? " On" : " Off"));
            blockDeath = new MenuEntry("Enable Destructable Blocks :" + (GameSettings.BlockDeathEnabled ? " On" : " Off"));
            showControlsMenuEntry = new MenuEntry("Show Controls :" + (GameSettings.ShowControlsEnabled ? " On" : " Off"));
            MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game");

            // Hook up menu event handlers.
            resumeGameMenuEntry.Selected += OnCancel;
            restartGameMenuEntry.Selected += RestartGameMenuEntrySelected;
            musicOn.Selected += MusicOnSelected;
            multiSample.Selected += MultiSampleSelected;
            debugView.Selected += DebugViewSelected;
            blockDeath.Selected += BlockDeathSelected;
            showControlsMenuEntry.Selected += ShowControlsMenuEntrySelected;
            quitGameMenuEntry.Selected += QuitGameMenuEntrySelected;

            // Add entries to the menu.
            MenuEntries.Add(multiSample);
            MenuEntries.Add(musicOn);
            MenuEntries.Add(resumeGameMenuEntry);
            MenuEntries.Add(restartGameMenuEntry);
            MenuEntries.Add(debugView);
            MenuEntries.Add(blockDeath);
            MenuEntries.Add(showControlsMenuEntry);
            MenuEntries.Add(quitGameMenuEntry);
        }
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainOptionScreen(bool _isGamePause)
            : base("Game Paused")
        {
            isGamePause = _isGamePause;
            if (isGamePause) pauseOffset = 60;

            // Create our menu entries.
            Music = new MenuEntry(string.Empty);
            Sound = new MenuEntry(string.Empty);
            ShotPath = new MenuEntry(string.Empty);
            HelpGraphic = new MenuEntry(string.Empty);

            // Hook up menu event handlers.
            Music.Plus += new EventHandler<PlayerIndexEventArgs>(Music_Plus);
            Music.Minus += new EventHandler<PlayerIndexEventArgs>(Music_Minus);
            Sound.Plus += new EventHandler<PlayerIndexEventArgs>(Sound_Plus);
            Sound.Minus += new EventHandler<PlayerIndexEventArgs>(Sound_Minus);
            ShotPath.Plus += new EventHandler<PlayerIndexEventArgs>(ShotPath_Plus);
            ShotPath.Minus += new EventHandler<PlayerIndexEventArgs>(ShotPath_Minus);
            HelpGraphic.Plus += new EventHandler<PlayerIndexEventArgs>(HelpGraphic_Plus);
            HelpGraphic.Minus += new EventHandler<PlayerIndexEventArgs>(HelpGraphic_Minus);
            HelpGraphic.Selected += new EventHandler<PlayerIndexEventArgs>(HelpGraphic_Selected);

            // Add entries to the menu.
            MenuEntries.Add(Music);
            MenuEntries.Add(Sound);
            MenuEntries.Add(ShotPath);
            MenuEntries.Add(HelpGraphic);

            if (!isGamePause && GameSettings.isTestingMode)
            {
                resetSaveMenuEntry = new MenuEntry("Reset Save Data (Beta Testing)"); //beat
                locksMenuEntry = new MenuEntry("Level/Fruit Locks (Beta Testing): "); //beta
                resetSaveMenuEntry.Selected += new System.EventHandler<PlayerIndexEventArgs>(resetSaveMenuEntry_Selected); //beta
                locksMenuEntry.Selected += new System.EventHandler<PlayerIndexEventArgs>(locksMenuEntry_Selected); //beta
                MenuEntries.Add(resetSaveMenuEntry); //beta
                MenuEntries.Add(locksMenuEntry);  //beta
            }

            SetMenuEntryText();
        }
        public override void LoadContent(ContentManager _content)
        {
            //commented, instances its own content manager
            //content = _content;
            //if (contentInstance == null)
            //    contentInstance = new ContentManager(ScreenManager.Game.Services, "Content");

            LevelDataManager.UItextures.TryGetValue("MainSingle", out MainSingle);
            LevelDataManager.UItextures.TryGetValue("MainOption", out MainOption);
            LevelDataManager.UItextures.TryGetValue("MainCheat", out MainCheat);
            LevelDataManager.UItextures.TryGetValue("MainSound", out MainSound);
            LevelDataManager.UItextures.TryGetValue("MainQuit", out MainQuit);
            LevelDataManager.UItextures.TryGetValue("Title", out menuTitleGraphic);
            isMenuTitleGraphic = true;
            menuTitleGraphicScale = 1.0f;

            //create textured menu entries
            MenuEntry playGameMenuEntry = new MenuEntry(MainSingle);
            MenuEntry optionsMenuEntry = new MenuEntry(MainOption);
            MenuEntry cheatMenuEntry = new MenuEntry(MainCheat);
            MenuEntry soundMenuEntry = new MenuEntry(MainSound);
            MenuEntry exitMenuEntry = new MenuEntry(MainQuit);

            // Hook up menu event handlers.
            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            optionsMenuEntry.Selected += OptionsMenuEntrySelected;
            cheatMenuEntry.Selected += CheatMenuEntrySelected;
            soundMenuEntry.Selected += SoundMenuEntrySelected;
            exitMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(playGameMenuEntry);
            MenuEntries.Add(optionsMenuEntry);
            MenuEntries.Add(cheatMenuEntry);
            MenuEntries.Add(soundMenuEntry);
            MenuEntries.Add(exitMenuEntry);

            SoundManager.LoadMusic(LevelDataManager.levelContent, -1);
        }
        Vector2 waterflamePos = Vector2.Zero; //set in Load content

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public SoundMenuScreen()
            : base("Sound Test Menu")
        {
            // Create our menu entries.
            Title = new MenuEntry("Super Swing-Bit Orchestra (Menu Loop)");
            Credits = new MenuEntry("Super Swing-Bit Orchestra (Extended)");
            Training = new MenuEntry("Clouds");
            Grass1 = new MenuEntry("Happyland");
            Grass2 = new MenuEntry("Cubic Adventures");
            Forest1 = new MenuEntry("Summer Rave");
            Forest2 = new MenuEntry("Summertime");
            Desert1 = new MenuEntry("Boss Hunter");
            Desert2 = new MenuEntry("Haunted Woods");
            Snow1 = new MenuEntry("Flight");
            Snow2 = new MenuEntry("Conclusion");
            Factory1 = new MenuEntry("Killstealer");
            Factory2 = new MenuEntry("Bassrift");
            Boss = new MenuEntry("Give Me A Break");

            // Hook up menu event handlers.

            // Add entries to the menu.
            MenuEntries.Add(Title);
            MenuEntries.Add(Credits);
            MenuEntries.Add(Training);
            MenuEntries.Add(Grass1);
            MenuEntries.Add(Grass2);
            MenuEntries.Add(Forest1);
            MenuEntries.Add(Forest2);
            MenuEntries.Add(Desert1);
            MenuEntries.Add(Desert2);
            MenuEntries.Add(Snow1);
            MenuEntries.Add(Snow2);
            MenuEntries.Add(Factory1);
            MenuEntries.Add(Factory2);
            MenuEntries.Add(Boss);
        }
        public override void LoadContent(ContentManager _content)
        {
            switch (LevelDataManager.nextworld)
            {
                case 0:
                    {
                        LevelDataManager.UItextures.TryGetValue("World0", out menuTitleGraphic);
                        numberOfLevels = 10;
                        divisor = "/10";
                        break;
                    }
                case 1:
                    {
                        LevelDataManager.UItextures.TryGetValue("World1", out menuTitleGraphic);
                        break;
                    }
                case 2:
                    {
                        LevelDataManager.UItextures.TryGetValue("World2", out menuTitleGraphic);
                        break;
                    }
                case 3:
                    {
                        LevelDataManager.UItextures.TryGetValue("World3", out menuTitleGraphic);
                        break;
                    }
                case 4:
                    {
                        LevelDataManager.UItextures.TryGetValue("World4", out menuTitleGraphic);
                        break;
                    }
                case 5:
                    {
                        LevelDataManager.UItextures.TryGetValue("World5", out menuTitleGraphic);
                        break;
                    }
                case 6:
                    {
                        LevelDataManager.UItextures.TryGetValue("World6", out menuTitleGraphic);
                        break;
                    }
                default:
                    break;
            }
            isMenuTitleGraphic = true;
            LevelDataManager.UItextures.TryGetValue("MenuBack", out menuBackground);

            //create textured menu entries
            LevelDataManager.UItextures.TryGetValue("LevelNoStar", out levelNoStar);
            LevelDataManager.UItextures.TryGetValue("LevelWithStar", out levelWithStar);
            LevelDataManager.UItextures.TryGetValue("Numbers", out numbers);
            LevelDataManager.UItextures.TryGetValue("NumberLock", out levelLock);
            LevelDataManager.UItextures.TryGetValue("Star", out levelStar);
            LevelDataManager.UItextures.TryGetValue("Pixel", out pixel);
            LevelDataManager.UItextures.TryGetValue("MedalBronze", out bronze);
            LevelDataManager.UItextures.TryGetValue("MedalSilver", out silver);
            LevelDataManager.UItextures.TryGetValue("MedalGold", out gold);

            for (int i = 0; i < numberOfLevels; i++)
            {
               // MenuEntry LevelMenuEntry = new MenuEntry(levelNoStar,levelWithStar, numbers, i, levelLock, levelStar, levelBronze,levelSilver,levelGold);
                MenuEntry LevelMenuEntry = new MenuEntry(levelNoStar,levelWithStar, numbers, i, levelLock, levelStar, bronze,silver,gold);
                LevelMenuEntry.Selected += LevelMenuEntrySelected;
                if (LevelMenuEntry.isStarCollected) displayStars += 1;
                if (LevelMenuEntry.isBronze) displayBronze += 1;
                if (LevelMenuEntry.isSilver) displaySilver += 1;
                if (LevelMenuEntry.isGold) displayGold += 1;
                MenuEntries.Add(LevelMenuEntry);
            }

            earnedStars = LevelDataManager.EarnedStars();
            base.LoadContent(_content);
        }
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public CheatMenuScreen()
            : base("Cheat Menu")
        {
            //count total gold medals earned
            earnedGold = LevelDataManager.EarnedGold();

            // Create our menu entries.
            InvincibilityMenuEntry = new MenuEntry("");
            TNTBarrelMenuEntry = new MenuEntry("");
            SharpshooterMenuEntry = new MenuEntry("");
            FasterMenuEntry = new MenuEntry("");
            FireBarrelMenuEntry = new MenuEntry("");
            BlindfoldMenuEntry = new MenuEntry("");
            GrowthBarrelMenuEntry = new MenuEntry("");
            FunsplosionMenuEntry = new MenuEntry("");
            LegionMenuEntry = new MenuEntry("");
            LightningBarrelMenuEntry = new MenuEntry("");
            MoonMenuEntry = new MenuEntry("");
            CannonBarrel = new MenuEntry("");
            SawBarrelMenuEntry = new MenuEntry("");
            HardModeMenuEntry = new MenuEntry("");
            GoodToBeBadMenuEntry = new MenuEntry("");

            // Hook up menu event handlers.

            // Add entries to the menu.
            MenuEntries.Add(InvincibilityMenuEntry);
            MenuEntries.Add(CannonBarrel);
            MenuEntries.Add(SharpshooterMenuEntry);
            MenuEntries.Add(FasterMenuEntry);
            MenuEntries.Add(FireBarrelMenuEntry);
            MenuEntries.Add(BlindfoldMenuEntry);
            MenuEntries.Add(GrowthBarrelMenuEntry);
            MenuEntries.Add(FunsplosionMenuEntry);
            MenuEntries.Add(LegionMenuEntry);
            MenuEntries.Add(LightningBarrelMenuEntry);
            MenuEntries.Add(MoonMenuEntry);
            MenuEntries.Add(TNTBarrelMenuEntry);
            MenuEntries.Add(SawBarrelMenuEntry);
            MenuEntries.Add(HardModeMenuEntry);
            MenuEntries.Add(GoodToBeBadMenuEntry);

            SetMenuEntryText();
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public BlockOptionsMenuScreen()
            : base("Block Options")
        {
            // Create our menu entries.
            blockBaseHPMenuEntry = new MenuEntry(string.Empty);
            cheeseHPMultiplierMenuEntry = new MenuEntry(string.Empty);
            cheeseDensityMenuEntry = new MenuEntry(string.Empty);
            cheeseFrictionMenuEntry = new MenuEntry(string.Empty);
            cheeseRestitutionMenuEntry = new MenuEntry(string.Empty);
            woodHPMultiplierMenuEntry = new MenuEntry(string.Empty);
            woodDensityMenuEntry = new MenuEntry(string.Empty);
            woodFrictionMenuEntry = new MenuEntry(string.Empty);
            woodRestitutionMenuEntry = new MenuEntry(string.Empty);
            iceHPMultiplierMenuEntry = new MenuEntry(string.Empty);
            iceDensityMenuEntry = new MenuEntry(string.Empty);
            iceFrictionMenuEntry = new MenuEntry(string.Empty);
            iceRestitutionMenuEntry = new MenuEntry(string.Empty);
            stoneHPMultiplierMenuEntry = new MenuEntry(string.Empty);
            stoneDensityMenuEntry = new MenuEntry(string.Empty);
            stoneFrictionMenuEntry = new MenuEntry(string.Empty);
            stoneRestitutionMenuEntry = new MenuEntry(string.Empty);
            metalHPMultiplierMenuEntry = new MenuEntry(string.Empty);
            metalDensityMenuEntry = new MenuEntry(string.Empty);
            metalFrictionMenuEntry = new MenuEntry(string.Empty);
            metalRestitutionMenuEntry = new MenuEntry(string.Empty);

            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.
            blockBaseHPMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(blockBaseHPMenuEntry_Plus);
            blockBaseHPMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(blockBaseHPMenuEntry_Minus);
            cheeseHPMultiplierMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(cheeseHPMultiplierMenuEntry_Plus);
            cheeseHPMultiplierMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(cheeseHPMultiplierMenuEntry_Minus);
            cheeseDensityMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(cheeseDensityMenuEntry_Plus);
            cheeseDensityMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(cheeseDensityMenuEntry_Minus);
            cheeseFrictionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(cheeseFrictionMenuEntry_Plus);
            cheeseFrictionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(cheeseFrictionMenuEntry_Minus);
            cheeseRestitutionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(cheeseRestitutionMenuEntry_Plus);
            cheeseRestitutionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(cheeseRestitutionMenuEntry_Minus);
            woodHPMultiplierMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(woodHPMultiplierMenuEntry_Plus);
            woodHPMultiplierMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(woodHPMultiplierMenuEntry_Minus);
            woodDensityMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(woodDensityMenuEntry_Plus);
            woodDensityMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(woodDensityMenuEntry_Minus);
            woodFrictionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(woodFrictionMenuEntry_Plus);
            woodFrictionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(woodFrictionMenuEntry_Minus);
            woodRestitutionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(woodRestitutionMenuEntry_Plus);
            woodRestitutionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(woodRestitutionMenuEntry_Minus);
            iceHPMultiplierMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(iceHPMultiplierMenuEntry_Plus);
            iceHPMultiplierMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(iceHPMultiplierMenuEntry_Minus);
            iceDensityMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(iceDensityMenuEntry_Plus);
            iceDensityMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(iceDensityMenuEntry_Minus);
            iceFrictionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(iceFrictionMenuEntry_Plus);
            iceFrictionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(iceFrictionMenuEntry_Minus);
            iceRestitutionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(iceRestitutionMenuEntry_Plus);
            iceRestitutionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(iceRestitutionMenuEntry_Minus);
            stoneHPMultiplierMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(stoneHPMultiplierMenuEntry_Plus);
            stoneHPMultiplierMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(stoneHPMultiplierMenuEntry_Minus);
            stoneDensityMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(stoneDensityMenuEntry_Plus);
            stoneDensityMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(stoneDensityMenuEntry_Minus);
            stoneFrictionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(stoneFrictionMenuEntry_Plus);
            stoneFrictionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(stoneFrictionMenuEntry_Minus);
            stoneRestitutionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(stoneRestitutionMenuEntry_Plus);
            stoneRestitutionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(stoneRestitutionMenuEntry_Minus);
            metalHPMultiplierMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(metalHPMultiplierMenuEntry_Plus);
            metalHPMultiplierMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(metalHPMultiplierMenuEntry_Minus);
            metalDensityMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(metalDensityMenuEntry_Plus);
            metalDensityMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(metalDensityMenuEntry_Minus);
            metalFrictionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(metalFrictionMenuEntry_Plus);
            metalFrictionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(metalFrictionMenuEntry_Minus);
            metalRestitutionMenuEntry.Plus += new EventHandler<PlayerIndexEventArgs>(metalRestitutionMenuEntry_Plus);
            metalRestitutionMenuEntry.Minus += new EventHandler<PlayerIndexEventArgs>(metalRestitutionMenuEntry_Minus);

            back.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(blockBaseHPMenuEntry);
            MenuEntries.Add(cheeseHPMultiplierMenuEntry);
            MenuEntries.Add(cheeseDensityMenuEntry);
            MenuEntries.Add(cheeseFrictionMenuEntry);
            MenuEntries.Add(cheeseRestitutionMenuEntry);
            MenuEntries.Add(woodHPMultiplierMenuEntry);
            MenuEntries.Add(woodDensityMenuEntry);
            MenuEntries.Add(woodFrictionMenuEntry);
            MenuEntries.Add(woodRestitutionMenuEntry);
            MenuEntries.Add(iceHPMultiplierMenuEntry);
            MenuEntries.Add(iceDensityMenuEntry);
            MenuEntries.Add(iceFrictionMenuEntry);
            MenuEntries.Add(iceRestitutionMenuEntry);
            MenuEntries.Add(stoneHPMultiplierMenuEntry);
            MenuEntries.Add(stoneDensityMenuEntry);
            MenuEntries.Add(stoneFrictionMenuEntry);
            MenuEntries.Add(stoneRestitutionMenuEntry);
            MenuEntries.Add(metalHPMultiplierMenuEntry);
            MenuEntries.Add(metalDensityMenuEntry);
            MenuEntries.Add(metalFrictionMenuEntry);
            MenuEntries.Add(metalRestitutionMenuEntry);
            MenuEntries.Add(back);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen()
            : base("Options")
        {
            // Create our menu entries.
            isMusicMenuEntry = new MenuEntry(string.Empty);
            resetSaveMenuEntry = new MenuEntry("Reset Save Data");
            locksMenuEntry = new MenuEntry("Level/Fruit Locked : ");
            minFiringPowerMenuEntry = new MenuEntry(string.Empty);
            maxFiringPowerMenuEntry = new MenuEntry(string.Empty);
            gravityMenuEntry = new MenuEntry(string.Empty);
            physicsScaleMenuEntry = new MenuEntry(string.Empty);
            explosiveForceMenuEntry = new MenuEntry(string.Empty);
            explosiveRadiusMenuEntry = new MenuEntry(string.Empty);
            fruitHPMenuEntry = new MenuEntry(string.Empty);
            fruitMassMenuEntry = new MenuEntry(string.Empty);
            fruitFrictionMenuEntry = new MenuEntry(string.Empty);
            fruitRestitutionMenuEntry = new MenuEntry(string.Empty);
            veggieHPMenuEntry = new MenuEntry(string.Empty);
            veggieMassMenuEntry = new MenuEntry(string.Empty);
            veggieFrictionMenuEntry = new MenuEntry(string.Empty);
            veggieRestitutionMenuEntry = new MenuEntry(string.Empty);

            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.
            isMusicMenuEntry.Selected += new System.EventHandler<PlayerIndexEventArgs>(isMusicMenuEntry_Selected);
            resetSaveMenuEntry.Selected += new System.EventHandler<PlayerIndexEventArgs>(resetSaveMenuEntry_Selected);
            locksMenuEntry.Selected += new System.EventHandler<PlayerIndexEventArgs>(locksMenuEntry_Selected);
            minFiringPowerMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(minFiringPowerMenuEntry_Plus);
            minFiringPowerMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(minFiringPowerMenuEntry_Minus);
            maxFiringPowerMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(maxFiringPowerMenuEntry_Plus);
            maxFiringPowerMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(maxFiringPowerMenuEntry_Minus);
            gravityMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(gravityMenuEntry_Plus);
            gravityMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(gravityMenuEntry_Minus);
            physicsScaleMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(physicsScaleMenuEntry_Plus);
            physicsScaleMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(physicsScaleMenuEntry_Minus);
            explosiveForceMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(explosiveForceMenuEntry_Plus);
            explosiveForceMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(explosiveForceMenuEntry_Minus);
            explosiveRadiusMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(explosiveRadiusMenuEntry_Plus);
            explosiveRadiusMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(explosiveRadiusMenuEntry_Minus);

            fruitHPMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(fruitHPMenuEntry_Plus);
            fruitHPMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(fruitHPMenuEntry_Minus);
            fruitMassMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(fruitMassMenuEntry_Plus);
            fruitMassMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(fruitMassMenuEntry_Minus);
            fruitFrictionMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(fruitFrictionMenuEntry_Plus);
            fruitFrictionMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(fruitFrictionMenuEntry_Minus);
            fruitRestitutionMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(fruitRestitutionMenuEntry_Plus);
            fruitRestitutionMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(fruitRestitutionMenuEntry_Minus);

            veggieHPMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(veggieHPMenuEntry_Plus);
            veggieHPMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(veggieHPMenuEntry_Minus);
            veggieMassMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(veggieMassMenuEntry_Plus);
            veggieMassMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(veggieMassMenuEntry_Minus);
            veggieFrictionMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(veggieFrictionMenuEntry_Plus);
            veggieFrictionMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(veggieFrictionMenuEntry_Minus);
            veggieRestitutionMenuEntry.Plus += new System.EventHandler<PlayerIndexEventArgs>(veggieRestitutionMenuEntry_Plus);
            veggieRestitutionMenuEntry.Minus += new System.EventHandler<PlayerIndexEventArgs>(veggieRestitutionMenuEntry_Minus);

            back.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(isMusicMenuEntry);
            MenuEntries.Add(resetSaveMenuEntry);
            MenuEntries.Add(locksMenuEntry);
            MenuEntries.Add(minFiringPowerMenuEntry);
            MenuEntries.Add(maxFiringPowerMenuEntry);
            //MenuEntries.Add(gravityMenuEntry);
            //MenuEntries.Add(physicsScaleMenuEntry);
            MenuEntries.Add(explosiveForceMenuEntry);
            MenuEntries.Add(explosiveRadiusMenuEntry);
            MenuEntries.Add(fruitHPMenuEntry);
            MenuEntries.Add(fruitMassMenuEntry);
            MenuEntries.Add(fruitFrictionMenuEntry);
            MenuEntries.Add(fruitRestitutionMenuEntry);
            MenuEntries.Add(veggieHPMenuEntry);
            MenuEntries.Add(veggieMassMenuEntry);
            MenuEntries.Add(veggieFrictionMenuEntry);
            MenuEntries.Add(veggieRestitutionMenuEntry);
            MenuEntries.Add(back);
        }