Ejemplo n.º 1
0
        public override void draw(SpriteBatch sprite_batch)
        {
            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            Window.draw(sprite_batch, -Loc);
            draw_data(sprite_batch);
            sprite_batch.End();

            Icon1.draw(sprite_batch, -Loc);
            Icon2.draw(sprite_batch, -Loc);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            WTA1.draw(sprite_batch, -Loc);
            WTA2.draw(sprite_batch, -Loc);
            Mult1.draw(sprite_batch, -Loc);
            Mult2.draw(sprite_batch, -Loc);
            sprite_batch.End();
        }
        public override void draw(SpriteBatch sprite_batch)
        {
            base.draw(sprite_batch);

            if (is_onscreen_for_drawing)
            {
                Vector2 loc = this.loc + draw_vector();
                Item.draw(sprite_batch, -loc);
                TargetItem.draw(sprite_batch, -loc);

                sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
                WTA1.draw(sprite_batch, -loc);
                WTA2.draw(sprite_batch, -loc);

                VsLabel.draw(sprite_batch, -loc);
                sprite_batch.End();
            }
        }