- Added Values to Finish Dialog.

Tags: #story[1245]
This commit is contained in:
Alistair McIntyre
2017-09-14 15:24:58 +12:00
parent 482d987839
commit 3a671d4ed0
3 changed files with 24 additions and 3 deletions
@@ -30,8 +30,8 @@ public class FinishDialogController implements Initializable {
public void setFinishedBoats(ArrayList<ClientYacht> finishedBoats) { public void setFinishedBoats(ArrayList<ClientYacht> finishedBoats) {
finishersList.getItems().clear(); finishersList.getItems().clear();
for (ClientYacht yacht : finishedBoats) { for (int i = 0; i < finishedBoats.size(); i++) {
finishersList.getItems().add(new Label(yacht.getBoatName())); finishersList.getItems().add(new Label(Integer.toString(i+1) +". " + finishedBoats.get(i).getBoatName()));
} }
} }
} }
@@ -0,0 +1,21 @@
#raceFinishLabel {
-fx-font-size: 23px !important;
-fx-text-fill: -fx-pp-dark-text-color;
}
#finishersList {
}
#playAgain {
-fx-background-color: -fx-pp-theme-color;
-fx-text-fill: -fx-pp-light-text-color;
-fx-font-size: 20px !important;
-fx-effect: -fx-pp-dropshadow-dark;
-fx-min-width: 130px;
}
#playAgain:hover {
-fx-font-size: 23px !important;
-fx-background-color: -fx-pp-light-theme-color;
}
@@ -35,7 +35,7 @@
</GridPane> </GridPane>
</children> </children>
<stylesheets> <stylesheets>
<String fx:value="/css/dialogs/BoatCustomize.css"/> <String fx:value="/css/dialogs/FinishScreen.css"/>
<String fx:value="/css/Master.css"/> <String fx:value="/css/Master.css"/>
</stylesheets> </stylesheets>
</JFXDialogLayout> </JFXDialogLayout>