Fixed timer separator instead of dot to semicolon, and fixed the timer position in race canvas, and updated the start screen so it does not grow vertically

#story[572]
This commit is contained in:
Zhi You Tan
2017-05-01 18:35:17 +12:00
parent d927531354
commit ee6a543f8d
5 changed files with 22 additions and 28 deletions
@@ -293,14 +293,14 @@ public class RaceViewController extends Thread{
private String currentTimer() {
String timerString = "0:00 minutes";
if (StreamParser.getTimeSinceStart() > 0 && StreamParser.getTimeSinceStart() % 10 == 0) {
if (StreamParser.getTimeSinceStart() > 0) {
Long timerMinute = StreamParser.getTimeSinceStart() / 60;
Long timerSecond = StreamParser.getTimeSinceStart() % 60;
timerString = "-" + timerMinute + "." + timerSecond + " minutes";
} else if (StreamParser.getTimeSinceStart() % 10 == 0) {
timerString = "-" + timerMinute + ":" + timerSecond + " minutes";
} else {
Long timerMinute = -1 * StreamParser.getTimeSinceStart() / 60;
Long timerSecond = -1 * StreamParser.getTimeSinceStart() % 60;
timerString = timerMinute + "." + timerSecond + " minutes";
timerString = timerMinute + ":" + timerSecond + " minutes";
}
return timerString;
}