forked from External/mage
add tray message on match start if window inactive
This commit is contained in:
parent
4d53ee0ea5
commit
2ec532b157
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ import mage.client.components.KeyboundButton;
|
|||
import mage.client.components.MageComponents;
|
||||
import mage.client.components.ext.dlg.DialogManager;
|
||||
import mage.client.components.layout.RelativeLayout;
|
||||
import mage.client.components.tray.MageTray;
|
||||
import mage.client.dialog.*;
|
||||
import mage.client.dialog.CardInfoWindowDialog.ShowType;
|
||||
import mage.client.game.FeedbackPanel.FeedbackMode;
|
||||
|
|
@ -501,6 +502,10 @@ public final class GamePanel extends javax.swing.JPanel {
|
|||
} else {
|
||||
// play start sound
|
||||
AudioManager.playYourGameStarted();
|
||||
if (!AppUtil.isAppActive()) {
|
||||
MageTray.instance.displayMessage("Your match has started!");
|
||||
MageTray.instance.blink();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue