From 8598f9ead12f76dbcc505683ab7a82ab67fe04d7 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Tue, 17 Jul 2012 14:18:38 +0400 Subject: [PATCH] Displaying tray message on player join and quit events --- .../src/main/java/mage/client/components/tray/MageTray.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mage.Client/src/main/java/mage/client/components/tray/MageTray.java b/Mage.Client/src/main/java/mage/client/components/tray/MageTray.java index 9bc0004db8..595c9d42d4 100644 --- a/Mage.Client/src/main/java/mage/client/components/tray/MageTray.java +++ b/Mage.Client/src/main/java/mage/client/components/tray/MageTray.java @@ -157,4 +157,10 @@ public class MageTray { state = 3; } } + + public void displayMessage(String message) { + if (trayIcon != null) { + trayIcon.displayMessage("Mage", message, TrayIcon.MessageType.INFO); + } + } }