TradeReplay popup

This commit is contained in:
Johannes Schmelz
2024-12-02 03:16:50 +01:00
parent 13754c843a
commit bcf4956d2d
4 changed files with 26 additions and 7 deletions

View File

@@ -307,8 +307,10 @@ public class ClientGameLogic implements ServerInterpreter, GameEventBroker {
public void received(TradeReply msg) {
if (msg.isAccepted()) {
playSound(Sound.TRADE_ACCEPTED);
notifyListeners(new PopUpEvent("tradepos", msg));
} else {
playSound(Sound.TRADE_REJECTED);
notifyListeners(new PopUpEvent("tradeneg", msg));
}
}