mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Displaying tooltips over card choice dialogs
This commit is contained in:
parent
0f15fd1186
commit
8f0159d706
1 changed files with 7 additions and 9 deletions
|
|
@ -34,14 +34,6 @@
|
||||||
|
|
||||||
package mage.client.dialog;
|
package mage.client.dialog;
|
||||||
|
|
||||||
import java.awt.Point;
|
|
||||||
import java.awt.event.MouseEvent;
|
|
||||||
import java.awt.event.MouseListener;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import javax.swing.JLayeredPane;
|
|
||||||
import javax.swing.SwingUtilities;
|
|
||||||
|
|
||||||
import mage.cards.CardDimensions;
|
import mage.cards.CardDimensions;
|
||||||
import mage.client.MageFrame;
|
import mage.client.MageFrame;
|
||||||
import mage.client.cards.BigCard;
|
import mage.client.cards.BigCard;
|
||||||
|
|
@ -52,6 +44,12 @@ import mage.client.util.gui.GuiDisplayUtil;
|
||||||
import mage.view.CardsView;
|
import mage.view.CardsView;
|
||||||
import mage.view.SimpleCardsView;
|
import mage.view.SimpleCardsView;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import java.awt.event.MouseListener;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com
|
||||||
*/
|
*/
|
||||||
|
|
@ -76,7 +74,7 @@ public class ShowCardsDialog extends MageDialog implements MouseListener {
|
||||||
this.title = name;
|
this.title = name;
|
||||||
cardArea.loadCards(showCards, bigCard, dimension, gameId, this);
|
cardArea.loadCards(showCards, bigCard, dimension, gameId, this);
|
||||||
if (getParent() != MageFrame.getDesktop() /*|| this.isClosed*/) {
|
if (getParent() != MageFrame.getDesktop() /*|| this.isClosed*/) {
|
||||||
MageFrame.getDesktop().add(this, JLayeredPane.POPUP_LAYER);
|
MageFrame.getDesktop().add(this, JLayeredPane.DEFAULT_LAYER);
|
||||||
}
|
}
|
||||||
pack();
|
pack();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue