示例#1
0
        public override void update()
        {
            if (Icon1 != null)
            {
                Icon1.update();
                if (Icon2 != null)
                {
                    Icon2.update();
                }
                if (Icon3 != null)
                {
                    Icon3.update();
                }
            }

            Arrow1.update();
            Arrow2.update();
            Arrow3.update();
        }
示例#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);
                    }
                }
            }
        }