From a42093df23cd1861b626f8f647068729149ecdbc Mon Sep 17 00:00:00 2001 From: Yvonne Schmidt Date: Tue, 19 Nov 2024 17:34:22 +0100 Subject: [PATCH] SettingsMenu nochmal angepasst --- .../src/main/resources/Interface/Lemur/pp-styles.groovy | 8 +++++++- .../main/java/pp/monopoly/client/gui/SettingsMenu.java | 4 +++- 2 files changed, 10 insertions(+), 2 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 68a0f6e..5b9f835 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 @@ -235,4 +235,10 @@ selector("tab.button", "pp") { selector("settings-title", "pp") { fontSize = 48 // Set font size background = new QuadBackgroundComponent(color(0.4157f, 0.4235f, 0.4392f, 1.0f)) // Grey background - } \ No newline at end of file + } + +selector("menu-button", "pp") { + fontSize = 40 // Set font size + background = new QuadBackgroundComponent(color(0.4157f, 0.4235f, 0.4392f, 1.0f)) // Grey background +} + diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/SettingsMenu.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/SettingsMenu.java index 74d320b..58221d6 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/SettingsMenu.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/SettingsMenu.java @@ -36,6 +36,8 @@ public class SettingsMenu extends Dialog { settingsContainer = new Container(); settingsContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.1f, 0.1f, 0.1f, 0.9f))); + + // Titel Label settingsTitle = settingsContainer.addChild(new Label("Einstellungen", new ElementId("settings-title"))); settingsTitle.setFontSize(48); @@ -62,7 +64,7 @@ public class SettingsMenu extends Dialog { settingsContainer.setLocalTranslation( (app.getCamera().getWidth() - settingsContainer.getPreferredSize().x) / 2, (app.getCamera().getHeight() + settingsContainer.getPreferredSize().y) / 2, - 1 + 3 ); app.getGuiNode().attachChild(settingsContainer);