Changes made to pre-race countdown. #story[1188]

main
David Wu 8 years ago
parent f926355d1c
commit 490aab3f8d

@ -316,28 +316,32 @@ public class InGameLobbyController extends Controller {
private void countdownText(long interval){ private void countdownText(long interval){
if (interval <=4000){
return;
}
if (interval <=5000){ if (interval <=5000){
countdownTenText.setText("5"); //countdownTenText.setText("5");
return; return;
} }
if (interval <=6000){ if (interval <=6000){
countdownTenText.setText("6"); countdownTenText.setText("1");
return; return;
} }
if (interval <=7000){ if (interval <=7000){
countdownTenText.setText("7"); countdownTenText.setText("2");
return; return;
} }
if (interval <=8000){ if (interval <=8000){
countdownTenText.setText("8"); countdownTenText.setText("3");
return; return;
} }
if (interval <=9000){ if (interval <=9000){
countdownTenText.setText("9"); countdownTenText.setText("4");
return; return;
} }
if (interval <=10000){ if (interval <=10000){
countdownTenText.setText("10"); countdownTenText.setText("5");
return; return;
} }

@ -101,6 +101,11 @@
<Font name="System Bold" size="41.0" /> <Font name="System Bold" size="41.0" />
</font> </font>
</Label> </Label>
<Label fx:id="preRacelabel" alignment="CENTER" text="Entering Race In:" textFill="RED" AnchorPane.bottomAnchor="80.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<font>
<Font name="System Bold" size="18.0" />
</font>
</Label>
</children> </children>
</AnchorPane> </AnchorPane>
</children> </children>

Loading…
Cancel
Save