mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
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
|
|
@ -7,6 +7,7 @@ import java.awt.geom.Rectangle2D;
|
|||
*/
|
||||
public enum ArtRect {
|
||||
NORMAL(new Rectangle2D.Double(.079f, .11f, .84f, .42f)),
|
||||
RETRO(new Rectangle2D.Double(.12f, .11f, .77f, .43f)),
|
||||
AFTERMATH_TOP(new Rectangle2D.Double(0.075, 0.113, 0.832, 0.227)),
|
||||
AFTERMATH_BOTTOM(new Rectangle2D.Double(0.546, 0.562, 0.272, 0.346)),
|
||||
SPLIT_LEFT(new Rectangle2D.Double(0.152, 0.539, 0.386, 0.400)),
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ public abstract class ExpansionSet implements Serializable {
|
|||
// TODO: find or implement really full art in m15 render mode (without card name header)
|
||||
public static final CardGraphicInfo NORMAL_ART = null;
|
||||
public static final CardGraphicInfo NON_FULL_USE_VARIOUS = new CardGraphicInfo(null, true); // TODO: rename to NORMAL_ART_USE_VARIOUS
|
||||
public static final CardGraphicInfo RETRO_ART = new CardGraphicInfo(FrameStyle.RETRO, false);
|
||||
public static final CardGraphicInfo RETRO_ART_USE_VARIOUS = new CardGraphicInfo(FrameStyle.RETRO, true);
|
||||
public static final CardGraphicInfo FULL_ART = new CardGraphicInfo(FrameStyle.MPOP_FULL_ART_BASIC, false);
|
||||
public static final CardGraphicInfo FULL_ART_USE_VARIOUS = new CardGraphicInfo(FrameStyle.MPOP_FULL_ART_BASIC, true);
|
||||
|
||||
|
|
@ -138,6 +140,13 @@ public abstract class ExpansionSet implements Serializable {
|
|||
&& this.graphicInfo.getFrameStyle() != null
|
||||
&& this.graphicInfo.getFrameStyle().isFullArt();
|
||||
}
|
||||
|
||||
public boolean isRetroFrame() {
|
||||
return this.graphicInfo != null
|
||||
&& this.graphicInfo.getFrameStyle() != null
|
||||
&& (this.graphicInfo.getFrameStyle() == FrameStyle.RETRO
|
||||
|| this.graphicInfo.getFrameStyle() == FrameStyle.LEA_ORIGINAL_DUAL_LAND_ART_BASIC);
|
||||
}
|
||||
}
|
||||
|
||||
private enum ExpansionSetComparator implements Comparator<ExpansionSet> {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,11 @@ public enum FrameStyle {
|
|||
/**
|
||||
* Original Dual lands (box pattern in the text box)
|
||||
*/
|
||||
LEA_ORIGINAL_DUAL_LAND_ART_BASIC(BorderType.M15, false);
|
||||
LEA_ORIGINAL_DUAL_LAND_ART_BASIC(BorderType.OLD, false),
|
||||
/**
|
||||
* Retro frame
|
||||
*/
|
||||
RETRO(BorderType.OLD, false);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue