This commit is contained in:
@@ -18,7 +18,7 @@ public class TimerRenderer {
|
||||
int seconds = (int) remainingTime;
|
||||
int minutes = seconds / 60;
|
||||
seconds %= 60;
|
||||
String text = minutes + ":" + seconds;
|
||||
String text = String.format("%02d:%02d", minutes, seconds);
|
||||
var textSize = ImGui.calcTextSize(text);
|
||||
ImGui.setCursorPosX(ImGui.getIO().getDisplaySizeX() / 2.0f - textSize.x / 2.0f);
|
||||
ImGui.text(text);
|
||||
|
||||
Reference in New Issue
Block a user