[274/274] magic-modules rollout (#51)

Add Magic-Modules support to all frames
This commit is contained in:
cajun
2024-09-10 22:21:23 -05:00
committed by GitHub
parent 65bfc8fcd6
commit 6d617985ce
5491 changed files with 37088 additions and 66467 deletions

View File

@@ -6,7 +6,7 @@ card style:
width: { rarity_width_2() + typeline_offset_height_2() }
height: { rarity_height_2() + typeline_offset_height_2() }
z index: 950
alignment: middle center
alignment: middle right
visible: { (not typeline_disabled_2()) and not rarity_disabled_2() }
render style: image
include file: /magic-modules.mse-include/rarities/choice_images

View File

@@ -6,7 +6,7 @@ card style:
width: { rarity_width_3() + typeline_offset_height_3() }
height: { rarity_height_3() + typeline_offset_height_3() }
z index: 950
alignment: middle center
alignment: middle right
visible: { (not typeline_disabled_3()) and not rarity_disabled_3() }
render style: image
include file: /magic-modules.mse-include/rarities/choice_images

View File

@@ -3,34 +3,34 @@ choice images:
basic land:
script:
if use_main_rarity() then mainframe_rarity("c")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol or else set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if use_main_rarity() then mainframe_rarity("c")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol or else set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon:
script:
if use_main_rarity() then mainframe_rarity("u")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "uncommon")
rare:
script:
if use_main_rarity() then mainframe_rarity("r")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "rare")
mythic rare:
script:
if use_main_rarity() then mainframe_rarity("m")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
special:
script:
if use_main_rarity() then mainframe_rarity("s")
else if alt_rarity() then alt_symbol()
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "special")
masterpiece:
script:

View File

@@ -0,0 +1,58 @@
choice images:
# Images based on the set symbol
basic land:
script:
if use_main_rarity() then mainframe_rarity("c")
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol or else set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if use_main_rarity() then mainframe_rarity("c")
else if use_alt_rarity() then alt_symbol()
else if styling.inverted_common_symbol or else set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon:
script:
if not styling.colored_rarities or else false then (
if use_main_rarity() then mainframe_rarity("c")
else symbol_variation(symbol: set.symbol, variation: "common")
)
else if use_main_rarity() then mainframe_rarity("u")
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "olduncommon")
rare:
script:
if not styling.colored_rarities or else false then (
if use_main_rarity() then mainframe_rarity("c")
else symbol_variation(symbol: set.symbol, variation: "common")
)
else if use_main_rarity() then mainframe_rarity("r")
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "oldrare")
mythic rare:
script:
if not styling.colored_rarities or else false then (
if use_main_rarity() then mainframe_rarity("c")
else symbol_variation(symbol: set.symbol, variation: "common")
)
else if use_main_rarity() then mainframe_rarity("m")
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
special:
script:
if not styling.colored_rarities or else false then (
if use_main_rarity() then mainframe_rarity("c")
else symbol_variation(symbol: set.symbol, variation: "common")
)
else if use_main_rarity() then mainframe_rarity("s")
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "special")
masterpiece:
script:
if not styling.colored_rarities or else false then (
symbol_variation(symbol: set.masterpiece_symbol, variation: "common")
)
else if use_main_rarity() then mainframe_rarity("mp")
else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")

View File

@@ -17,6 +17,10 @@ include file: /magic-modules.mse-include/rarities/card_fields_tfc
#### and another to further tweak the positioning of the rarity symbol.
include file: /magic-modules.mse-include/rarities/styling_fields
#### Inverted common and olduncommon/oldrare can be added with these after the styling fields
include file: /magic-modules.mse-include/rarities/set_info
include file: /magic-modules.mse-include/rarities/set_info_old
#### Default Field Placement (@375x523, w=1 h=1)
rarity:
left: 317w

View File

@@ -0,0 +1,8 @@
set info style:
symbol:
variation:
name: invertedcommon
border radius: 0.10
fill type: solid
fill color: rgb(255,255,255)
border color: rgb(0,0,0)

View File

@@ -0,0 +1,18 @@
set info style:
symbol:
variation:
name: olduncommon
border radius: 0.10
fill type: linear gradient
fill color 1: rgb(224,224,224)
fill color 2: rgb(84, 84, 84)
border color 1: rgb(255,255,255)
border color 2: rgb(255,255,255)
variation:
name: oldrare
border radius: 0.10
fill type: linear gradient
fill color 1: rgb(214,196,94)
fill color 2: rgb(95, 84, 40)
border color 1: rgb(255,255,255)
border color 2: rgb(255,255,255)

View File

@@ -2,6 +2,10 @@ styling field:
type: text
name: alt rarity color
description: Use a custom color for the rarity symbol. Formatted as "R1,G1,B1:R2,G2,B2:...:X:" 1 and 2 are fill color, 3 and 4 border color, X is border thickness. For example, rare is 214,196,94:95,84,40:0,0,0:0,0,0:0.07
styling field:
type: text
name: mainframe_rarity_name
description: Use an alternate rarity symbol png from magic-mainframe-extras for this template.
styling field:
type: text
name: rarity offsets