From fb217970400c027cc20f347460bf34e291fdd023 Mon Sep 17 00:00:00 2001 From: David Guler Date: Sat, 10 Dec 2022 13:22:40 +0100 Subject: [PATCH] added screenshots to tutorial --- .../gartenverwaltung/TutorialController.java | 17 +++-- .../ch/zhaw/gartenverwaltung/CropDetail.fxml | 2 +- .../ch/zhaw/gartenverwaltung/Tutorial.fxml | 69 ++++++++++++++----- 3 files changed, 65 insertions(+), 23 deletions(-) diff --git a/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java b/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java index eb4ad5d..2e0b1db 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/TutorialController.java @@ -22,6 +22,8 @@ public class TutorialController { public ImageView imgAddNewPlant; public ImageView imgTaskList; public ImageView imgSelectDate; + public ImageView imgAddTaskButton; + public ImageView imgDetailDeleteButtons; private int page = 0; @@ -30,10 +32,17 @@ public class TutorialController { switchViews(); setButtonAbilities(); - Image placeholder = new Image(String.valueOf(PlantsController.class.getResource("placeholder.png"))); - imgAddNewPlant.setImage(placeholder); - imgSelectDate.setImage(placeholder); - imgTaskList.setImage(placeholder); + Image addNewPlantImage = new Image(String.valueOf(PlantsController.class.getResource("add-new-plant.png"))); + Image selectSowHarvestImage = new Image(String.valueOf(PlantsController.class.getResource("select-sow-harvest.png"))); + Image scheduleImage = new Image(String.valueOf(PlantsController.class.getResource("schedule.png"))); + Image detailDeleteButtonsImage = new Image(String.valueOf(PlantsController.class.getResource("details-delete.png"))); + Image addTaskImage = new Image(String.valueOf(PlantsController.class.getResource("add-task.png"))); + + imgAddNewPlant.setImage(addNewPlantImage); + imgSelectDate.setImage(selectSowHarvestImage); + imgDetailDeleteButtons.setImage(detailDeleteButtonsImage); + imgAddTaskButton.setImage(addTaskImage); + imgTaskList.setImage(scheduleImage); } public void viewNextPage() { diff --git a/src/main/resources/ch/zhaw/gartenverwaltung/CropDetail.fxml b/src/main/resources/ch/zhaw/gartenverwaltung/CropDetail.fxml index 6a2e116..89ff698 100644 --- a/src/main/resources/ch/zhaw/gartenverwaltung/CropDetail.fxml +++ b/src/main/resources/ch/zhaw/gartenverwaltung/CropDetail.fxml @@ -89,7 +89,7 @@ -