forked from External/mage
Add a 'your game can start' sound
This commit is contained in:
parent
ed429b0c37
commit
042e64aeb8
3 changed files with 12 additions and 1 deletions
|
|
@ -438,7 +438,10 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
|
|||
int current = getPlayersCount(tableView);
|
||||
if (current != count) {
|
||||
if (count > 0) {
|
||||
if (current > count) {
|
||||
if (current == tableView.getSeats().size()) {
|
||||
MageTray.instance.displayMessage("The game can start.");
|
||||
AudioManager.playGameCanStart();
|
||||
} else if (current > count) {
|
||||
MageTray.instance.displayMessage("New player joined your game.");
|
||||
AudioManager.playPlayerJoinedTable();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue