'missing card' images for small cards from an active game update after downloading images
parent
76ece70b24
commit
10d19d67fa
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue