Skip to content

Commit

Permalink
City picture is now showing after city task
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmini committed Feb 6, 2022
1 parent 0ded5c4 commit 1dbacc1
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ private void feedBackAfterCityTask() {
@FXML
void nextWindow(ActionEvent event) {
if (!level.isLevelCompleted()) {
String city = level.getCity();
String css = "../css/" + city + ".css";
String css;
if (level.cityIsFinished()) {
String city = level.getCity();
css = "../css/" + city + ".css";
} else {
css = "../css/startwindow.css";
}
level.setNextTask(level.getCurrentTask());
mainController.switchWindowWithCSS(level.getCurrentTask() + ".fxml", css);
} else {
Expand Down

0 comments on commit 1dbacc1

Please sign in to comment.