Replaced mouseClicked by mousePressed everywhere (works betters). Rebuild everything.

This commit is contained in:
magenoxx 2010-12-04 09:02:57 +00:00
parent 4c8344a8fd
commit fe3903d825
8 changed files with 22 additions and 11 deletions

View file

@ -37,7 +37,6 @@ import org.apache.log4j.Logger;
import org.mage.card.arcane.ScaledImagePanel.MultipassType;
import org.mage.card.arcane.ScaledImagePanel.ScalingType;
import org.mage.plugins.card.images.ImageCache;
import org.mage.plugins.card.utils.BufferedImageBuilder;
import org.mage.plugins.card.utils.ImagePanel;
import org.mage.plugins.card.utils.impl.ImageManagerImpl;
@ -558,10 +557,6 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
@Override
public void mouseClicked(MouseEvent e) {
data.component = this;
data.card = this.gameCard;
data.gameId = this.gameId;
callback.mouseClicked(e, data);
}
@Override
@ -602,7 +597,12 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
}
@Override
public void mousePressed(MouseEvent e) {}
public void mousePressed(MouseEvent e) {
data.component = this;
data.card = this.gameCard;
data.gameId = this.gameId;
callback.mousePressed(e, data);
}
@Override
public void mouseReleased(MouseEvent e) {}

View file

@ -30,6 +30,10 @@ public class RateCallback implements ActionCallback {
@Override
public void mouseClicked(MouseEvent arg0, TransferData arg1) {
}
@Override
public void mousePressed(MouseEvent arg0, TransferData arg1) {
this.callback.reportResult(card1, card2);
}

View file

@ -75,8 +75,6 @@ public class RateFrame extends JFrame {
}
});
add(rate);
System.out.println("test");
}
public void startRating() {