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
|
|
@ -47,7 +47,7 @@ public partial class core_mouse_wheel
|
|||
DrawRectangle(screenWidth/2 - 40, boxPositionY, 80, 80, MAROON);
|
||||
|
||||
DrawText("Use mouse wheel to move the cube up and down!", 10, 10, 20, GRAY);
|
||||
//DrawText(FormatText("Box position Y: %03i", boxPositionY), 10, 40, 20, LIGHTGRAY);
|
||||
DrawText(string.Format("Box position Y: {0:000}", boxPositionY), 10, 40, 20, LIGHTGRAY);
|
||||
DrawText($"Box position Y: {boxPositionY}", 10, 40, 20, LIGHTGRAY);
|
||||
|
||||
EndDrawing();
|
||||
|
|
|
|||
Loading…
Reference in a new issue