Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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
            {
            }
        }