Beispiel #1
0
        public void Draw()
        {
            if (_text != null)
            {
                DrawString.DrawText(_text, new Vector2(_position.X, _position.Y + 8), Align.left, Globals.LightBlueText, FontType.small);
            }

            if (_btn.StateOfButton == ButtonStates.none)
            {
                if (_isChecked == true)
                {
                    drawBox(new Point(0, 0));
                }
                else
                {
                    drawBox(new Point(3, 0));
                }
            }
            else if (_btn.StateOfButton == ButtonStates.hover)
            {
                if (_isChecked == true)
                {
                    drawBox(new Point(1, 0));
                }
                else
                {
                    drawBox(new Point(4, 0));
                }
            }
            else
            {
                drawBox(new Point(2, 0));
            }
        }
Beispiel #2
0
        public override void Draw()
        {
            if (Selected == true)
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["ShopItemSelected"], _boundary.Position, scale: new Vector2(1));
            }

            Game1.SpriteBatchGlobal.Draw(Game1.Textures["ShopItemBack"], _boundary.Position, scale: new Vector2(1));

            switch (Type)
            {
            case Module.test:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Part"], _boundary.Position + new Vector2(15), scale: new Vector2(2));
                break;

            case Module.tier2:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Tier2"], _boundary.Position + new Vector2(15));
                break;

            case Module.tier3:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Tier3"], _boundary.Position + new Vector2(15));
                break;
            }

            if (Amount > 1)
            {
                DrawString.DrawText(Amount.ToString() + "X", _boundary.Position + new Vector2(15 + 192 - 32), Align.center, Color.White, FontType.small);
            }
        }
Beispiel #3
0
        public override void Draw()
        {
            if (Selected == true)
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["ShopItemSelected"], _boundary.Position, scale: new Vector2(1));
            }

            Game1.SpriteBatchGlobal.Draw(Game1.Textures["ShopItemBack"], _boundary.Position, scale: new Vector2(1));

            switch (Type)
            {
            case Module.test:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Part"], _boundary.Position + new Vector2(15), scale: new Vector2(2));
                break;

            case Module.tier2:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Tier2"], _boundary.Position + new Vector2(15));
                break;

            case Module.tier3:
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["Tier3"], _boundary.Position + new Vector2(15));
                break;
            }

            Game1.SpriteBatchGlobal.DrawAtlas(Game1.electronics, _boundary.Position + new Vector2(32, 128 + 96 - 6), new Point(32), new Point(1, 0));
            DrawString.DrawText(Electronics.ToString(), _boundary.Position + new Vector2(32 + 32 + 16, 128 + 96 + 2), Align.left, Color.White, FontType.small);

            Game1.SpriteBatchGlobal.DrawAtlas(Game1.tissue, _boundary.Position + new Vector2(32, 128 + 96 + 42), new Point(32), new Point(0, 0));
            DrawString.DrawText(Tissue.ToString(), _boundary.Position + new Vector2(32 + 32 + 16, 128 + 96 + 2 + 48), Align.left, Color.White, FontType.small);
        }
Beispiel #4
0
 protected void DrawBase(string title)
 {
     DrawString.DrawText(title, Globals.MenuTitlePosition, Align.center, new Color(100, 100, 100), FontType.small);
     Effects.ColorEffect(new Vector4(1, 1, 1, transparency));
     Game1.SpriteBatchGlobal.Draw(Game1.Transition, Vector2.Zero);
     Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
     Effects.ResetEffect3D();
 }
Beispiel #5
0
 public void Draw()
 {
     Game1.EffectAlpha.Parameters["A"].SetValue(_opacity);
     Game1.EffectAlpha.CurrentTechnique.Passes[0].Apply();
     Game1.SpriteBatchGlobal.Draw(Game1.Info, new Rectangle((int)Position.X, (int)Position.Y, (int)_SizeX + 8, 26), Color.White);
     DrawString.DrawText(_message, Position + new Vector2(4), Align.left, new Color(255, 150, 100), FontType.small);
     Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
 }
Beispiel #6
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.Textures["PanelBackgroundLight"], position: Boundary.Position, sourceRectangle: new Rectangle(new Point(0, 0), Boundary.Size.ToPoint()));

            for (int i = 0; i < _lines.Count; i++)
            {
                DrawString.DrawText(_lines[i], Boundary.Position + new Vector2(32, i * 26 + 32), Align.left, Globals.LightBlueText, FontType.small);
            }
        }
Beispiel #7
0
        private void DrawButton()
        {
            if (_drawSize == null)
            {
                switch (StateOfButton)
                {
                case ButtonStates.none:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _size, new Point(0, 0));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.None, FontType.small);
                    break;

                case ButtonStates.hover:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _size, new Point(0, 1));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Hover, FontType.small);
                    break;

                case ButtonStates.pressed:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _size, new Point(0, 2));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Pressed, FontType.small);
                    break;

                case ButtonStates.locked:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _size, new Point(0, 3));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Pressed, FontType.small);
                    break;
                }
            }
            else
            {
                switch (StateOfButton)
                {
                case ButtonStates.none:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _drawSize.Value, new Point(0, 0));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.None, FontType.small);
                    break;

                case ButtonStates.hover:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _drawSize.Value, new Point(0, 1));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Hover, FontType.small);
                    break;

                case ButtonStates.pressed:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _drawSize.Value, new Point(0, 2));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Pressed, FontType.small);
                    break;

                case ButtonStates.locked:
                    Game1.SpriteBatchGlobal.DrawAtlas(_tex, Position, _drawSize.Value, new Point(0, 3));
                    DrawString.DrawText(_text, Position + _textOffset, Align, _colors.Pressed, FontType.small);
                    break;
                }
            }
        }
Beispiel #8
0
 public void Draw()
 {
     Game1.SpriteBatchGlobal.Begin(samplerState: SamplerState.PointWrap, sortMode: SpriteSortMode.Immediate);
     BtnBack.Draw();
     FullScreen.Draw();
     _horizontal.Draw();
     _vertical.Draw();
     DrawString.DrawText("Horizontal resolution", new Vector2(512 + 64, 128 + 12), Align.left, Globals.LightBlueText, FontType.small);
     DrawString.DrawText("vertical resolution", new Vector2(512 + 64, 128 + 64 + 12), Align.left, Globals.LightBlueText, FontType.small);
     DrawBase("Graphics");
     Game1.SpriteBatchGlobal.End();
 }
Beispiel #9
0
 public void Draw()
 {
     if (_state == ListItemStatesEnum.none)
     {
         Game1.SpriteBatchGlobal.Draw(Game1.controlBack, new Vector2(32, _index * 32 + _offset));
     }
     if (_state == ListItemStatesEnum.hover)
     {
         Game1.SpriteBatchGlobal.Draw(Game1.controlBackHover, new Vector2(32, _index * 32 + _offset));
     }
     DrawString.DrawText(_key + ": ", new Vector2(64, _index * 32 + _offset + 6), Align.left, new Color(50, 50, 50), FontType.small);
     DrawString.DrawText(Game1.STP.ControlKeys[_key].ToString(), new Vector2(64 + 256 + 128, _index * 32 + _offset + 6), Align.left, new Color(50, 50, 50), FontType.small);
 }
Beispiel #10
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.DrawAtlas(Game1.tissue, new Vector2(160, 80 - 8), new Point(32), new Point(0, 0));
            DrawString.DrawText(Game1.PlayerInstance.Tissue.ToString(), new Vector2(160 + 48, 80), Align.left, Color.White, FontType.small);

            Game1.SpriteBatchGlobal.DrawAtlas(Game1.electronics, new Vector2(160, 24), new Point(32), new Point(1, 0));
            DrawString.DrawText(Game1.PlayerInstance.Electronics.ToString(), new Vector2(160 + 48, 32), Align.left, Color.White, FontType.small);

            DrawString.DrawText("Inventory", new Vector2(736 / 2 + 160, 56), Align.center, Color.White, FontType.small);
            DrawString.DrawText("Shop", new Vector2(736 / 2 + 1024, 56), Align.center, Color.White, FontType.small);
            _holder.Draw(Game1.MenuParts);
            Invetory.Draw(Game1.MenuParts);
            _buy.Draw();
        }
Beispiel #11
0
        public void Draw()
        {
            Inventory.Draw(Game1.MenuParts);
            GridCraft.Draw(_items);
            MouseItem.Draw(GridCraft.Position);

            DrawString.DrawText("Max Ammo: ", new Vector2(XposText, YposText), Align.left, Color.White, FontType.small);
            DrawString.DrawText(Game1.PlayerInstance.Weapons[0].MaxAmmo.ToString(), new Vector2(XposTextBase, YposText), Align.left, Color.White, FontType.small);

            DrawString.DrawText("Timing: ", new Vector2(XposText, YposText + 32), Align.left, Color.White, FontType.small);
            DrawString.DrawText(Game1.PlayerInstance.Weapons[0].GunTimer.DelayMilisec.ToString(), new Vector2(XposTextBase, YposText + 32), Align.left, Color.White, FontType.small);

            DrawString.DrawText("Velocity: ", new Vector2(XposText, YposText + 64), Align.left, Color.White, FontType.small);
            DrawString.DrawText(Game1.PlayerInstance.Weapons[0].VelocityOfProjectile.ToString(), new Vector2(XposTextBase, YposText + 64), Align.left, Color.White, FontType.small);

            if (Game1.PlayerInstance.Weapons[0].DispersionPlus <= 0)
            {
                DrawString.DrawText(((int)(Game1.PlayerInstance.Weapons[0].VelocityOfProjectilePlus * 100)).ToString(), new Vector2(XposTextBonus, YposText + 64), Align.left, Color.ForestGreen, FontType.small);
            }
            else
            {
                DrawString.DrawText(((int)(Game1.PlayerInstance.Weapons[0].VelocityOfProjectilePlus * 100)).ToString(), new Vector2(XposTextBonus, YposText + 64), Align.left, Color.DarkRed, FontType.small);
            }

            DrawString.DrawText("Dispersion: ", new Vector2(XposText, YposText + 96), Align.left, Color.White, FontType.small);
            DrawString.DrawText(((int)(Game1.PlayerInstance.Weapons[0].Dispersion * 100)).ToString(), new Vector2(XposTextBase, YposText + 96), Align.left, Color.White, FontType.small);

            if (Game1.PlayerInstance.Weapons[0].DispersionPlus <= 0)
            {
                DrawString.DrawText(((int)(Game1.PlayerInstance.Weapons[0].DispersionPlus * 100)).ToString(), new Vector2(XposTextBonus, YposText + 96), Align.left, Color.ForestGreen, FontType.small);
            }
            else
            {
                DrawString.DrawText(((int)(Game1.PlayerInstance.Weapons[0].DispersionPlus * 100)).ToString(), new Vector2(XposTextBonus, YposText + 96), Align.left, Color.DarkRed, FontType.small);
            }

            DrawString.DrawText("Damage: ", new Vector2(XposText, YposText + 128), Align.left, Color.White, FontType.small);
            DrawString.DrawText(Game1.PlayerInstance.Weapons[0].Damage.ToString(), new Vector2(XposTextBase, YposText + 128), Align.left, Color.White, FontType.small);

            if (Game1.PlayerInstance.Weapons[0].DamagePlus >= 0)
            {
                DrawString.DrawText(((Game1.PlayerInstance.Weapons[0].DamagePlus)).ToString(), new Vector2(XposTextBonus, YposText + 128), Align.left, Color.ForestGreen, FontType.small);
            }
            else
            {
                DrawString.DrawText(((Game1.PlayerInstance.Weapons[0].DamagePlus)).ToString(), new Vector2(XposTextBonus, YposText + 128), Align.left, Color.DarkRed, FontType.small);
            }
        }
Beispiel #12
0
 public void Draw()
 {
     Game1.SpriteBatchGlobal.Begin(samplerState: SamplerState.PointWrap, sortMode: SpriteSortMode.Immediate);
     BtnNewGame.Draw();
     //BtnLoadGame.Draw();
     //BtnEditor.Draw();
     BtnOptions.Draw();
     DrawString.DrawText("world map name", new Vector2(512 + 32, 256 - 16), Align.left, Globals.LightBlueText, FontType.small);
     if (MapError)
     {
         DrawString.DrawText("Error loading map", new Vector2(512 + 32, 256 + 64), Align.left, Globals.LightRedish, FontType.small);
     }
     MapName.Draw();
     BtnExit.Draw();
     DrawBase("");
     Game1.SpriteBatchGlobal.End();
 }
Beispiel #13
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.Textures["TextBoxBack"], destinationRectangle: new Rectangle((int)_boundary.Position.X + 1, (int)_boundary.Position.Y + 1, (int)_boundary.Size.X - 2, (int)_boundary.Size.Y - 2));
            btnDrop.Draw();

            DrawRectangleBoundary.DrawBlue(_boundary.ToRectangle());

            DrawString.DrawText(names[SelectedIndex], _boundary.Position + new Vector2(8, 7), Align.left, Globals.LightBlueText, FontType.small);

            if (Droped)
            {
                foreach (Button btn in Selections)
                {
                    btn.Draw();
                }
            }
        }
Beispiel #14
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.Textures["Paper"], new Vector2((Globals.WinRenderSize.X - 512) / 2 + 256, (Globals.WinRenderSize.Y - 512) / 2));
            _topBox.Draw();
            _bottomBox.Draw();
            _leftBox.Draw();
            _rightBox.Draw();
            _buttonResize.Draw();
            _buttonClear.Draw();
            _horizontalBox.Draw();
            _verticalBox.Draw();
            _buttonNew.Draw();
            _picker.Draw();

            DrawString.DrawText("Horizontal size:", new Vector2(32, 128 + 64), Align.left, Globals.LightBlueText, FontType.small);
            DrawString.DrawText("Vertical size:", new Vector2(32, 256), Align.left, Globals.LightBlueText, FontType.small);
            DrawString.DrawText("Global light color:", new Vector2(32, 256 + 128), Align.left, Globals.LightBlueText, FontType.small);
        }
Beispiel #15
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.Textures["TextBoxBack"], destinationRectangle: new Rectangle((int)_boundary.Position.X + 1, (int)_boundary.Position.Y + 1, (int)_boundary.Size.X - 2, (int)_boundary.Size.Y - 2));

            DrawRectangleBoundary.DrawBlue(_boundary.ToRectangle());
            if (Valid)
            {
                DrawString.DrawText(Text.Substring(_offset, Math.Min(Text.Length - _offset, (int)((_boundary.Size.X - 16) / 16))), _boundary.Position + new Vector2(8, 7), Align.left, Globals.LightBlueText, FontType.small);
            }
            else
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["NotParsed"], destinationRectangle: new Rectangle((int)_boundary.Position.X + 1, (int)_boundary.Position.Y + 1, (int)_boundary.Size.X - 2, 30));
                DrawString.DrawText(Text.Substring(_offset, Math.Min(Text.Length - _offset, (int)((_boundary.Size.X - 16) / 16))), _boundary.Position + new Vector2(8, 7), Align.left, Globals.LightRedish, FontType.small);
            }
            if (_cursorVisible == true && IsActive)
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["EditSymbol"], _boundary.Position + new Vector2(8 + 16 * _cursor - 3, 7), Color.Black);
            }
        }
Beispiel #16
0
        public override void Draw()
        {
            if (Selected == true)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileBackground"], _boundary.Position, new Point(512 - 64, 28), new Point(0, 1));
                DrawString.DrawText(_name, _boundary.Position + new Vector2(64, 5), Align.left, new Color(255, 255, 255), FontType.small);
            }
            else
            {
                //if (CompareF.RectangleVsVector2(Boundary, MouseInput.MouseRealPosMenu()) == true && CompareF.RectangleVsVector2(_listBoundary, MouseInput.MouseRealPosMenu()) == true)
                //{
                //    Game1.SpriteBatch.DrawAtlas(Game1.Textures["SaveBackground"], _boundary.Position + new Vector2(0, 16), new Point(736, 256), new Point(0, 1));
                //}
                //else
                //{
                //    Game1.SpriteBatch.DrawAtlas(Game1.Textures["SaveBackground"], _boundary.Position + new Vector2(0, 16), new Point(736, 256), new Point(0, 0));

                //}
                if (Index % 2 == 0)
                {
                    Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileBackground"], _boundary.Position, new Point(512 - 64, 28), new Point(0, 0));
                }
                DrawString.DrawText(_name, _boundary.Position + new Vector2(64, 5), Align.left, Globals.LightBlueText, FontType.small);
            }

            if (_treat == FileFolder.folder)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileFolder"], _boundary.Position + new Vector2(16, 5), new Point(28, 18), new Point(0, 0));
            }
            if (_treat == FileFolder.json)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileFolder"], _boundary.Position + new Vector2(16, 5), new Point(28, 18), new Point(1, 0));
            }
            if (_treat == FileFolder.file)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileFolder"], _boundary.Position + new Vector2(16, 5), new Point(28, 18), new Point(2, 0));
            }
            if (_treat == FileFolder.drive)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["FileFolder"], _boundary.Position + new Vector2(16, 5), new Point(28, 18), new Point(3, 0));
            }
        }
Beispiel #17
0
        public void Draw()
        {
            if (_text != null)
            {
                DrawString.DrawText(_text, new Vector2(_position.X, _position.Y) - new Vector2(256 + 128, 0), Align.left, Globals.LightBlueText, FontType.small);
            }

            if (_bar == null)
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["GrabLine"], position: _position + new Vector2(0, 16));
            }
            else
            {
                Game1.SpriteBatchGlobal.Draw(_bar, position: _position + new Vector2(0, 13));
            }

            switch (_grabed)
            {
            case GraberState.none:
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["Grab"], _boudary.Position, new Point(20, 32), new Point(0, 0));
                break;

            case GraberState.hover:
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["Grab"], _boudary.Position, new Point(20, 32), new Point(1, 0));
                break;

            case GraberState.grabed:
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["Grab"], _boudary.Position, new Point(20, 32), new Point(2, 0));
                break;
            }

            if (_show == GrabShow.percentage)
            {
                DrawString.DrawText(GetValue().ToString(), new Vector2(_position.X + 320, _position.Y), Align.center, Globals.LightBlueText, FontType.small);
            }
            else if (_show == GrabShow.byteValue)
            {
                DrawString.DrawText(Math.Round(((float)GetValue() / byte.MaxValue) * 100).ToString() + " %", new Vector2(_position.X + 320, _position.Y), Align.center, Globals.LightBlueText, FontType.small);
            }
        }
Beispiel #18
0
        public override void Draw()
        {
            if (Selected == true)
            {
                Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["SaveBackground"], _boundary.Position + new Vector2(0, 16), new Point(736, 256), new Point(0, 2));
            }
            else
            {
                if (CompareF.RectangleVsVector2(Boundary, MouseInput.MouseRealPosMenu()) == true && CompareF.RectangleVsVector2(_listBoundary, MouseInput.MouseRealPosMenu()) == true)
                {
                    Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["SaveBackground"], _boundary.Position + new Vector2(0, 16), new Point(736, 256), new Point(0, 1));
                }
                else
                {
                    Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["SaveBackground"], _boundary.Position + new Vector2(0, 16), new Point(736, 256), new Point(0, 0));
                }
            }

            Game1.SpriteBatchGlobal.Draw(_preview, _boundary.Position + new Vector2(16) + new Vector2(0, 16), scale: new Vector2((256f - 32f) / Globals.WinRenderSize.Y));

            DrawString.DrawText(_saveName, _boundary.Position + new Vector2(576, 16) + new Vector2(0, 16), Align.center, new Color(255, 255, 255), FontType.small);
        }
Beispiel #19
0
        public void Draw()
        {
            if (_type == RadioType.classic)
            {
                if (_text != null)
                {
                    DrawString.DrawText(_text, new Vector2(_position.X, _position.Y + 8), Align.left, Globals.LightBlueText, FontType.small);
                }

                if (_btn.StateOfButton == ButtonStates.none)
                {
                    if (_isChecked == true)
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioClassic"], _boudary.Position, new Point(24, 24), new Point(0, 0));
                    }
                    else
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioClassic"], _boudary.Position, new Point(24, 24), new Point(3, 0));
                    }
                }
                else if (_btn.StateOfButton == ButtonStates.hover)
                {
                    if (_isChecked == true)
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioClassic"], _boudary.Position, new Point(24, 24), new Point(1, 0));
                    }
                    else
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioClassic"], _boudary.Position, new Point(24, 24), new Point(4, 0));
                    }
                }
                else
                {
                    Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioClassic"], _boudary.Position, new Point(24, 24), new Point(2, 0));
                }
            }
            else if (_type == RadioType.big)
            {
                if (_btn.StateOfButton == ButtonStates.none)
                {
                    if (_isChecked == true)
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioBig"], _boudary.Position, new Point(256, 64), new Point(0, 0));
                    }
                    else
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioBig"], _boudary.Position, new Point(256, 64), new Point(0, 3));
                    }
                }
                else if (_btn.StateOfButton == ButtonStates.hover)
                {
                    if (_isChecked == true)
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioBig"], _boudary.Position, new Point(256, 64), new Point(0, 1));
                    }
                    else
                    {
                        Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioBig"], _boudary.Position, new Point(256, 64), new Point(0, 4));
                    }
                }
                else
                {
                    Game1.SpriteBatchGlobal.DrawAtlas(Game1.Textures["RadioBig"], _boudary.Position, new Point(256, 64), new Point(0, 2));
                }

                if (_text != null)
                {
                    if (_isChecked == true)
                    {
                        DrawString.DrawText(_text, new Vector2(_position.X + 128, _position.Y + 22), Align.center, Globals.LightGrayText, FontType.small);
                    }
                    if (_isChecked == false || _btn.StateOfButton == ButtonStates.pressed)
                    {
                        DrawString.DrawText(_text, new Vector2(_position.X + 128, _position.Y + 22), Align.center, Globals.LightBlueText, FontType.small);
                    }
                }
            }
        }
Beispiel #20
0
 public UIInformer(string message)
 {
     _message = message;
     _SizeX   = DrawString.MeasureText(message, 16);
     _opacity = 1f;
 }
Beispiel #21
0
 public void Draw()
 {
     DrawString.DrawText(Text, Position, Align.left, Globals.LightBlueText, FontType.small);
     ControlThing.Draw();
 }