Search in sources :

Example 1 with TransferData

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);
                }
            }
        }
    }
}
Also used : TransferData(mage.cards.action.TransferData)

Aggregations

TransferData (mage.cards.action.TransferData)1