From 1f0df80121bbacc456bcee25502ee6b1ae31802b Mon Sep 17 00:00:00 2001 From: Immanuel Alvaro Bhirawa Date: Fri, 24 Mar 2023 14:53:07 +1100 Subject: [PATCH] Fixed Task 5 part 2 (Current Arrangement State) --- src/comp1110/ass2/gui/Viewer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/comp1110/ass2/gui/Viewer.java b/src/comp1110/ass2/gui/Viewer.java index af8c7f9..66ddae9 100644 --- a/src/comp1110/ass2/gui/Viewer.java +++ b/src/comp1110/ass2/gui/Viewer.java @@ -126,7 +126,7 @@ public class Viewer extends Application { // To group the root and adjust their Px sizes accordingly // to each other - StackPane rootGroup = new StackPane(); + // StackPane rootGroup = new StackPane(); // Part 1 done (Game Arrangement State) String[] parts = stateString.split(";"); @@ -152,9 +152,11 @@ public class Viewer extends Application { switch(currentArrangementPhaseParts) { case "E": { currentArrangementActualPhase = "Exploration"; + break; } case "S": { currentArrangementActualPhase = "Settler"; + break; } } @@ -170,7 +172,7 @@ public class Viewer extends Application { root.getChildren().add(currentStateText); currentStateText.setFill(Color.GREEN); - rootGroup.getChildren().addAll(currentStateText,board); + // rootGroup.getChildren().addAll(currentStateText,board); //Before doing part 3, make the board and the current state adjustable to each // by that I mean, when the board size adjusted, the current state is also