Advanced card image loading: thumbnails (slow on first run). Updated mage-card-plugin. Disabled foil cards.

This commit is contained in:
magenoxx 2011-05-11 17:17:15 +04:00
parent 539cf2552f
commit 6e3a7ede39
6 changed files with 52 additions and 9 deletions

View file

@ -90,6 +90,7 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener,
i.remove();
}
}
System.gc();
drawCards(sortBy, piles);
this.setVisible(true);
}
@ -189,10 +190,12 @@ public class CardGrid extends javax.swing.JLayeredPane implements MouseListener,
if (comp instanceof Card) {
if (((Card)comp).getCardId().equals(cardId)) {
remove(comp);
comp = null;
}
} else if (comp instanceof MageCard) {
if (((MageCard)comp).getOriginal().getId().equals(cardId)) {
remove(comp);
comp = null;
}
}
}