changed boatPositionController to also add velocity to the boat ordering shown in the side bar #story[447]

This commit is contained in:
Peter
2017-03-23 22:50:04 +13:00
parent 590ef557d3
commit 59a4a74a97
2 changed files with 5 additions and 3 deletions
@@ -39,7 +39,7 @@ public class BoatPositionController {
positionVbox.getChildren().removeAll(); positionVbox.getChildren().removeAll();
for (Boat boat: boatOrder){ for (Boat boat: boatOrder){
positionVbox.getChildren().add(new Text(boat.getTeamName())); positionVbox.getChildren().add(new Text(boat.getTeamName() + " " + boat.getVelocity()));
} }
} }
+4 -2
View File
@@ -13,11 +13,13 @@
<children> <children>
<GridPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <GridPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<columnConstraints> <columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="632.0" minWidth="10.0" prefWidth="224.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="632.0" minWidth="10.0" prefWidth="246.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1056.0" minWidth="10.0" prefWidth="1056.0" /> <ColumnConstraints hgrow="SOMETIMES" maxWidth="1056.0" minWidth="10.0" prefWidth="1034.0" />
</columnConstraints> </columnConstraints>
<rowConstraints> <rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
<RowConstraints />
<RowConstraints />
</rowConstraints> </rowConstraints>
<children> <children>
<AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowSpan="3"> <AnchorPane prefHeight="200.0" prefWidth="200.0" GridPane.rowSpan="3">