示例#1
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     if (!Write.Contains("|"))
     {
         spriteBatch.DrawString(spriteFont, Write, Position, TextColor * Opacity, Direction, new Vector2(TextureManager.SpriteFont20.MeasureString(Write).X / 2, TextureManager.SpriteFont20.MeasureString(Write).Y / 2), Size, SpriteEffects.None, Depth);
     }
     else // different colors in same string
     {
         TextDifferentColor(spriteBatch, Write, Position, Size, spriteFont, true);
     }
 }