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();
        }
예제 #2
0
        public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2))
        {
            if (Icon1 != null)
            {
                Vector2 offset = this.loc + draw_vector();

                Icon1.draw(sprite_batch, draw_offset - offset);
                if (Icon2 != null)
                {
                    Icon2.draw(sprite_batch, draw_offset - offset);
                    Arrow3.draw(sprite_batch, draw_offset - offset);
                }
                if (Icon3 != null)
                {
                    Icon3.draw(sprite_batch, draw_offset - offset);
                    Arrow2.draw(sprite_batch, draw_offset - offset);

                    if (Icon2 != null)
                    {
                        Arrow1.draw(sprite_batch, draw_offset - offset);
                    }
                }
            }
        }