mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-07-29 22:02:21 +02:00
added greyed button
This commit is contained in:
@@ -125,13 +125,13 @@ public class BuyHouse extends Dialog {
|
||||
buyHouseContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x) / 2,
|
||||
(app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y) / 2,
|
||||
8
|
||||
9
|
||||
);
|
||||
|
||||
backgroundContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - buyHouseContainer.getPreferredSize().x - padding) / 2,
|
||||
(app.getCamera().getHeight() + buyHouseContainer.getPreferredSize().y + padding) / 2,
|
||||
7
|
||||
8
|
||||
);
|
||||
|
||||
app.getGuiNode().attachChild(buyHouseContainer);
|
||||
|
@@ -93,7 +93,7 @@ public class GulagInfo extends Dialog implements PopupDialog {
|
||||
}));
|
||||
|
||||
// Use Jail-Free Card Button
|
||||
Button eventCardButton = gulagInfoContainer.addChild(new Button("Ereigniskarte nutzen", new ElementId("button")));
|
||||
Button eventCardButton = gulagInfoContainer.addChild(new Button("Ereigniskarte nutzen", new ElementId("button-toolbar2")));
|
||||
eventCardButton.setFontSize(32);
|
||||
eventCardButton.addClickCommands(s -> ifTopDialog(() -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
|
@@ -128,14 +128,14 @@ public class RepayMortage extends Dialog {
|
||||
repayMortageContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - repayMortageContainer.getPreferredSize().x) / 2,
|
||||
(app.getCamera().getHeight() + repayMortageContainer.getPreferredSize().y) / 2,
|
||||
8
|
||||
9
|
||||
);
|
||||
|
||||
// Zentriere das Popup
|
||||
backgroundContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - repayMortageContainer.getPreferredSize().x - padding) / 2,
|
||||
(app.getCamera().getHeight() + repayMortageContainer.getPreferredSize().y+ padding) / 2,
|
||||
7
|
||||
8
|
||||
);
|
||||
|
||||
app.getGuiNode().attachChild(repayMortageContainer);
|
||||
|
@@ -128,14 +128,14 @@ public class SellHouse extends Dialog {
|
||||
sellhouseContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - sellhouseContainer.getPreferredSize().x) / 2,
|
||||
(app.getCamera().getHeight() + sellhouseContainer.getPreferredSize().y) / 2,
|
||||
8
|
||||
9
|
||||
);
|
||||
|
||||
// Zentriere das Popup
|
||||
backgroundContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - sellhouseContainer.getPreferredSize().x - padding) / 2,
|
||||
(app.getCamera().getHeight() + sellhouseContainer.getPreferredSize().y+ padding) / 2,
|
||||
7
|
||||
8
|
||||
);
|
||||
|
||||
app.getGuiNode().attachChild(sellhouseContainer);
|
||||
|
@@ -129,14 +129,14 @@ public class TakeMortage extends Dialog {
|
||||
takeMortageContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - takeMortageContainer.getPreferredSize().x) / 2,
|
||||
(app.getCamera().getHeight() + takeMortageContainer.getPreferredSize().y) / 2,
|
||||
8
|
||||
9
|
||||
);
|
||||
|
||||
// Zentriere das Popup
|
||||
backgroundContainer.setLocalTranslation(
|
||||
(app.getCamera().getWidth() - takeMortageContainer.getPreferredSize().x - padding) / 2,
|
||||
(app.getCamera().getHeight() + takeMortageContainer.getPreferredSize().y+ padding) / 2,
|
||||
7
|
||||
8
|
||||
);
|
||||
|
||||
app.getGuiNode().attachChild(takeMortageContainer);
|
||||
|
Reference in New Issue
Block a user