mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-25 05:49:44 +01:00
changed settings menu to match
This commit is contained in:
parent
fb28f3fefc
commit
c2d5611ab9
@ -42,15 +42,17 @@ public class SettingsMenu extends Dialog {
|
|||||||
super(app.getDialogManager());
|
super(app.getDialogManager());
|
||||||
this.app = app;
|
this.app = app;
|
||||||
slider = new VolumeSlider(app.getStateManager().getState(GameMusic.class));
|
slider = new VolumeSlider(app.getStateManager().getState(GameMusic.class));
|
||||||
addChild(new Label(lookup("monopoly.name"), new ElementId("header"))); //NON-NLS
|
addChild(new Label("Einstellungen", new ElementId("header"))); //NON-NLS
|
||||||
addChild(new Checkbox(lookup("menu.sound-enabled"), new StateCheckboxModel(app, GameSound.class)));
|
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(slider);
|
||||||
|
|
||||||
addChild(new Button(lookup("menu.return-to-game"))).addClickCommands(s -> ifTopDialog(this::close));
|
addChild(new Button("Zurück zum Spiel")).addClickCommands(s -> ifTopDialog(this::close));
|
||||||
addChild(new Button(lookup("menu.quit"))).addClickCommands(s -> ifTopDialog(app::closeApp));
|
addChild(new Button("Beenden")).addClickCommands(s -> ifTopDialog(app::closeApp));
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user