use of mage.cards.action.TransferData in project mage by magefree.
the class CardPanel method mouseEntered.
@Override
public void mouseEntered(MouseEvent e) {
if (callback == null) {
return;
}
if (getGameCard().hideInfo()) {
return;
}
if (!tooltipShowing) {
synchronized (this) {
if (!tooltipShowing) {
// TODO: remove tooltip showing to callback processing code, not here
TransferData transferData = getTransferDataForMouseEntered();
if (this.isShowing()) {
tooltipShowing = true;
callback.mouseEntered(e, transferData);
}
}
}
}
}
Aggregations