From 982b95d47aa19068e70b6d2bdd3987bca6de7efa Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 15 Mar 2014 17:43:31 +0100 Subject: [PATCH] * Tooltip window - Window is not forced to close as game state is updated. --- Mage.Client/src/main/java/mage/client/game/GamePanel.java | 2 +- .../mage/client/plugins/adapters/MageActionCallback.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 2451d6780c..b005cfa313 100644 --- a/Mage.Client/src/main/java/mage/client/game/GamePanel.java +++ b/Mage.Client/src/main/java/mage/client/game/GamePanel.java @@ -743,7 +743,7 @@ public final class GamePanel extends javax.swing.JPanel { private void hideAll() { ActionCallback callback = Plugins.getInstance().getActionCallback(); - ((MageActionCallback)callback).hideAll(gameId); + ((MageActionCallback)callback).hideGameUpdate(gameId); } private ShowCardsDialog showCards(String title, CardsView cards, boolean required, Map options) { diff --git a/Mage.Client/src/main/java/mage/client/plugins/adapters/MageActionCallback.java b/Mage.Client/src/main/java/mage/client/plugins/adapters/MageActionCallback.java index 709afd22be..05c72c82bb 100644 --- a/Mage.Client/src/main/java/mage/client/plugins/adapters/MageActionCallback.java +++ b/Mage.Client/src/main/java/mage/client/plugins/adapters/MageActionCallback.java @@ -345,6 +345,13 @@ public class MageActionCallback implements ActionCallback { } } + public void hideGameUpdate(UUID gameId) { + ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.TARGET); + ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.PAIRED); + ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.SOURCE); + ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.ENCHANT_PLAYERS); + } + public void hideAll(UUID gameId) { hidePopup(); startHideTimeout();