From 964aaf23abb1efc008f00ead93ae00949e6a9b04 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 3 Aug 2012 19:44:48 +0400 Subject: [PATCH] Graveyard dialog auto close on pay message. Usefull for flashback cards. --- Mage.Client/src/main/java/mage/client/game/GamePanel.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage.Client/src/main/java/mage/client/game/GamePanel.java b/Mage.Client/src/main/java/mage/client/game/GamePanel.java index b6e4060151..b5a6b67857 100644 --- a/Mage.Client/src/main/java/mage/client/game/GamePanel.java +++ b/Mage.Client/src/main/java/mage/client/game/GamePanel.java @@ -597,11 +597,13 @@ public class GamePanel extends javax.swing.JPanel { public void playMana(String message, GameView gameView) { updateGame(gameView); + DialogManager.getManager().fadeOut(); this.feedbackPanel.getFeedback(FeedbackMode.CANCEL, message, gameView.getSpecial(), null); } public void playXMana(String message, GameView gameView) { updateGame(gameView); + DialogManager.getManager().fadeOut(); this.feedbackPanel.getFeedback(FeedbackMode.CONFIRM, message, gameView.getSpecial(), null); } @@ -610,6 +612,7 @@ public class GamePanel extends javax.swing.JPanel { } public void pickAbility(AbilityPickerView choices) { + DialogManager.getManager().fadeOut(); this.abilityPicker.show(choices, MageFrame.getDesktop().getMousePosition()); }