[mage.client] because of slowness, turned off all foil animation for cards except bigCard. Changed range (left and right color offset) of the effect.

This commit is contained in:
magenoxx 2011-01-05 19:12:46 +03:00
parent 5683a8c719
commit b76fa3db0d
3 changed files with 18 additions and 6 deletions

View file

@ -199,13 +199,14 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
public void setFoil(boolean foil) {
this.isFoil = foil;
if (foil) {
/*BufferedImage source = BufferedImageBuilder.bufferImage(imagePanel.getSrcImage());
BufferedImage source = BufferedImageBuilder.bufferImage(imagePanel.getSrcImage());
HueFilter filter = FilterFactory.getHueFilter();
filter.setHue(0.1sf);
filter.setHue(0.1f);
BufferedImage dest = filter.filter(source, null);
imagePanel.setImage(dest);
imagePanel.repaint();*/
imagePanel.repaint();
/*
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
@ -238,7 +239,7 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
});
thread.setDaemon(false);
thread.start();
*/
}
}