Пример #1
0
 public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2))
 {
     Name.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(16, 0) - offset));
     Uses.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(112, 0) - offset));
     Slash.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(160, 0) - offset));
     Use_Max.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(200, 0) - offset));
     Convoy.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(232, 0) - offset));
     Icon.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) - offset));
 }
Пример #2
0
        public override void set_text_color(bool useable)
        {
            change_text_color(useable ? "White" : "Grey");

            string color = useable ? "Blue" : "Grey";

            Uses.SetColor(Global.Content, color);
            Slash.SetColor(Global.Content, color);
            Use_Max.SetColor(Global.Content, color);
        }
Пример #3
0
 public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset)
 {
     if (Uses != null)
     {
         Uses.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(96, 0) - offset));
         Slash.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(97, 0) - offset));
         Use_Max.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(120, 0) - offset));
     }
     base.draw(sprite_batch, draw_offset);
 }
Пример #4
0
        sealed public override void update()
        {
            base.update();

            Uses.update();
            Slash.update();
            Use_Max.update();

            UpdateSprites();
        }
Пример #5
0
        public override void set_text_color(bool useable)
        {
            base.set_text_color(useable);

            string fontColor = useable ? "Blue" : "Grey";

            Uses.SetColor(Global.Content, fontColor);
            Slash.SetColor(Global.Content, fontColor);
            Use_Max.SetColor(Global.Content, fontColor);
        }
Пример #6
0
 public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2))
 {
     Name.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(16, 0) - offset));
     if (Uses != null)
     {
         Uses.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(96, 0) - offset));
         Slash.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(97, 0) - offset));
         Use_Max.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) + new Vector2(96, 0) - offset));
         Icon.draw(sprite_batch, draw_offset - ((this.loc + draw_vector()) - offset));
     }
 }
Пример #7
0
        protected virtual void set_text_color(bool useable, bool buyable)
        {
            change_text_color(useable ? "White" : "Grey");

            Uses.SetColor(Global.Content, useable ? "Blue" : "Grey");

            Slash.SetColor(Global.Content, buyable ? "Blue" : "Grey");
            Use_Max.SetColor(Global.Content, buyable ? "Blue" : "Grey");

            Convoy.SetColor(Global.Content, "Blue");
        }