コード例 #1
0
        public void draw(SpriteBatch sprite_batch)
        {
            Vector2 loc = this.loc + draw_vector();

            // Window
            draw_window(sprite_batch, loc);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            for (int i = Type_Icons.Count - 1; i >= 0; i--)
            {
                if (i != this.type || TypeIconInactive)
                {
                    Type_Icons[i].draw(sprite_batch, -loc);
                }
            }
            if (!TypeIconInactive)
            {
                Type_Icons[this.type].draw(sprite_batch, -loc);
            }

            Left_Arrow.draw(sprite_batch, -(this.loc + arrow_draw_vector()));
            Right_Arrow.draw(sprite_batch, -(this.loc + arrow_draw_vector()));
            if (!Manual_Cursor_Draw)
            {
                draw_cursor(sprite_batch);
            }
            sprite_batch.End();
        }
コード例 #2
0
 public void draw(SpriteBatch sprite_batch)
 {
     Window.draw(sprite_batch, -loc);
     Labels.draw(sprite_batch, -loc);
     Chapter.draw(sprite_batch, -loc);
     Lord_Lvl.draw(sprite_batch, -loc);
     Mode.draw(sprite_batch, -loc);
     Unit_Count.draw(sprite_batch, -loc);
     Gold.draw(sprite_batch, -loc);
     Counter.draw(sprite_batch, -loc);
     Lord_Sprite.draw(sprite_batch, -loc);
     Left_Arrow.draw(sprite_batch, -loc);
     Right_Arrow.draw(sprite_batch, -loc);
 }