|
|
|
|
@ -4,6 +4,7 @@ package seng302.Controllers;
|
|
|
|
|
import javafx.beans.property.ReadOnlyObjectWrapper;
|
|
|
|
|
import javafx.beans.value.ChangeListener;
|
|
|
|
|
import javafx.beans.value.ObservableValue;
|
|
|
|
|
import javafx.collections.FXCollections;
|
|
|
|
|
import javafx.collections.ObservableList;
|
|
|
|
|
import javafx.fxml.FXML;
|
|
|
|
|
import javafx.scene.control.*;
|
|
|
|
|
@ -40,6 +41,8 @@ public class RaceController extends Controller {
|
|
|
|
|
Label timer;
|
|
|
|
|
@FXML
|
|
|
|
|
Label FPS;
|
|
|
|
|
@FXML
|
|
|
|
|
ComboBox<BoatInRace> visibleTrackSelect;
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
|
TableView<BoatInRace> boatInfoTable;
|
|
|
|
|
@ -165,6 +168,7 @@ public class RaceController extends Controller {
|
|
|
|
|
startScreen.setVisible(false);
|
|
|
|
|
ongoingRacePane.setVisible(true);
|
|
|
|
|
|
|
|
|
|
visibleTrackSelect.setItems(FXCollections.observableArrayList(startingBoats));
|
|
|
|
|
|
|
|
|
|
initializeFPS();
|
|
|
|
|
initializeAnnotations();
|
|
|
|
|
@ -191,6 +195,13 @@ public class RaceController extends Controller {
|
|
|
|
|
FPS.setText((fps));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public void toggleTrackVisibility() {
|
|
|
|
|
visibleTrackSelect.getSelectionModel().getSelectedItem().setTrackVisible(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set up FPS display at bottom of screen
|
|
|
|
|
*/
|
|
|
|
|
|