mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Tooltip window - Window is not forced to close as game state is updated.
This commit is contained in:
parent
cec37305da
commit
982b95d47a
2 changed files with 8 additions and 1 deletions
|
@ -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<String, Serializable> options) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue