diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java index e3fcc07..f8a8c25 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java @@ -1,6 +1,7 @@ package pp.monopoly.client.gui.popups; import com.jme3.math.ColorRGBA; +import com.jme3.math.Vector3f; import com.simsilica.lemur.Button; import com.simsilica.lemur.Container; import com.simsilica.lemur.Label; @@ -41,6 +42,7 @@ public class BuildingPropertyCard extends Dialog implements PopupDialog { buildingPropertyContainer = new Container(); buildingPropertyContainer.setBackground(new QuadBackgroundComponent(field.getColor().getColor())); addContentToContainer(buildingPropertyContainer, field); + buildingPropertyContainer.setPreferredSize(new Vector3f(360,420,1)); // Create the background container backgroundContainer = new Container(); @@ -50,6 +52,9 @@ public class BuildingPropertyCard extends Dialog implements PopupDialog { float padding = 10f; backgroundContainer.setPreferredSize(buildingPropertyContainer.getPreferredSize().addLocal(padding, padding, 0)); + + System.out.println(backgroundContainer.getPreferredSize()); + // Position the containers centerContainers(padding); } diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java index 64c2d64..a6c72b0 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/FoodFieldCard.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; @@ -72,6 +73,7 @@ public class FoodFieldCard extends Dialog implements PopupDialog { private void createBackgroundContainer() { backgroundContainer = new Container(); backgroundContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.8657f, 0.8735f, 0.8892f, 1.0f))); // Light gray background + } /** @@ -82,6 +84,7 @@ public class FoodFieldCard extends Dialog implements PopupDialog { private void createFoodFieldContainer(FoodField field) { foodFieldContainer = new Container(); foodFieldContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.1f, 0.1f, 0.1f, 0.9f))); + foodFieldContainer.setPreferredSize(new Vector3f(360,420,1)); // Title Label title = foodFieldContainer.addChild(new Label(field.getName(), new ElementId("label-Bold"))); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/GateFieldCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/GateFieldCard.java index 2a27ee7..5af9f1a 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/GateFieldCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/GateFieldCard.java @@ -1,6 +1,7 @@ package pp.monopoly.client.gui.popups; import com.jme3.math.ColorRGBA; +import com.jme3.math.Vector3f; import com.simsilica.lemur.Button; import com.simsilica.lemur.Container; import com.simsilica.lemur.Label; @@ -52,6 +53,7 @@ public class GateFieldCard extends Dialog implements PopupDialog { private void createBackgroundContainer() { backgroundContainer = new Container(); backgroundContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.8657f, 0.8735f, 0.8892f, 1.0f))); // Light gray background + gateFieldContainer.setPreferredSize(new Vector3f(360,420,1)); } /** diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/Gulag.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/Gulag.java index f280093..1326b26 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/Gulag.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/Gulag.java @@ -138,4 +138,4 @@ public class Gulag extends Dialog implements PopupDialog { public void escape() { close(); } -} +} \ No newline at end of file