forked from External/mage
fixed issue 206 - game over message is no longer modal
This commit is contained in:
parent
2e97eb38fd
commit
77ed081e70
3 changed files with 16 additions and 9 deletions
|
|
@ -117,8 +117,7 @@ public class CallbackClientImpl implements CallbackClient {
|
|||
else if (callback.getMethod().equals("replayDone")) {
|
||||
GamePanel panel = frame.getGame(callback.getObjectId());
|
||||
if (panel != null) {
|
||||
panel.modalMessage((String) callback.getData());
|
||||
panel.hideGame();
|
||||
panel.endMessage((String) callback.getData());
|
||||
}
|
||||
}
|
||||
else if (callback.getMethod().equals("replayUpdate")) {
|
||||
|
|
@ -136,8 +135,7 @@ public class CallbackClientImpl implements CallbackClient {
|
|||
else if (callback.getMethod().equals("gameOver")) {
|
||||
GamePanel panel = frame.getGame(callback.getObjectId());
|
||||
if (panel != null) {
|
||||
panel.modalMessage((String) callback.getData());
|
||||
panel.hideGame();
|
||||
panel.endMessage((String) callback.getData());
|
||||
}
|
||||
}
|
||||
else if (callback.getMethod().equals("gameError")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue