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); }
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); }
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); }
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); }
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); }
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); }