protected override void draw_image(SpriteBatch sprite_batch) { base.draw_image(sprite_batch); if (WLvl_Icon != null) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); WLvl_Icon.draw(sprite_batch, -(loc + draw_vector())); sprite_batch.End(); } }
public override void draw(SpriteBatch sprite_batch, Vector2 draw_offset = default(Vector2)) { if (visible) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); if (Window != null) { Window.draw(sprite_batch, -(loc + draw_vector())); } else { draw_panel(sprite_batch, WIDTH); } Icon.draw(sprite_batch, -(loc + draw_vector())); Rank.draw(sprite_batch, -(loc + draw_vector())); Text.draw(sprite_batch, -(loc + draw_vector())); sprite_batch.End(); } }
public virtual void draw(SpriteBatch sprite_batch, Vector2 draw_offset) { WLvl_Icon.draw(sprite_batch, draw_offset - (this.loc + draw_vector())); WLvl_Bar.draw_fill(sprite_batch, draw_offset - (this.loc + draw_vector())); WLvl_Letter.draw(sprite_batch, draw_offset - (this.loc + draw_vector())); }