From 640665fd2931975de9e5e7ffcb6cc1c50027a2af Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Sun, 8 Dec 2024 18:29:14 +0100 Subject: [PATCH 1/2] fixed layering issue --- .../src/main/java/pp/monopoly/client/gui/popups/BuyHouse.java | 4 ++-- .../java/pp/monopoly/client/gui/popups/EventCardPopup.java | 4 ++-- 2 files changed, 4 insertions(+), 4 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 c3632ce..45394f1 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,13 +125,13 @@ public class BuyHouse extends Dialog { buyHouseContainer.setLocalTranslation( (app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y) / 2, - 9 + 11 ); backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y + padding) / 2, - 8 + 10 ); app.getGuiNode().attachChild(buyHouseContainer); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCardPopup.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCardPopup.java index cd91944..130454b 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCardPopup.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCardPopup.java @@ -83,14 +83,14 @@ public class EventCardPopup extends Dialog { eventCardContainer.setLocalTranslation( (app.getCamera().getWidth() - eventCardContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + eventCardContainer.getPreferredSize().y) / 2, - 10 + 9 ); // Zentriere das Popup backgroundContainer.setLocalTranslation( (app.getCamera().getWidth() - eventCardContainer.getPreferredSize().x - padding) / 2, (app.getCamera().getHeight() + eventCardContainer.getPreferredSize().y+ padding) / 2, - 9 + 8 ); app.getGuiNode().attachChild(eventCardContainer); From b901323e2fbb329836d2389f1d2df8b3e979975d Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Sun, 8 Dec 2024 18:30:18 +0100 Subject: [PATCH 2/2] added color changes for buttons --- .../Interface/Lemur/pp-styles.groovy | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy index 79f8218..31c5440 100644 --- a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy +++ b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy @@ -13,6 +13,8 @@ import com.simsilica.lemur.HAlignment import com.simsilica.lemur.Insets3f import com.simsilica.lemur.component.QuadBackgroundComponent import com.simsilica.lemur.component.TbtQuadBackgroundComponent +import pp.monopoly.client.MonopolyApp +import pp.monopoly.game.server.Player def bgColor = color(1, 1, 1, 1) def buttonEnabledColor = color(0, 0, 0, 1) @@ -343,22 +345,23 @@ selector("selector.item.label", "hover") { background = new QuadBackgroundComponent(new ColorRGBA(0.2f, 0.6f, 1.0f, 0.9f)) // Highlighted background } - def enabledCommandToolbar = new Command