[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 @@ icon: card-sample.png
installer group: magic/m15 style/promotional/dark ascension
position hint: 089
version: 2020-03-20
version: 2024-09-01
depends on:
package: magic.mse-game
version: 2014-06-25
@@ -14,11 +14,8 @@ depends on:
package: magic-default-image.mse-include
version: 2007-09-23
depends on:
package: magic-watermarks.mse-include
version: 2007-09-23
depends on:
package: magic-identity-new.mse-include
version: 2012-01-22
package: magic-modules.mse-include
version: 2024-05-20
depends on:
package: magic-mana-large.mse-symbol-font
version: 2007-09-23
@@ -57,12 +54,9 @@ init script:
has_identity_2 := { false }
ancestral_mana := { styling.ancestral_mana_symbols }
bar_offset := {if styling_offset() == "-" then 0 else if styling_offset() != "" then -styling_offset() else 0}
styling_offset := { replace(styling.flavor_bar_offset, match:"(u|d)+", replace: "") }
offset_lines := {offset_counter(styling.flavor_bar_offset)}
shrink_type := {if styling.shrink_typeline_text != "" then to_int(styling.shrink_typeline_text) else 0 }
shrink_name := {if styling.shrink_name_text != "" then to_int(styling.shrink_name_text) else 0 }
watermark_include := "/magic-modules.mse-include/watermarks"
############################################################## Set info fields
set info style:
symbol:
@@ -81,10 +75,6 @@ styling field:
type: text
name: chop bottom
description: Shrinks the textbox from the bottom.
styling field:
type: text
name: flavor bar offset
description: Move the flavor bar up X pixels. Use negative to move down.
styling field:
type: text
name: shrink name text
@@ -98,6 +88,7 @@ styling field:
name: ancestral mana symbols
description: Enables ancestral's modified generic mana.
initial: no
include file: /magic-modules.mse-include/rarities/styling_fields
styling field:
type: boolean
name: grey hybrid name
@@ -175,6 +166,9 @@ 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/watermarks/card_fields
include file: /magic-modules.mse-include/separators/card_fields
card style:
############################# Background stuff
border color:
@@ -247,13 +241,13 @@ card style:
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 4
z index: 900
padding left: 6
padding right: 4
line height hard: 1.2
line height hard: {if is_modal(card.rule_text) then 0.9 else 1.2 }
line height line: 1.5
line height soft: 0.9
line height hard max: 1.3
line height hard max: {if is_modal(card.rule_text) then 1.0 else 1.3 }
line height line max: 1.6
############################# PT
power:
@@ -292,9 +286,9 @@ card style:
weight: bold
############################# Copyright stuff
illustrator:
left: 165
left: 150
top: 490
width: 80
width: 95
height: 10
z index: 5
font:
@@ -318,11 +312,7 @@ extra card field:
type: text
name: card code
save value: false
script:
if set.automatic_card_numbers then
forward_editor(prefix: card_number_m15() + "/" + card_count_m15() + " " + " ", field: card.card_code_text)
else
combined_editor(field1: card.custom_card_number, separator: " " + " ", field2: card.card_code_text)
script: card_code_script()
extra card field:
type: choice
name: artist arrow
@@ -330,9 +320,9 @@ extra card field:
save value: false
choice: white
extra card field:
type: choice
name: pt box
script: card.card_color
type: text
name: auto copyright
script: set.copyright
editable: false
save value: false
extra card field:
@@ -373,20 +363,6 @@ extra card field:
save value: false
script: forward_editor(field:card.toughness)
description: The life modifier for the card
extra card field:
type: choice
name: flavor bar
choice: bar
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 style:
card code:
@@ -401,19 +377,31 @@ extra card style:
color: white
weight: bold
artist arrow:
left: 151
left: 134
top: 492
width: 12
height: 7
z index: 5
render style: image
image: artist_arrow.png
auto copyright:
right: 350
top: 500
width: {if set.automatic_copyright then 0 else 140}
height: 10
z index: 5
alignment: middle right shrink-overflow
font:
name: Relay-Medium
size: 7
color: white
weight: bold
foil layer:
left: 0
top : 0
width: 375
height: 523
z index: 3
z index: 1050
render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { if is_rare() or styling.stamp then "foil_mask_rare.png" else "foil_mask.png" }
@@ -447,24 +435,3 @@ extra card style:
name: Beleren Bold
size: 16
color: black
flavor bar:
left: 0
top: { bar_equation() }
width: 375
height: 1
z index: 1
render style: image
image: bar.png
visible: { card.rule_text != "" and remove_tags(card.flavor_text) != "" and set.use_flavor_bar }
auto copyright:
right: 350
top: 500
width: {if set.automatic_copyright then 0 else 140}
height: 10
z index: 5
alignment: middle right shrink-overflow
font:
name: Relay-Medium
size: 7
color: white
weight: bold