From 54118071cbd32f65a4d30580065b331b07c16139 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Sun, 1 Dec 2024 00:34:57 +0100 Subject: [PATCH] fixed popup overlap --- .../src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java | 4 ++-- .../main/java/pp/monopoly/client/gui/popups/RepayMortage.java | 4 ++-- .../main/java/pp/monopoly/client/gui/popups/SellHouse.java | 4 ++-- .../main/java/pp/monopoly/client/gui/popups/TakeMortage.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java index ff142d9..76f85eb 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java @@ -125,14 +125,14 @@ public class BuyHouse extends Dialog { buyHouseContainer.setLocalTranslation( (app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y) / 2, - 8 + 9 ); // Zentriere das Popup backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y+ padding) / 2, - 7 + 8 ); app.getGuiNode().attachChild(buyHouseContainer); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/RepayMortage.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/RepayMortage.java index d9da422..8afa4a0 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/RepayMortage.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/RepayMortage.java @@ -125,14 +125,14 @@ public class RepayMortage extends Dialog { repayMortageContainer.setLocalTranslation( (app.getCamera().getWidth() - repayMortageContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + repayMortageContainer.getPreferredSize().y) / 2, - 8 + 9 ); // Zentriere das Popup backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - repayMortageContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + repayMortageContainer.getPreferredSize().y+ padding) / 2, - 7 + 8 ); app.getGuiNode().attachChild(repayMortageContainer); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java index 1725946..ed6e7d7 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java @@ -129,14 +129,14 @@ public class SellHouse extends Dialog { sellhouseContainer.setLocalTranslation( (app.getCamera().getWidth() - sellhouseContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + sellhouseContainer.getPreferredSize().y) / 2, - 8 + 9 ); // Zentriere das Popup backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - sellhouseContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + sellhouseContainer.getPreferredSize().y+ padding) / 2, - 7 + 8 ); app.getGuiNode().attachChild(sellhouseContainer); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/TakeMortage.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/TakeMortage.java index 60137ac..332fba9 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/TakeMortage.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/TakeMortage.java @@ -125,14 +125,14 @@ public class TakeMortage extends Dialog { takeMortageContainer.setLocalTranslation( (app.getCamera().getWidth() - takeMortageContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + takeMortageContainer.getPreferredSize().y) / 2, - 8 + 9 ); // Zentriere das Popup backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - takeMortageContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + takeMortageContainer.getPreferredSize().y+ padding) / 2, - 7 + 8 ); app.getGuiNode().attachChild(takeMortageContainer);