Pokemon3D.UI.LeftSideButton.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public override void Draw(SpriteBatch spriteBatch)
        {
            var bounds = GetBounds();
            spriteBatch.Draw(_texture, bounds, null, Color * Alpha, 0.0f, Vector2.Zero, SpriteEffects.None, 0);
            spriteBatch.DrawString(_font, Text.Value, new Vector2(bounds.X + 24, bounds.Y + 5), Color.Black);
        }
    }