mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
hook up the downloaded morph image to display on the battlefield
This commit is contained in:
@@ -1020,7 +1020,7 @@ public final class CardUtil {
|
|||||||
ret.setName("");
|
ret.setName("");
|
||||||
ret.setType(types);
|
ret.setType(types);
|
||||||
|
|
||||||
ret.setImageFilename("morph");
|
ret.setImageName(NewConstants.MORPH_IMAGE_FILE_NAME);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ public class ImageCache {
|
|||||||
*/
|
*/
|
||||||
private static String getKey(final Card card) {
|
private static String getKey(final Card card) {
|
||||||
|
|
||||||
if (card.isToken() && !card.isCopiedToken()) {
|
if ((card.isToken() && !card.isCopiedToken()) || card.isFaceDown()) {
|
||||||
return GuiDisplayUtil.cleanString(card.getImageName()) + ImageCache.TOKEN;
|
return GuiDisplayUtil.cleanString(card.getImageName()) + ImageCache.TOKEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,8 @@ public final class NewConstants {
|
|||||||
public static final String NAME_MUTATOR = "name-mutator";
|
public static final String NAME_MUTATOR = "name-mutator";
|
||||||
/** Constant <code>BOOSTERDATA="boosterdata"</code>. */
|
/** Constant <code>BOOSTERDATA="boosterdata"</code>. */
|
||||||
public static final String BOOSTERDATA = "boosterdata";
|
public static final String BOOSTERDATA = "boosterdata";
|
||||||
|
/** The file name of the image for face down cards on the battlefield. */
|
||||||
|
public static final String MORPH_IMAGE_FILE_NAME = "morph";
|
||||||
|
|
||||||
/** The MTG_DATA. */
|
/** The MTG_DATA. */
|
||||||
public static final String MTG_DATA = "mtg-data";
|
public static final String MTG_DATA = "mtg-data";
|
||||||
|
|||||||
Reference in New Issue
Block a user