From c6355b2c09cd4223197d268a9cc7c99b442a288b Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Sat, 23 Nov 2024 17:37:27 +0100 Subject: [PATCH] dropdown lesbar --- .../client/src/main/java/pp/monopoly/client/MonopolyApp.java | 2 ++ .../client/src/main/java/pp/monopoly/client/gui/LobbyMenu.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java index b00aed5..09823cb 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java @@ -102,6 +102,8 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga GuiGlobals.initialize(this); BaseStyles.loadStyleResources(STYLES_SCRIPT); GuiGlobals.getInstance().getStyles().setDefaultStyle("pp"); // NON-NLS + BaseStyles.loadStyleResources("com/simsilica/lemur/style/base/glass-styles.groovy"); + GuiGlobals.getInstance().getStyles(); final BitmapFont normalFont = assetManager.loadFont(FONT); // NON-NLS setupInput(); diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/LobbyMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/LobbyMenu.java index 5d01e5e..de4d6a1 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/LobbyMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/LobbyMenu.java @@ -89,7 +89,7 @@ public class LobbyMenu { items.add("Gamma"); items.add("Back"); - dropdown = new Selector<>(items); + dropdown = new Selector<>(items,"glass"); dropdown.setBackground(new QuadBackgroundComponent(ColorRGBA.Black)); menuContainer.addChild(dropdown);