コード例 #1
0
 protected override void draw_window(SpriteBatch sprite_batch)
 {
     base.draw_window(sprite_batch);
     sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
     Window_Divider.draw(sprite_batch, -(this.loc + draw_vector()));
     foreach (TextSprite text in Headers)
     {
         text.draw(sprite_batch, -(this.loc + draw_vector()));
     }
     sprite_batch.End();
 }
コード例 #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
            CancelButton.Draw(spriteBatch);

            Window.draw(spriteBatch, -Loc);
            Divider.draw(spriteBatch, -Loc);
            Header.draw(spriteBatch, -Loc);
            foreach (var arrow in LeftArrows.Keys)
            {
                arrow.draw(spriteBatch, -Loc);
            }
            foreach (var arrow in RightArrows.Keys)
            {
                arrow.draw(spriteBatch, -Loc);
            }
            Items.Draw(spriteBatch, -Loc);
            UICursor.draw(spriteBatch, -Loc);
            spriteBatch.End();
        }