Example #1
0
        public override void Draw(SpriteBatch spriteBatch, Vector2 offset)
        {
            int fadeValue = 255 - (int)(FadeAlpha * 255);

            spriteBatch.DrawOutlinedRectangle(Position + offset, Position + Size + offset, new Color(fadeValue, fadeValue, fadeValue, 255), Color.Black, Layer);
            TextElement.Draw(spriteBatch, Position + offset);
            base.Draw(spriteBatch, offset);
        }
 public override void Draw(SpriteBatch spriteBatch, Vector2 offset)
 {
     spriteBatch.DrawOutlinedRectangle(Position + offset, Position + Size + offset, Color.White, Color.Black, Layer);
     TextElement.Draw(spriteBatch, Position + offset);
     base.Draw(spriteBatch, offset);
 }