Example #1
0
        public OptionsText(StructOptionsMain structOptionsMain, StructOptionsText structOptionsText)
        {
            this.graphics = structOptionsMain.Graphics;
            this.txBackground = structOptionsText.TxBackground;
            this.txBack = structOptionsText.TxBack;
            this.txKeybindings = structOptionsText.TxKeybindings;
            this.txSelectArrow = structOptionsText.TxSelectArrow;
            this.sizeSelectArrow = structOptionsText.SizeSelectArrow;
            this.posBack = structOptionsText.PosBack;
            this.posKeybindings = structOptionsText.PosKeybindings;
            this.sizeBack = structOptionsText.SizeBack;
            this.sizeKeybindings = structOptionsText.SizeKeybindings;
            this.spriteFont = structOptionsMain.SpriteFont;

            this.textHeader = structOptionsText.TextHeader;
            this.textSound = structOptionsText.TextSound;
            this.textResolution = structOptionsText.TextResolution;
            this.textAlias = structOptionsText.TextAlias;
            this.textAliasOn = structOptionsText.TextAliasOn;
            this.textAliasOff = structOptionsText.TextAliasOff;

            this.posSound = structOptionsText.PosSound;
            this.posHeader = structOptionsText.PosHeader;
            this.posSelectArrow = structOptionsText.PosSelectArrow;
            this.posResolution = structOptionsText.PosResolution;
            this.posAlias = structOptionsText.PosAlias;
            this.posAliasOn = structOptionsText.PosAliasOn;
            this.posAliasOff = structOptionsText.PosAliasOff;

            this.col = Color.White;
            newPos = posSelectArrow.Y;
            Init();
        }
 public TResolutionOption(StructOptionsMain structOptionsMain, StructResolution structResolution)
 {
     this.graphics = structOptionsMain.Graphics;
     this.txResolutionBar = structResolution.TxResolutionBar;
     this.txArrowLeft = structResolution.TxArrowLeft;
     this.txArrowRight = structResolution.TxArrowRight;
     this.posResolutionBar = structResolution.PosResolutionBar;
     this.sizeResolutionBar = structResolution.SizeResolutionBar;
     this.posArrowLeft = structResolution.PosArrowLeft;
     this.posArrowRight = structResolution.PosArrowRight;
     this.sizeArrow = structResolution.SizeArrow;
     this.sizeResolutionBar = structResolution.SizeResolutionBar;
     this.col = Color.White;
     this.temp = posResolutionBar;
     Init();
 }
 public TCheckBoxOption(StructOptionsMain structOptionsMain, StructCheckBox structCheckBox)
 {
     this.graphics = structOptionsMain.Graphics;
     this.txCheckedBox = structCheckBox.TxCheckedBox;
     this.txUnCheckedBox = structCheckBox.TxUnCheckedBox;
     if (stateCheckBoxLeft)
     {
         this.txCheckBoxLeft = txCheckedBox;
         this.txCheckBoxRight = txUnCheckedBox;
     }
     else
     {
         stateCheckBoxLeft = true;
         this.txCheckBoxLeft = txUnCheckedBox;
         this.txCheckBoxRight = txCheckedBox;
     }
     this.PosCheckBoxLeft = structCheckBox.PosCheckBoxLeft;
     this.PosCheckBoxRight = structCheckBox.PosCheckBoxRight;
     this.vecSizeCheckBox = structCheckBox.VecSizeCheckBox;
     this.col = Color.White;
     Init();
 }
Example #4
0
        public TSoundOption(StructOptionsMain structOptionsMain, StructSound structSound)
        {
            this.graphics = structOptionsMain.Graphics;

            this.txSoundBar = structSound.TxSoundBar;
            this.txBarCursor = structSound.TxSoundBarCursor;
            this.txArrowLeft = structSound.TxArrowLeft;
            this.txArrowRight = structSound.TxArrowRight;

            this.posSoundBar = structSound.PosSoundBar;
            this.posArrowLeft = structSound.PosArrowLeft;
            this.posArrowRight = structSound.PosArrowRight;

            this.sizeSoundBar = structSound.SizeSoundBar;
            this.sizeBarCursor = structSound.SizeSoundBarCursor;
            this.sizeArrow = structSound.SizeArrow;

            this.col = Color.White;
            barCursorHeigthFloat = posSoundBar.Y += 0.30f;
            MakeResolutionArray();
            Init();
        }
Example #5
0
 public OptionsMenu(StructOptionsMain structOptionsMain)
 {
     this.structOptionsMain = structOptionsMain;
     this.graphics = structOptionsMain.Graphics;
     this.Content = structOptionsMain.Content;
     this.ch = structOptionsMain.Ch;
 }
Example #6
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            graphics.IsFullScreen = true;
            structOptionsMain = new StructOptionsMain();
            ch = new ControlHandler();

            structOptionsMain.Graphics = graphics;
            structOptionsMain.Content = Content;
            structOptionsMain.SpriteBatch = spriteBatch;
            structOptionsMain.SpriteFont = Content.Load<SpriteFont>("MenuFont");
            structOptionsMain.Ch = ch;
            oMenu = new OptionsMenu(structOptionsMain);
            graphics.PreferredBackBufferWidth = 1024;
            graphics.PreferredBackBufferHeight = 576;
            oMenu.Init();
        }