public override void Draw(SpriteBatch spriteBatch) { if (Visible) { render.Draw(spriteBatch); if (label != null) { label.Draw(spriteBatch); } if (Scrolls) { scroller.Draw(spriteBatch); // -- Draw in Scissor Rectangle -- // spriteBatch.End(); _contentsRenderer.Draw(ContentManager); // -- Resume Master Sprite Batch spriteBatch.Begin(); } else { // Draw my contents: ContentManager.Draw(); } } }
public override void Draw(SpriteBatch spriteBatch) { if (Visible) { _render.Draw(spriteBatch); if (Label != null) { Label.Draw(spriteBatch); } } }