From 8474c9f5bc1db7d053987a035aedc9aea2e7650f Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Mon, 25 Nov 2024 03:56:07 +0100 Subject: [PATCH] fixed EventCard sizing --- .../src/main/java/pp/monopoly/client/gui/popups/EventCard.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCard.java index 37fa654..64a8afa 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/EventCard.java @@ -3,6 +3,7 @@ package pp.monopoly.client.gui.popups; import com.jme3.material.Material; import com.jme3.material.RenderState.BlendMode; import com.jme3.math.ColorRGBA; +import com.jme3.math.Vector3f; import com.jme3.scene.Geometry; import com.jme3.scene.shape.Quad; import com.simsilica.lemur.Button; @@ -44,6 +45,7 @@ public class EventCard extends Dialog { // Hauptcontainer für die Gebäudekarte eventCardContainer = new Container(); eventCardContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.8657f, 0.8735f, 0.8892f, 1.0f))); + eventCardContainer.setPreferredSize(new Vector3f(550,400,10)); // Titel // Die Namen werden dynamisch dem BoardManager entnommen @@ -56,6 +58,7 @@ public class EventCard extends Dialog { Container propertyValuesContainer = eventCardContainer.addChild(new Container()); propertyValuesContainer.addChild(new Label(card.getDescription(), new ElementId("label-Text"))); propertyValuesContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.4657f, 0.4735f, 0.4892f, 1.0f))); + propertyValuesContainer.setPreferredSize(new Vector3f(300,200,10)); // Beenden-Button Button quitButton = eventCardContainer.addChild(new Button("Jawohl", new ElementId("button")));