forked from External/mage
Shuffling player seats in multi player
This commit is contained in:
parent
fce6756d77
commit
9c6dc78842
2 changed files with 14 additions and 5 deletions
|
|
@ -389,10 +389,15 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
|
|||
} else {
|
||||
int current = getPlayersCount(tableView);
|
||||
if (current != count) {
|
||||
count = current;
|
||||
if (count > 0) {
|
||||
MageTray.getInstance().blink();
|
||||
if (current > count) {
|
||||
MageTray.getInstance().displayMessage("New player joined your game.");
|
||||
} else {
|
||||
MageTray.getInstance().displayMessage("A player left your game.");
|
||||
}
|
||||
MageTray.getInstance().blink();
|
||||
}
|
||||
count = current;
|
||||
}
|
||||
}
|
||||
dialog.update(tableView);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue