mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-12-01 20:29:47 +01:00
fixed b button
This commit is contained in:
parent
274df8dfd1
commit
cc7f277bef
@ -279,19 +279,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
|
|||||||
private void handleB(boolean isPressed) {
|
private void handleB(boolean isPressed) {
|
||||||
if (isPressed) {
|
if (isPressed) {
|
||||||
Dialog tmp = new BuyCard(this);
|
Dialog tmp = new BuyCard(this);
|
||||||
if (eventCard != null && isBuyCardPopupOpen) {
|
tmp.open();
|
||||||
// Schließe das SettingsMenu
|
|
||||||
System.out.println("Schließe BuyCardPopup...");
|
|
||||||
eventCard.close();
|
|
||||||
eventCard = null;
|
|
||||||
tmp.open();
|
|
||||||
} else {
|
|
||||||
// Öffne das SettingsMenu
|
|
||||||
System.out.println("Öffne BuyCardPopup...");
|
|
||||||
eventCard = new EventCard(this);
|
|
||||||
eventCard.open();
|
|
||||||
dialogManager.close(tmp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user