protected virtual void DrawHeader(SpriteBatch spriteBatch) { if (ItemHeader != null) { ItemHeader.draw(spriteBatch); } }
protected override void draw_window(SpriteBatch sprite_batch) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); draw_info(sprite_batch); sprite_batch.End(); // Unit Window Unit_Window.draw(sprite_batch); //Item Windows Item_Window.draw(sprite_batch); // Headers Item_Header.draw(sprite_batch); }
public override void draw(SpriteBatch sprite_batch) { if (visible) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); draw_window(sprite_batch); sprite_batch.End(); // Info draw_info(sprite_batch); sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); // Text draw_text(sprite_batch); sprite_batch.End(); if (ItemHeader != null) { ItemHeader.draw(sprite_batch, -this.loc); } } }