'missing card' images for small cards from an active game update after downloading images

master
wait321 2011-10-01 07:25:56 -07:00
parent 76ece70b24
commit 10d19d67fa
2 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public class DownloadImagesDialog extends JDialog implements Runnable,ActionList
private static final String DOWNLOAD_IMAGES_FILENAME="images.txt";
private final MagicFrame frame;
private final DownloadImageFiles files;
private final JComboBox proxyComboBox;
private final JTextField addressTextField;
@ -44,6 +45,7 @@ public class DownloadImagesDialog extends JDialog implements Runnable,ActionList
public DownloadImagesDialog(final MagicFrame frame) {
super(frame,true);
this.frame = frame;
this.setLayout(new BorderLayout());
this.setTitle("Download images");
this.setSize(300,405);
@ -175,6 +177,7 @@ public class DownloadImagesDialog extends JDialog implements Runnable,ActionList
// clear images that are set to "missing image" in cache
magic.data.HighQualityCardImagesProvider.getInstance().clearCache();
frame.updateGameView();
IconImages.reloadSymbols();

View File

@ -514,6 +514,12 @@ public class MagicFrame extends JFrame implements ActionListener {
enableMenuItem(RESET_GAME_ITEM,true);
enableMenuItem(CONCEDE_GAME_ITEM,true);
}
public void updateGameView() {
if(gamePanel != null) {
gamePanel.updateView();
}
}
private void openCardExplorer() {
enableMenuItem(CARD_EXPLORER_ITEM,false);