Asteroids.OptionsMenu.Load C# (CSharp) Method

Load() public method

public Load ( ) : void
return void
        public void Load()
        {
            graphics.PreferMultiSampling = stateCheckBox;
            graphics.ApplyChanges();
            spriteFont = Content.Load<SpriteFont>("MenuFont");

            txSoundBar = Content.Load<Texture2D>("SoundBar");
            txSoundBarCursor = Content.Load<Texture2D>("SoundBarCursor");
            txArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            txArrowRight = Content.Load<Texture2D>("ArrowRight");
            posSoundBar = new Vector2(2.35f, 3f);
            posSoundBarCursor = new Vector2(1.77f, 3.17f);
            posArrowLeft = new Vector2(2.64f, 3.17f);
            posArrowRight = new Vector2(1.67f, 3.17f);
            sizeArrow = new Vector2(43, 35);
            sizeSoundBar = new Vector2(204, 10);
            sizeSoundBarCursor = new Vector2(22, 35);
            tSound = new TSoundOption(graphics, txSoundBar, txSoundBarCursor, txArrowLeft, txArrowRight, posSoundBar, sizeSoundBar, sizeSoundBarCursor, posArrowLeft, posArrowRight, sizeArrow, Color.White);

            txResolutionBar = Content.Load<Texture2D>("ResolutionBar");
            txArrowLeft = Content.Load<Texture2D>("ArrowLeft");
            txArrowRight = Content.Load<Texture2D>("ArrowRight");
            posArrowLeft = new Vector2(2.64f, 2.5f);
            posArrowRight = new Vector2(1.67f, 2.5f);
            posResolutionBar = new Vector2(2.4f, 2.5f);
            sizeArrow = new Vector2(43, 35);
            sizeResolutionBar = new Vector2(229, 35);
            tResolution = new TResolutionOption(graphics, txResolutionBar, txArrowLeft, txArrowRight, posResolutionBar, sizeResolutionBar, posArrowLeft, posArrowRight, sizeArrow, Color.White);

            checkedBox = Content.Load<Texture2D>("CheckboxTrue");
            unCheckedBox = Content.Load<Texture2D>("CheckboxFalse");
            posCheckBoxLeft = new Vector2(2.63f, 2);
            posCheckBoxRight = new Vector2(1.79f, 2);
            vecSizeCheckBox = new Vector2(35, 35);
            cbAlias = new TCheckBoxOption(graphics, checkedBox, unCheckedBox, posCheckBoxLeft, posCheckBoxRight, vecSizeCheckBox, stateCheckBox, Color.White);

            txBackground = Content.Load<Texture2D>("OptionsBG");
            txBack = Content.Load<Texture2D>("Back");
            txSelectArrow = Content.Load<Texture2D>("SelectArrow");
            textHeader = "JUST ANOTHER OPTIONS MENU";
            textSound = "SOUND";
            textResolution = "RESOLUTION";
            textAlias = "ANTI ALIASING";
            textAliasOn = "ON";
            textAliasOff = "OFF";
            posBack = new Vector2(2.13f, 1.7f);
            posHeader = new Vector2(2.9f, 5f);
            posSelectArrow = new Vector2(6.5f, 3.1f);
            posSound = new Vector2(3.51f, 3.2f);
            posResolution = new Vector2(4.4f, 2.5f);
            posAlias = new Vector2(5.1f, 2f);
            posAliasOn = new Vector2(2.41f, 2f);
            posAliasOff = new Vector2(1.69f, 2f);
            sizeBack = new Vector2(70, 20);
            sizeSelectArrow = new Vector2(38, 18);
            oText = new OptionsText(graphics, txBackground, txBack, posBack, sizeBack, txSelectArrow, posSelectArrow, sizeSelectArrow, spriteFont, textHeader, posHeader, textSound, posSound, textResolution, posResolution, textAlias, posAlias, textAliasOn, posAliasOn, textAliasOff, posAliasOff, Color.White);
            sleepTimeLeftRight = 8;
            framesPassed = 0;
            sleepTimeUpDown = 4;
            sleepTimeCheckBox = 150;
            sleepTimeResolution = 20;
        }