Пример #1
0
        protected override void draw_window(SpriteBatch sprite_batch)
        {
            base.draw_window(sprite_batch);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            Header.draw(sprite_batch, -(loc + draw_vector()));

            // Draw the top entry of the list, so it overlaps the header
            DrawFirstVisibleRow(sprite_batch);
            sprite_batch.End();
        }
        protected override void draw_window(SpriteBatch sprite_batch)
        {
            base.draw_window(sprite_batch);

            sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            Header.draw(sprite_batch, -(loc + draw_vector()));

            // Draw the top entry of the list, so it overlaps the header
            DrawFirstVisibleRow(sprite_batch);
            if (Scroll * 16 == (int)(ScrollOffset.Y))
            {
                Units[Scroll].Draw(sprite_batch, -(loc + text_draw_vector() - Text_Offset));
            }
            sprite_batch.End();
        }