public void draw(SpriteBatch spriteBatch, SpriteFont font) { if (isSelected) { selector.draw(spriteBatch); } if (isHighlighted) { highlighter.draw(spriteBatch); } spriteBatch.DrawString(font, text, position, color, rotation, origin, scale, SpriteEffects.None, 0f); }
public virtual void draw(SpriteBatch spriteBatch) { if (isHighlighted) { highlighter.draw(spriteBatch); } if (isSelected) { selector.draw(spriteBatch); } spriteBatch.Draw(texture, position, null, color, rotation, origin, scale, SpriteEffects.None, 0.5f); }
public virtual void draw(SpriteBatch spriteBatch, SpriteFont font) { if (isHighlighted) { highlighter.draw(spriteBatch); } try { spriteBatch.DrawString(font, text, position, color, rotation, origin, scale, SpriteEffects.None, 0f); } catch { } }