From bdc5f0269f061266104f7a0fba04c5022b3cbfd2 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Tue, 26 Nov 2024 22:27:55 +0100 Subject: [PATCH] fixed cancel button position --- .../src/main/java/pp/monopoly/client/gui/TradeMenu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TradeMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TradeMenu.java index 83c7e76..bff95e2 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TradeMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TradeMenu.java @@ -208,12 +208,12 @@ public class TradeMenu extends Dialog { cancelButton.setFontSize(30); cancelButton.addClickCommands(s -> ifTopDialog(() -> { app.getGameLogic().playSound(Sound.BUTTON); - close(); + this.close(); })); lowerLeftMenu.addChild(cancelButton); // Position the container near the bottom-left corner - lowerLeftMenu.setLocalTranslation(new Vector3f(70, 100, 8)); // Adjust X and Y to align with the bottom-left corner + lowerLeftMenu.setLocalTranslation(new Vector3f(50, 100, 8)); // Adjust X and Y to align with the bottom-left corner app.getGuiNode().attachChild(lowerLeftMenu); Label spacer = column.addChild(new Label("")); // Spacer