mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Solved the fps counter zoom together with canvas problem. Workaround used was changing fps counter on game view to race view.
#story[1117] #pair[ptg19, zyt10]
This commit is contained in:
@@ -71,6 +71,8 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
|
||||
private Button selectAnnotationBtn;
|
||||
@FXML
|
||||
private ComboBox<Yacht> yachtSelectionComboBox;
|
||||
@FXML
|
||||
private Text fpsDisplay;
|
||||
|
||||
//Race Data
|
||||
private Map<Integer, Yacht> participants;
|
||||
@@ -115,6 +117,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
|
||||
initialiseSparkLine();
|
||||
|
||||
gameView = new GameView();
|
||||
gameView.setFrameRateFXText(fpsDisplay);
|
||||
Platform.runLater(() -> contentAnchorPane.getChildren().add(0, gameView));
|
||||
gameView.setBoats(new ArrayList<>(participants.values()));
|
||||
gameView.updateBorder(raceData.getCourseLimit());
|
||||
|
||||
Reference in New Issue
Block a user