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:
@@ -54,8 +54,7 @@ public partial class core_random_values
|
||||
|
||||
DrawText("Every 2 seconds a new random value is generated:", 130, 100, 20, MAROON);
|
||||
|
||||
//DrawText(FormatText("%i", randValue), 360, 180, 80, LIGHTGRAY);
|
||||
DrawText($"{randValue}", 360, 180, 80, LIGHTGRAY);
|
||||
DrawText(string.Format("{0}", randValue), 360, 180, 80, LIGHTGRAY);
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user