Reverted ImageCache to fix slow down in game when no card images are present.

DeckEditor and QuestDeckEditor now attempts to display the most recent printing of the card. Loading DeckEditor screens will take longer as it does the set sorting.
If set image can't be found, attempt to load from pics folder. If that can't be found, attempt to load none.jpg. (get none.jpg from Set Image thread)
This commit is contained in:
jendave
2011-08-06 12:23:16 +00:00
parent 6eb519bb50
commit ebff38b055
7 changed files with 127 additions and 8 deletions

View File

@@ -2383,6 +2383,7 @@ public class GameAction {
card.setRandomPicture(generator.nextInt(n));
if ((card.getSets().size() > 0) && card.getCurSetCode().equals(""))
card.setRandomSetCode();
card.setImageFilename(CardUtil.buildFilename(card));
//System.out.println("human random number:" + card.getRandomPicture());
//}
@@ -2465,6 +2466,7 @@ public class GameAction {
}
ManaPool mp = AllZone.ManaPool;
mp.setImageFilename("mana_pool");
AllZone.Human_Play.add(mp);
//ButtonUtil.reset();