예제 #1
0
 public void Draw()
 {
     Game1.SpriteBatchGlobal.Draw(Game1.Textures["electroIcon"], _position - new Vector2(96 + 16, 40) + new Vector2(4, 6));
     DrawNumber.Draw_digits(Game1.numbersMedium, Game1.PlayerInstance.Electronics, _position - new Vector2(0, 32), Align.left, new Point(15, 18));
     Game1.SpriteBatchGlobal.Draw(Game1.Textures["tissueIcon"], _position - new Vector2(96 + 16, 8) + new Vector2(4, 6));
     DrawNumber.Draw_digits(Game1.numbersMedium, Game1.PlayerInstance.Tissue, _position - new Vector2(0, 0), Align.left, new Point(15, 18));
 }
예제 #2
0
 public void Draw()
 {
     if (Game1.PlayerInstance.WeaponsAvailable == true)
     {
         Game1.SpriteBatchGlobal.Draw(Game1.Textures["grenadeIcon"], _position - new Vector2(0, 8) + new Vector2(8, 10), scale: new Vector2(1f));
         DrawNumber.Draw_digits(Game1.numbersMedium, Game1.PlayerInstance.GrenadesCount, _position + new Vector2(20, 40), Align.center, new Point(15, 18));
     }
 }
예제 #3
0
        public void Draw(Texture2D tex)
        {
            if (_choosed == true)
            {
                Game1.SpriteBatchGlobal.Draw(Game1.Textures["SelectedGun"], _positon, color: Color.White);
            }

            Game1.SpriteBatchGlobal.Draw(tex, _positon + new Vector2((float)(64 - (_width)), 10), scale: new Vector2(1.0f), color: Color.White);
            if (_index != 0)
            {
                DrawNumber.Draw_digits(Game1.numbersMedium, Game1.PlayerInstance.Weapons[_index].Ammo, _positon + new Vector2(64, 48), Align.center, new Point(15, 18));
            }
        }
예제 #4
0
        public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.shield, _position - new Vector2(96 + 16, 8) + new Vector2(0, 5), scale: new Vector2(1f));
            Game1.SpriteBatchGlobal.Draw(Game1.shieldBarBackground, _position - new Vector2(1) + new Vector2(0, 5), null, new Rectangle(0, 0, 130, 10), null, 0f, new Vector2(1), Color.White, SpriteEffects.None);
            Game1.SpriteBatchGlobal.Draw(Game1.barBackground, _position + new Vector2(0, 5), null, new Rectangle(0, 0, (int)(Game1.PlayerInstance.PotentialShield) * 128 / 100, 8), null, 0f, new Vector2(1), Color.White, SpriteEffects.None);
            Game1.SpriteBatchGlobal.Draw(Game1.shieldBar, _position + new Vector2(0, 5), null, new Rectangle(0, 0, (int)(Game1.PlayerInstance.Shield) * 128 / 100, 8), null, 0f, new Vector2(1), Color.White, SpriteEffects.None);

            if (Game1.PlayerInstance.Shield >= 0)
            {
                DrawNumber.Draw_digits(Game1.numbersMedium, (int)Math.Round(Game1.PlayerInstance.Shield), _position - new Vector2(64 - 16, 0), Align.center, new Point(15, 18));
            }
            else
            {
                DrawNumber.Draw_digits(Game1.numbersMedium, 0, _position - new Vector2(64 - 16, 0), Align.center, new Point(15, 18));
            }
        }
예제 #5
0
 public void DrawUI()
 {
     DrawNumber.Draw_digits(Game1.numbersMedium, _ammo, new Vector2((int)Boundary.Origin.X, (int)(Boundary.Origin.Y)) - new Vector2(0, 72), Align.center, new Point(15, 18));
 }