Exemple #1
0
 public static void DrawTextBottomRightAligned(String fontName, String text, SpriteBatch spriteBatch, Point location, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, location, TextVerticalAlignment.Bottom, TextHorizantialAlignment.Right, color);
 }
Exemple #2
0
 public static void DrawTextMiddleCenterAligned(String fontName, String text, SpriteBatch spriteBatch, Point location, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, location, TextVerticalAlignment.Middle, TextHorizantialAlignment.Center, color);
 }
Exemple #3
0
 public static void DrawTextTopLeftAligned(String fontName, String text, SpriteBatch spriteBatch, Point location, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, location, TextVerticalAlignment.Top, TextHorizantialAlignment.Left, color);
 }
Exemple #4
0
 public static void DrawTextBottomCenterAligned(String fontName, String text, SpriteBatch spriteBatch, Vector2 location, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, location, TextVerticalAlignment.Bottom, TextHorizantialAlignment.Center, color);
 }
Exemple #5
0
 public static void DrawTextMiddleRightAligned(String fontName, String text, SpriteBatch spriteBatch, Vector2 location, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, location, TextVerticalAlignment.Middle, TextHorizantialAlignment.Right, color);
 }
Exemple #6
0
 public static void DrawTextAligned(String fontName, String text, SpriteBatch spriteBatch, Point location, TextVerticalAlignment verticalAlignment, TextHorizantialAlignment horizantialAlignment, Color color)
 {
     Fonts.DrawTextAligned(fontName, text, spriteBatch, new Vector2((float)location.X, (float)location.Y), verticalAlignment, horizantialAlignment, color);
 }