forked from External/mage
GUI: fixed not working card popup near screen border, improved card popup for chat and choose dialogs;
This commit is contained in:
parent
7475ee922a
commit
63290d3ed6
8 changed files with 85 additions and 15 deletions
|
|
@ -7,6 +7,7 @@ import javax.swing.*;
|
|||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
|
||||
import mage.cards.action.TransferData;
|
||||
import mage.choices.Choice;
|
||||
import mage.choices.ChoiceHintType;
|
||||
import mage.client.MageFrame;
|
||||
|
|
@ -238,6 +239,7 @@ public class PickChoiceDialog extends MageDialog {
|
|||
CardView cardView = new CardView(new DungeonView(Dungeon.createDungeon(cardName)));
|
||||
cardInfo.init(cardView, this.bigCard, this.gameId);
|
||||
}
|
||||
cardInfo.setPopupAutoLocationMode(TransferData.PopupAutoLocationMode.PUT_NEAR_MOUSE_POSITION);
|
||||
|
||||
cardInfo.onMouseEntered(MouseInfo.getPointerInfo().getLocation());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue