mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 22:56:15 +01:00
TopDialog in Propertyoverview eingefügt
This commit is contained in:
parent
3c6e519e77
commit
9e81fb8549
@ -17,6 +17,7 @@ import pp.monopoly.model.fields.BuildingProperty;
|
||||
import pp.monopoly.model.fields.FoodField;
|
||||
import pp.monopoly.model.fields.GateField;
|
||||
import pp.monopoly.model.fields.PropertyField;
|
||||
import pp.monopoly.notification.Sound;
|
||||
|
||||
import java.text.Collator;
|
||||
import java.util.ArrayList;
|
||||
@ -78,7 +79,11 @@ public class PropertyOverviewMenu extends Dialog {
|
||||
// Add the "Zurück" button at the bottom
|
||||
Button backButton = mainContainer.addChild(new Button("Zurück", new ElementId("button")));
|
||||
backButton.setPreferredSize(new Vector3f(200, 60, 0));
|
||||
backButton.addClickCommands(source -> this.close());
|
||||
backButton.addClickCommands(source -> ifTopDialog( () -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
close();
|
||||
|
||||
}));
|
||||
|
||||
// Attach the main container to the GUI node
|
||||
app.getGuiNode().attachChild(mainContainer);
|
||||
|
Loading…
Reference in New Issue
Block a user