Updated README and added another optional task.
This commit is contained in:
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
<HBox spacing="25" alignment="CENTER" HBox.hgrow="ALWAYS">
|
||||
<VBox styleClass="card" prefWidth="200">
|
||||
<Label text="Basic" styleClass="plan-name" />
|
||||
<Label text="$9.99 / month" styleClass="price" />
|
||||
<Label text="\$9.99 / month" styleClass="price" />
|
||||
<Label text="Single user, basic features" styleClass="desc" wrapText="true" />
|
||||
<Button text="Shop" onAction="#buyBasic" styleClass="shop-btn" />
|
||||
</VBox>
|
||||
|
||||
<VBox styleClass="card" prefWidth="200">
|
||||
<Label text="Pro" styleClass="plan-name" />
|
||||
<Label text="$19.99 / month" styleClass="price" />
|
||||
<Label text="\$19.99 / month" styleClass="price" />
|
||||
<Label text="Up to 5 users, advanced features" styleClass="desc" wrapText="true" />
|
||||
<Button text="Shop" onAction="#buyPro" styleClass="shop-btn" />
|
||||
</VBox>
|
||||
|
||||
Reference in New Issue
Block a user