forked from External/mage
Some changes to Morph card image display.
This commit is contained in:
parent
30d112e0bf
commit
c3fba626a2
3 changed files with 27 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package org.mage.plugins.card.images;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author North
|
||||
|
|
@ -68,7 +70,7 @@ public class CardDownloadData {
|
|||
if ((this.set == null) ? (other.set != null) : !this.set.equals(other.set)) {
|
||||
return false;
|
||||
}
|
||||
if (this.collectorId != other.collectorId && (this.collectorId == null || !this.collectorId.equals(other.collectorId))) {
|
||||
if (!Objects.equals(this.collectorId, other.collectorId) && (this.collectorId == null || !this.collectorId.equals(other.collectorId))) {
|
||||
return false;
|
||||
}
|
||||
if (this.token != other.token) {
|
||||
|
|
|
|||
|
|
@ -130,7 +130,15 @@ public class ImageCache {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public static BufferedImage getMorphImage() {
|
||||
CardDownloadData info = new CardDownloadData("Morph", "KTK", 0, false, 0, "KTK");
|
||||
info.setToken(true);
|
||||
String path = CardImageUtils.generateTokenImagePath(info);
|
||||
TFile file = new TFile(path);
|
||||
return loadImage(file);
|
||||
}
|
||||
|
||||
private static String buildThumbnailPath(String path) {
|
||||
String thumbnailPath;
|
||||
if (PreferencesDialog.isSaveImagesToZip()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue