From 19789bf7d1b698a0c7d945b1928a3b2c9564ee18 Mon Sep 17 00:00:00 2001 From: Hosein Date: Sun, 17 May 2026 19:50:17 +0330 Subject: [PATCH] Updated README and added another optional task. --- README.md | 4 ++++ src/main/java/workshop/Controller.java | 4 +++- src/main/resources/workshop/pricing.fxml | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) 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 @@