From 840658b5902a6fd20864f13d35c0e75fd152e73a Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Tue, 26 Nov 2024 00:34:49 +0100 Subject: [PATCH] fixed background location again --- .../main/java/pp/monopoly/client/gui/ChoosePartner.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/ChoosePartner.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/ChoosePartner.java index e663b56..aa23fcf 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/ChoosePartner.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/ChoosePartner.java @@ -70,7 +70,7 @@ public class ChoosePartner extends Dialog { mainContainer.setLocalTranslation( (app.getCamera().getWidth() - mainContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + mainContainer.getPreferredSize().y) / 2, - 0 + 3 ); } @@ -95,7 +95,8 @@ public class ChoosePartner extends Dialog { Vector3f dimens = dropdownContainer.getPreferredSize(); Vector3f dimens2 = playerSelector.getPopupContainer().getPreferredSize(); dimens2.setX( dimens.getX() ); - playerSelector.getPopupContainer().setPreferredSize(new Vector3f(200,200,5)); + playerSelector.getPopupContainer().setPreferredSize(new Vector3f(200,200,3)); + playerSelector.setLocalTranslation(0,0,5); return dropdownContainer; } @@ -121,7 +122,7 @@ public class ChoosePartner extends Dialog { lowerLeftMenu.addChild(cancelButton); // Position the container near the bottom-left corner - lowerLeftMenu.setLocalTranslation(new Vector3f(120, 170, 3)); // Adjust X and Y to align with the bottom-left corner + lowerLeftMenu.setLocalTranslation(new Vector3f(120, 170, 5)); // Adjust X and Y to align with the bottom-left corner app.getGuiNode().attachChild(lowerLeftMenu); @@ -139,7 +140,7 @@ public class ChoosePartner extends Dialog { lowerRightMenu.addChild(confirmButton); // Position the container near the bottom-right corner - lowerRightMenu.setLocalTranslation(new Vector3f(app.getCamera().getWidth() - 320, 170, 3)); // X: 220px from the right, Y: 50px above the bottom + lowerRightMenu.setLocalTranslation(new Vector3f(app.getCamera().getWidth() - 320, 170, 5)); // X: 220px from the right, Y: 50px above the bottom app.getGuiNode().attachChild(lowerRightMenu);