public override void Draw(CanvasRenderingContext2D g)
 {
     //base.Draw(g);
     if (alpha < 1)
     {
         if (alpha <= 0)
         {
             return;
         }
         g.GlobalAlpha = alpha;
     }
     //Text.Position.CopyFrom(Position);
     Text.ForceUpdate();
     Text.Position.X = (int)Position.X - (Text.spriteBuffer.Width / 2);
     Text.Position.Y = (int)Position.Y - (Text.spriteBuffer.Height / 2);
     Text.Draw(g);
     g.GlobalAlpha = 1f;
 }
 public void CenterText(TextSprite T, Vector2 Location)
 {
     T.ForceUpdate();
     T.Position.X = Location.X - (T.spriteBuffer.Width / 2);
     T.Position.Y = Location.Y - (T.spriteBuffer.Height / 2);
 }