[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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -6,13 +6,13 @@ installer group: magic/Future/Normal cards
icon: card-sample.png
position hint: 073
version: 2018-06-01
version: 2024-06-06
depends on:
package: magic.mse-game
version: 2008-06-02
depends on:
package: magic-watermarks.mse-include
version: 2007-09-23
package: magic-modules.mse-include
version: 2024-05-20
depends on:
package: magic-future-common.mse-include
version: 2008-05-21
@@ -37,7 +37,13 @@ init script:
mask_multi_land_with_color := { styling.colored_multicolor_land_name }
template_suffix := [card: "card.jpg", pt: "pt.png", textbox: "textbox.png", typeline: "typeline.png" stamp: "stamp.jpg"]
template_suffix := [
card: "card.jpg",
pt: "pt.png",
textbox: "textbox.png",
typeline: "typeline.png"
stamp: "stamp.jpg"
]
template := { input + template_suffix[type] }
land_template := { (if input == "a" then "c" else input) + "l" + template_suffix[type] }
@@ -118,16 +124,11 @@ init script:
card_shape := { if styling.shifted_sorting then "shifted" else "normal" }
is_unsorted := {styling.remove_from_autocount}
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}
un_png := replace@(match:".png", replace: "")
chop_top := {if styling.chop_top == "" then 0 else if comma_count(styling.chop_top) == "," or comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).0 else styling.chop_top}
chop_bot := {if comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).1 else if styling.chop_bottom == "" then 0 else styling.chop_bottom}
# alternate rarity color
alt_rarity := {styling.alt_rarity_color}
card_stamp_offset_top_1 := {2}
watermark_include := "/magic-modules.mse-include/watermarks"
############################################################## Set info fields
set info style:
symbol:
@@ -146,10 +147,6 @@ styling field:
type: text
name: chop bottom
description: Shrinks the textbox X pixels from the bottom.
styling field:
type: boolean
name: use holofoil stamps
description: Change to no to disable rare holofoil stamps
styling field:
type: boolean
name: original symbols
@@ -160,10 +157,7 @@ styling field:
name: beleren
description: Should these cards use Beleren or the original font?
initial: yes
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
include file: /magic-modules.mse-include/rarities/styling_fields
styling field:
type: boolean
name: shifted sorting
@@ -241,6 +235,11 @@ styling style:
no: { symbol_variation(symbol: set.symbol, variation: "common") }
yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") }
############################################################## Card fields
include file: /magic-modules.mse-include/corners/card_fields
include file: /magic-modules.mse-include/information/card_fields
include file: /magic-modules.mse-include/stamps/card_fields
include file: /magic-modules.mse-include/watermarks/card_fields
include file: /magic-modules.mse-include/separators/card_fields
card style:
############################# Background stuff
border color:
@@ -248,13 +247,12 @@ card style:
top : 0
width: 375
height: 523
radius: 18
left width: 17
right width: 17
top width: 17
bottom width: 18
mask: bordermask.png
z index: 3
z index: 500
card color:
left: 0
top: 0
@@ -272,7 +270,7 @@ card style:
height: 26
alignment: middle shrink-overflow
padding bottom: 0
z index: 4
z index: 900
font:
name: { if styling.beleren then "Beleren" else "Matrix" }
size: { if styling.beleren then "16" else "18" }
@@ -310,24 +308,24 @@ card style:
scale down to: 22
alignment: bottom right
always symbol: true
z index: 4
z index: 920
padding top: 0
mask: costmask.png
card symbol:
left: {if card.card_symbol=="none" then 50 else 67}
left: {if card.card_symbol=="none" then 50 else 63}
top : 31
height: 20
width: 14
z index: 4
height: 21
width: 23
z index: 840
render style: image
choice images:
tombstone: tombstone.png
include file: /magic.mse-game/card-symbols/menu_choice_images
image: { card_symbol_image(face: 1) }
type symbol:
left: 24
top: 24
width: 21
height: 20
z index: 3
z index: 840
render style: image
choice images:
artifact: { if styling.original_symbols then "/magic-future-common.mse-include/artifact_" + typesymbol_color(value) + ".png" }
@@ -344,7 +342,7 @@ card style:
top: 44
width: 328
height: 309
z index: 1
z index: 100
mask: mask_image.png
############################# Card type
type:
@@ -353,7 +351,7 @@ card style:
width: { 300 - max(21,card_style.rarity.content_width) }
height: 20
alignment: middle shrink-overflow
z index: 4
z index: 900
padding top: 2
font:
name: { if styling.beleren then "Beleren" else "Matrix" }
@@ -385,47 +383,10 @@ card style:
top : 303
width: 22
height: 22
z index: 4
z index: 950
alignment: middle right
render style: image
choice images:
# Images based on the set symbol
basic land:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
else if use_alt_rarity() then alt_symbol()
else if styling.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 "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
else if use_alt_rarity() then alt_symbol()
else if styling.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 "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "u.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "uncommon")
rare:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "r.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "rare")
mythic rare:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "m.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
special:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "s.png"
else if use_alt_rarity() then alt_symbol()
else symbol_variation(symbol: set.symbol, variation: "special")
masterpiece:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "mp.png"
else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
include file: /magic-modules.mse-include/rarities/choice_images
############################# Text box
text:
left: 36
@@ -454,7 +415,7 @@ card style:
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 4
z index: 900
padding left: 6
padding top: 2
padding right: 4
@@ -462,18 +423,9 @@ card style:
line height hard: 1.2
line height soft: 0.9
line height line: 1.5
watermark:
left: 32
top : 321
width: 309
height: 152
z index: 3
render style: image
alignment: middle center
include file: /magic-watermarks.mse-include/watermarks
############################# PT
pt:
z index: 5
z index: 900
left: 287
top: 469
width: 60
@@ -503,40 +455,6 @@ card style:
else if contains(card.card_color, match:"hybrid") and contains(card.card_color, match:"white") then rgb(0,0,0)
else font_color(card.card_color)
separator color: rgb(200,0,0)
############################# Card sorting / numbering
set code:
left: 24
top: 498
width: 40
height: 10
z index: 4
font:
name: Relay-Medium
size: 7
color: white
weight: bold
############################# Copyright stuff
illustrator:
left: { 44 + card_style.set_code.content_width }
top : 497.5
width: 200
height: 10
z index: 4
font:
name: Beleren Small Caps Bold
size: 7.5
color: white
copyright:
right: 350
top : { if card.pt != "" then 504 else 488 }
width: {if set.automatic_copyright then 0 else 140}
height: 10
alignment: bottom right
z index: 4
font:
name: Matrix
size: 7
color: white
############################################################## Extra card fields
extra card field:
type: choice
@@ -568,12 +486,6 @@ extra card field:
choice: foil
save value: false
editable: false
extra card field:
type: choice
name: artist arrow
choice: artist arrow
editable: false
save value: false
extra card field:
type: choice
name: flavor bar
@@ -581,22 +493,6 @@ extra card field:
editable: false
save value: false
show statistics: false
extra card field:
type: text
name: auto copyright
script: set.copyright
save value: false
editable: false
show statistics: false
extra card field:
type: text
name: card code
save value: false
script:
if set.automatic_card_numbers and not styling.remove_from_autocount then
forward_editor(prefix: card_number_m15() + "/" + card_count_m15() + " " + rarity_code() + " ", field: card.card_code_text)
else
combined_editor(field1: card.custom_card_number, separator: " " + rarity_code() + " ", field2: card.card_code_text)
extra card field:
type: choice
name: future node
@@ -615,12 +511,6 @@ extra card field:
choice: aetherprint
choice: none
description: The card type symbol for this card
extra card field:
type: choice
name: foil stamp
choice: stamp
save value: false
editable: false
extra card field:
type: text
name: vorthos box
@@ -628,17 +518,6 @@ extra card field:
editable: true
description: Where they put mtgstory.com on story spotlights.
extra card style:
card code:
left: 24
top: 488
width: 120
height: 10
z index: 4
font:
name: Relay-Medium
size: 7
color: white
weight: bold
textbox:
left: 23
top: 320
@@ -647,7 +526,7 @@ extra card style:
render style: image
popup style: in place
image: { card_textbox() }
z index: 2
z index: 600
typeline:
left: 18
top: 17
@@ -656,30 +535,22 @@ extra card style:
render style: image
popup style: in place
image: { card_typeline() }
z index: 3
z index: 610
pt box:
left: 285
top: 452
width: 70
height: 52
z index: 4
z index: 840
visible: { card.pt != "" }
render style: image
image: { card_ptbox() }
artist arrow:
left: { 28 + card_style.set_code.content_width }
top : 500
width: 12
height: 7
z index: 4
render style: image
image: artist_arrow.png
foil layer:
left: 0
top : 0
width: 375
height: 523
z index: 6
z index: 1050
render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
future node:
@@ -687,60 +558,28 @@ extra card style:
top: { if styling.original_symbols then 0 else 18 }
width: { if styling.original_symbols then 0 else 30 }
height: { if styling.original_symbols then 0 else 30 }
z index: 4
z index: 620
render style: image
choice images:
artifact: artifact.png
creature: creature.png
enchantment: enchantment.png
fortress: fortress.png
instant: instant.png
land: land.png
multitype: multitype.png
sorcery: sorcery.png
planeswalker: planeswalker.png
aetherprint: aetherprint.png
artifact: symbols/artifact.png
creature: symbols/creature.png
enchantment: symbols/enchantment.png
fortress: symbols/fortress.png
instant: symbols/instant.png
land: symbols/land.png
multitype: symbols/multitype.png
sorcery: symbols/sorcery.png
planeswalker: symbols/planeswalker.png
aetherprint: symbols/aetherprint.png
stamp:
left: 170
top: 472
width: 36.5
height: 22.5
z index: 3
visible: { is_rare() and styling.use_holofoil_stamps}
left: 165
top: 474
width: 46
height: 26
visible: {card.card_stamp != "none"}
render style: image
mask: futurestampmask.png
image: { card_stamp() }
foil stamp:
left: 170
top: 475
width: 36.5
height: 22.5
z index: 4
visible: { is_rare() and styling.use_holofoil_stamps}
render style: image
image: foil_stamp.png
auto copyright:
right: 350
top: { if card.pt != "" then 504 else 488 }
width: 140
height: 10
z index: 4
alignment: middle right shrink-overflow
visible: {set.automatic_copyright}
font:
name: Matrix
size: 7
color: white
weight: bold
flavor bar:
left: 0
top: { bar_equation() }
width: 375
height: 1
z index: 3
render style: image
image: bar.png
visible: { card.rule_text != "" and remove_tags(card.flavor_text) != "" and set.use_flavor_bar }
z index: 850
image: { "/magic-modules.mse-include/stamps/backs/" + (if stamp_shape() == "triangle" then "triangle_" else "") + "stamp.png" }
vorthos box:
right: { if card.pt != "" then 275 else 350 }
top: 488

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB