From 160fff88ea990b3f224eda1e53b17ef7363a21d8 Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Mon, 2 Dec 2024 08:23:13 +0100 Subject: [PATCH] added documentation for EventCardPopup --- .../monopoly/client/gui/popups/EventCardPopup.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 dc02fb0..dfd3bc6 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 @@ -54,12 +54,12 @@ public class EventCardPopup extends Dialog { backgroundContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.8657f, 0.8735f, 0.8892f, 1.0f))); // Darker background app.getGuiNode().attachChild(backgroundContainer); - // Hauptcontainer für die Eventcard + eventCardContainer = new Container(); eventCardContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.8657f, 0.8735f, 0.8892f, 1.0f))); eventCardContainer.setPreferredSize(new Vector3f(550,400,10)); - float padding = 10; // Passt den backgroundContainer an die Größe des eventCardContainers an + float padding = 10; backgroundContainer.setPreferredSize(eventCardContainer.getPreferredSize().addLocal(padding, padding, 0)); // Titel @@ -108,7 +108,7 @@ public class EventCardPopup extends Dialog { Quad quad = new Quad(app.getCamera().getWidth(), app.getCamera().getHeight()); Geometry overlay = new Geometry("Overlay", quad); Material material = new Material(app.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); - material.setColor("Color", new ColorRGBA(0, 0, 0, 0.5f)); // Halbtransparent + material.setColor("Color", new ColorRGBA(0, 0, 0, 0.5f)); material.getAdditionalRenderState().setBlendMode(BlendMode.Alpha); overlay.setMaterial(material); overlay.setLocalTranslation(0, 0, 0); @@ -120,9 +120,9 @@ public class EventCardPopup extends Dialog { */ @Override public void close() { - app.getGuiNode().detachChild(eventCardContainer); // Entferne das Menü - app.getGuiNode().detachChild(backgroundContainer); //Entfernt Rand - app.getGuiNode().detachChild(overlayBackground); // Entferne das Overlay + app.getGuiNode().detachChild(eventCardContainer); + app.getGuiNode().detachChild(backgroundContainer); + app.getGuiNode().detachChild(overlayBackground); super.close(); }