public override void Draw(SpriteBatch spriteBatch) { // Draw the border rectangle, borderRectangle.Draw(spriteBatch); // then the inner rectangle, rectangle.Draw(spriteBatch); // and finally the text text.Draw(spriteBatch); }
public override void Draw(SpriteBatch spriteBatch) { label.Draw(spriteBatch); outlineRectangle.Draw(spriteBatch); innerRectangle.Draw(spriteBatch); if (Checked) { checkRectangle.Draw(spriteBatch); } }
public override void Draw(SpriteBatch spriteBatch) { if (isVisible) { sliderLineRectangle.Draw(spriteBatch); sliderButtonRectangle.Draw(spriteBatch); if (text != null) { text.Draw(spriteBatch); } if (valueText != null) { valueText.Draw(spriteBatch); } } }