Removed FormatText + SubText change
- Using built in string.Format instead of FormatText. - SubText changed to extension method for a string that uses Substring and a bound limit.
This commit is contained in:
parent
957202efda
commit
ce89a3bc8d
18 changed files with 52 additions and 65 deletions
|
|
@ -49,9 +49,8 @@ public partial class text_bmfont_unordered
|
|||
ClearBackground(RAYWHITE);
|
||||
|
||||
DrawText("Font name: PixAntiqua", 40, 50, 20, GRAY);
|
||||
//TODO: Uncomment this code when FormatText is fixed.
|
||||
// DrawText(FormatText("Font base size: %i", font.baseSize), 40, 80, 20, GRAY);
|
||||
// DrawText(FormatText("Font chars number: %i", font.charsCount), 40, 110, 20, GRAY);
|
||||
DrawText(string.Format("Font base size: {0}", font.baseSize), 40, 80, 20, GRAY);
|
||||
DrawText(string.Format("Font chars number: {0}", font.charsCount), 40, 110, 20, GRAY);
|
||||
|
||||
DrawTextEx(font, msg, new Vector2(40, 180), font.baseSize, 0, MAROON);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue