internal static float DrawText(Vector2 screenCoord, StringBuilder text, VRageMath.Color color, float scale) { return(MyRender.DebugFont.DrawString( screenCoord, color, text, scale)); }
internal static float DrawText(Vector2 screenCoord, StringBuilder text, VRageMath.Color color, float scale, MyGuiDrawAlignEnum align = MyGuiDrawAlignEnum.HORISONTAL_LEFT_AND_VERTICAL_TOP) { var font = MyRender11.DebugFont; return(font.DrawString( MyUtils.GetCoordAligned(screenCoord, font.MeasureString(text, scale), align), color, text, scale)); }