forked from External/mage
* Fixed a problem that the enlarged card view could stay open after a game or draft were finished.
This commit is contained in:
parent
bd0e288087
commit
070a0ca3fa
5 changed files with 2319 additions and 2305 deletions
|
|
@ -336,7 +336,7 @@ public class DraftPanel extends javax.swing.JPanel {
|
|||
if (view != null) {
|
||||
loadCardsToPickedCardsArea(view.getPicks());
|
||||
draftBooster.loadBooster(EMPTY_VIEW, bigCard);
|
||||
Plugins.getInstance().getActionCallback().hideTooltipPopup();
|
||||
Plugins.getInstance().getActionCallback().hideOpenComponents();
|
||||
setMessage("Waiting for other players");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -419,11 +419,16 @@ public class MageActionCallback implements ActionCallback {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideOpenComponents() {
|
||||
this.hideTooltipPopup();
|
||||
this.hideEnlargedCard();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides the text popup window
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
public void hideTooltipPopup() {
|
||||
this.tooltipCard = null;
|
||||
if (tooltipPopup != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue