forked from External/mage
Feature: Retro Border Renderer (#13563)
* Add Retro Card Renderer * Updated old sets with retro frames Adds sets: * 30th Anniversary Play Promos * 30th Anniversary Misc Promos * Eternal Weekend * MagicFest 2025 * Modern Horizon 2 Timeshifts
This commit is contained in:
parent
36196742ad
commit
e34ebe740e
151 changed files with 16549 additions and 14836 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package org.mage.card.arcane;
|
||||
|
||||
import mage.cards.FrameStyle;
|
||||
import mage.client.dialog.PreferencesDialog;
|
||||
import mage.view.CardView;
|
||||
|
||||
/**
|
||||
|
|
@ -13,6 +15,8 @@ public class CardRendererFactory {
|
|||
public CardRenderer create(CardView card) {
|
||||
if (card.isSplitCard()) {
|
||||
return new ModernSplitCardRenderer(card);
|
||||
} else if (card.getFrameStyle().equals(FrameStyle.RETRO) || card.getFrameStyle().equals(FrameStyle.LEA_ORIGINAL_DUAL_LAND_ART_BASIC) || PreferencesDialog.getRenderRetroFrames()) {
|
||||
return new RetroCardRenderer(card);
|
||||
} else {
|
||||
return new ModernCardRenderer(card);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -318,7 +318,8 @@ public class ModernCardRenderer extends CardRenderer {
|
|||
} else if (isUnstableFullArtLand()) {
|
||||
rect = new Rectangle2D.Float(.0f, .0f, 1.0f, 1.0f);
|
||||
} else if (cardView.getArtRect() == ArtRect.FULL_LENGTH_LEFT ||
|
||||
cardView.getArtRect() == ArtRect.FULL_LENGTH_RIGHT) {
|
||||
cardView.getArtRect() == ArtRect.FULL_LENGTH_RIGHT ||
|
||||
cardView.getArtRect() == ArtRect.RETRO) {
|
||||
rect = cardView.getArtRect().rect;
|
||||
} else if (cardView.getFrameStyle().isFullArt() || (cardView.isToken())) {
|
||||
rect = new Rectangle2D.Float(.079f, .11f, .84f, .63f);
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -543,6 +543,9 @@ public class ScryfallImageSupportCards {
|
|||
add("MAT"); // March of the Machine: The Aftermath
|
||||
add("MUL"); // Multiverse Legends
|
||||
add("30A"); // 30th Anniversary Edition
|
||||
add("P30A"); // 30th Anniversary Play Promos
|
||||
add("P30M"); // 30th Anniversary Misc Promos
|
||||
add("PEWK"); // Eternal Weekend
|
||||
add("LTR"); // The Lord of the Rings: Tales of Middle-Earth
|
||||
add("LTC"); // Tales of Middle-Earth Commander
|
||||
add("CMM"); // Commander Masters
|
||||
|
|
@ -577,6 +580,7 @@ public class ScryfallImageSupportCards {
|
|||
add("PIO"); // Pioneer Masters
|
||||
add("PW25"); // Wizards Play Network 2025
|
||||
add("INR"); // Innistrad Remastered
|
||||
add("PF25"); // MagicFest 2025
|
||||
add("DFT"); // Aetherdrift
|
||||
add("DRC"); // Aetherdrift Commander
|
||||
add("TDM"); // Tarkir: Dragonstorm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue