mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user