changed settings menu to match

This commit is contained in:
Johannes Schmelz 2024-11-24 19:10:59 +01:00
parent fb28f3fefc
commit c2d5611ab9

View File

@ -42,15 +42,17 @@ public class SettingsMenu extends Dialog {
super(app.getDialogManager());
this.app = app;
slider = new VolumeSlider(app.getStateManager().getState(GameMusic.class));
addChild(new Label(lookup("monopoly.name"), new ElementId("header"))); //NON-NLS
addChild(new Checkbox(lookup("menu.sound-enabled"), new StateCheckboxModel(app, GameSound.class)));
addChild(new Label("Einstellungen", new ElementId("header"))); //NON-NLS
addChild(new Label("Sound Effekte", new ElementId("label"))); //NON-NLS
addChild(new Checkbox("Soundeffekte an / aus", new StateCheckboxModel(app, GameSound.class)));
addChild(new Checkbox(lookup("menu.background-sound-enabled"), new StateCheckboxModel(app, GameMusic.class)));
addChild(new Label("Hintergrund Musik", new ElementId("label"))); //NON-NLS
addChild(new Checkbox("Musik an / aus", new StateCheckboxModel(app, GameMusic.class)));
addChild(slider);
addChild(new Button(lookup("menu.return-to-game"))).addClickCommands(s -> ifTopDialog(this::close));
addChild(new Button(lookup("menu.quit"))).addClickCommands(s -> ifTopDialog(app::closeApp));
addChild(new Button("Zurück zum Spiel")).addClickCommands(s -> ifTopDialog(this::close));
addChild(new Button("Beenden")).addClickCommands(s -> ifTopDialog(app::closeApp));
update();
}