diff --git a/README.md b/README.md index c3d15a1..3d2486c 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,11 @@ and finally add this line there: ### Controller.java * Wire up the "Shop" buttons → show payment alerts * Implement theme toggle (Dark ↔ Light) +* (Optional) Create initialize function and use it to set prices during runtime. + (you will need to reference the prices label in the fxml) +* (Optional) Make the plan prices go 1 dollar up each time user clicks on the shop button. +**Note**: Optional tasks are for your further practice and doesn't have extra points. --- diff --git a/src/main/java/workshop/Controller.java b/src/main/java/workshop/Controller.java index 3092fab..070b56f 100644 --- a/src/main/java/workshop/Controller.java +++ b/src/main/java/workshop/Controller.java @@ -10,8 +10,10 @@ public class Controller { private boolean isDark = true; - // TODO: (Optional) Create initialize function and use it to set prices during runtime. + // TODO: (Optional:For Practice) Create initialize function and use it to set prices during runtime. + + // TODO: (Optional:For Practice) Make the plan price go 1 dollar up each time user clicks on the shop button. @FXML private void buyBasic() { // TODO: Call showAlert() with a message indicating the user entered the payment gateway diff --git a/src/main/resources/workshop/pricing.fxml b/src/main/resources/workshop/pricing.fxml index b54db3b..a9b03f8 100644 --- a/src/main/resources/workshop/pricing.fxml +++ b/src/main/resources/workshop/pricing.fxml @@ -17,14 +17,14 @@