[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

@@ -7,7 +7,7 @@ icon: card-sample.png
installer group: magic/silvercut/AgClassic/Normal
position hint: 380
version: 2016-01-17
version: 2024-05-30
depends on:
package: magic.mse-game
version: 2008-06-02
@@ -23,6 +23,9 @@ depends on:
depends on:
package: magic-mana-agshadow.mse-symbol-font
version: 2015-12-28
depends on:
package: magic-modules.mse-include
version: 2024-05-20
card width: 374
card height: 522
@@ -44,8 +47,6 @@ init script:
if styling.invert_snow_symbol then "new"
else "old"
}
## Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols }
# Only white cards use a black font
font_colors_white := { input != "w" }
@@ -135,7 +136,18 @@ init script:
)
else base
}
card_symbol_image := {
map := face_coordinates_map(face)
shape := card_symbol_field(face)
if shape == "none" or map.width == 0 or map.height == 0
then ""
else if shape == "tombstone"
then "tombstone.png"
else "/magic-modules.mse-include/card-symbols/" + shape + ".png"
}
card_symbol_left := { 16 }
card_symbol_offset_top_1 := { -9 }
############################################################## Set info fields
set info style:
symbol:
@@ -156,16 +168,6 @@ set info style:
border color 1: rgb(255,255,255)
border color 2: rgb(255,255,255)
############################################################## Extra style options
styling field:
type: boolean
name: use color indicator
description: Use color indicator symbol on typeline? Default: No
initial: no
styling field:
type: boolean
name: use guild mana symbols
description: Use the Ravnica guild symbols instead of the official half/half circles for hybrid mana.
initial: no
styling field:
type: package choice
name: mana cost mana symbols
@@ -249,10 +251,6 @@ styling field:
choice: MPlantin
choice: MPlantin-Bold
styling style:
#use guild mana symbols:
# choice images:
# yes: /magic-mana-small.mse-symbol-font/mana_guild_rg.png
# no: /magic-mana-agflat.mse-symbol-font/mana_rg.png
multicolor pinstripe colored:
render style: both
choice images:
@@ -300,6 +298,8 @@ styling style:
no: { symbol_variation(symbol: set.symbol, variation: "common") }
yes: { symbol_variation(symbol: set.symbol, variation: "rare") }
############################################################## Card fields
include file: /magic-modules.mse-include/card-symbols/card_fields
include file: /magic-modules.mse-include/information/the_list_old
card style:
############################# Background stuff
border color:
@@ -351,15 +351,6 @@ card style:
always symbol: true
z index: 2
padding top: 0
card symbol:
left: 20
top : 20
height: 20
width: 14
z index: 1
render style: image
choice images:
tombstone: tombstone.png
############################# Image
image:
left: 40
@@ -375,7 +366,7 @@ card style:
height: 15
z index: 2
render style: image
visible: { styling.use_color_indicator == "yes" }
visible: { has_identity() }
image: { card_indicator() }
type:
left: 36
@@ -401,30 +392,7 @@ card style:
z index: 2
alignment: middle right
render style: image
choice images:
# Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common")
uncommon:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "olduncommon")
else symbol_variation(symbol: set.symbol, variation: "common")
rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "oldrare")
else symbol_variation(symbol: set.symbol, variation: "common")
mythic rare:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "mythic rare")
else symbol_variation(symbol: set.symbol, variation: "common")
special:
script:
if styling.colored_rarities
then symbol_variation(symbol: set.symbol, variation: "special")
else symbol_variation(symbol: set.symbol, variation: "common")
include file: /magic-modules.mse-include/rarities/choice_images_old
############################# Text box
text:
left: 38