mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-08-03 21:00:32 +02:00
fixed button disabled behaviour
This commit is contained in:
@@ -83,7 +83,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
||||
diceContainer.addChild(horizontalContainer);
|
||||
|
||||
// Würfeln-Button
|
||||
Button diceButton = new Button("Würfeln");
|
||||
Button diceButton = new Button("Würfeln", new ElementId("button-toolbar"));
|
||||
diceButton.setPreferredSize(new Vector3f(200, 50, 0));
|
||||
diceButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
startDiceAnimation();
|
||||
@@ -103,7 +103,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
||||
}
|
||||
|
||||
private Button addTradeMenuButton() {
|
||||
Button tradeButton = new Button("Handeln");
|
||||
Button tradeButton = new Button("Handeln", new ElementId("button-toolbar"));
|
||||
tradeButton.setPreferredSize(new Vector3f(150, 50, 0));
|
||||
tradeButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
@@ -113,7 +113,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
||||
}
|
||||
|
||||
private Button addPropertyMenuButton() {
|
||||
Button propertyMenuButton = new Button("Grundstücke");
|
||||
Button propertyMenuButton = new Button("Grundstücke", new ElementId("button-toolbar"));
|
||||
propertyMenuButton.setPreferredSize(new Vector3f(150, 50, 0));
|
||||
propertyMenuButton.setFontSize(30);
|
||||
propertyMenuButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
@@ -125,7 +125,7 @@ public class Toolbar extends Dialog implements GameEventListener {
|
||||
}
|
||||
|
||||
private Button addEndTurnButton() {
|
||||
Button endTurnButton = new Button("Zug beenden");
|
||||
Button endTurnButton = new Button("Zug beenden", new ElementId("button-toolbar"));
|
||||
endTurnButton.setPreferredSize(new Vector3f(150, 50, 0));
|
||||
endTurnButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
|
Reference in New Issue
Block a user