This commit is contained in:
Luca Puderbach 2024-11-19 17:44:57 +01:00
commit 818fdf4670
2 changed files with 10 additions and 2 deletions

View File

@ -236,3 +236,9 @@ selector("settings-title", "pp") {
fontSize = 48 // Set font size
background = new QuadBackgroundComponent(color(0.4157f, 0.4235f, 0.4392f, 1.0f)) // Grey background
}
selector("menu-button", "pp") {
fontSize = 40 // Set font size
background = new QuadBackgroundComponent(color(0.4157f, 0.4235f, 0.4392f, 1.0f)) // Grey background
}

View File

@ -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);