From 8de7499c21a4698ecbd85e005a82f66fca53d95e Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Mon, 9 Dec 2024 22:16:53 +0100 Subject: [PATCH 1/2] added spacer to toolbar --- .../src/main/java/pp/monopoly/client/gui/Toolbar.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java index 740df8c..8006119 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java @@ -99,6 +99,7 @@ public class Toolbar extends Dialog implements GameEventListener { container.setBackground(background); setupBorders(container); + setupSpacer(container); setupPlayerInfoSection(container); setupDiceSection(container); setupActionMenu(container); @@ -135,6 +136,12 @@ public class Toolbar extends Dialog implements GameEventListener { app.getGuiNode().attachChild(border); } + private void setupSpacer(Container container) { + Container spacer = container.addChild(new Container()); + spacer.setPreferredSize(new Vector3f(20, 10, 0)); + spacer.setBackground(null); + } + /** * Sets up the player information section of the toolbar interface. * From 98f453d7f80024afbd090a68b268156982029b47 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Mon, 9 Dec 2024 22:38:02 +0100 Subject: [PATCH 2/2] added javadoc --- .../client/src/main/java/pp/monopoly/client/gui/Toolbar.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java index 8006119..e33b36e 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java @@ -136,6 +136,11 @@ public class Toolbar extends Dialog implements GameEventListener { app.getGuiNode().attachChild(border); } + /** + * Adds a spacer to the specified container. + * + * @param container the container to which the spacer is added + */ private void setupSpacer(Container container) { Container spacer = container.addChild(new Container()); spacer.setPreferredSize(new Vector3f(20, 10, 0));