* Tooltip window - Window is not forced to close as game state is updated.

This commit is contained in:
LevelX2 2014-03-15 17:43:31 +01:00
parent cec37305da
commit 982b95d47a
2 changed files with 8 additions and 1 deletions

View file

@ -743,7 +743,7 @@ public final class GamePanel extends javax.swing.JPanel {
private void hideAll() { private void hideAll() {
ActionCallback callback = Plugins.getInstance().getActionCallback(); ActionCallback callback = Plugins.getInstance().getActionCallback();
((MageActionCallback)callback).hideAll(gameId); ((MageActionCallback)callback).hideGameUpdate(gameId);
} }
private ShowCardsDialog showCards(String title, CardsView cards, boolean required, Map<String, Serializable> options) { private ShowCardsDialog showCards(String title, CardsView cards, boolean required, Map<String, Serializable> options) {

View file

@ -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) { public void hideAll(UUID gameId) {
hidePopup(); hidePopup();
startHideTimeout(); startHideTimeout();