[274/274] magic-modules rollout (#51)
Add Magic-Modules support to all frames
This commit is contained in:
@@ -5,7 +5,7 @@ full name: ARC+Bolas
|
||||
icon: card-sample.png
|
||||
position hint: 90
|
||||
|
||||
version: 2023-12-20
|
||||
version: 2024-05-30
|
||||
depends on:
|
||||
package: magic.mse-game
|
||||
version: 2010-05-17
|
||||
@@ -21,6 +21,9 @@ depends on:
|
||||
depends on:
|
||||
package: magic-future-common.mse-include
|
||||
version: 2007-09-23
|
||||
depends on:
|
||||
package: magic-modules.mse-include
|
||||
version: 2024-05-20
|
||||
|
||||
card width: 435
|
||||
card height: 621
|
||||
@@ -35,31 +38,6 @@ card dpi: 200
|
||||
# Updated style and E01 images by Fungustober
|
||||
############################################################## Extra scripts
|
||||
init script:
|
||||
#rarity stuff
|
||||
#code by Cajun
|
||||
alt_rarity := {styling.alt_rarity_color != ""}
|
||||
alt_rarity_color := {
|
||||
string := "83,67,53:177,150,131:0,0,0:0,0,0:0.07:"
|
||||
if match(styling.alt_rarity_color, match:":$") then string := styling.alt_rarity_color
|
||||
colons := length(filter_text(string, match:":"))
|
||||
output := split_text(string, match:",|:")
|
||||
splits := split_text(string, match:":")
|
||||
if colons == 4
|
||||
then output := split_text(string+"0.07:", match:",|:")
|
||||
if colons == 3
|
||||
then output := split_text(string+splits[2]+"0.07:", match:",|:")
|
||||
else if colons == 2
|
||||
then output := split_text(string+"0,0,0:0,0,0:0.07:", match:",|:")
|
||||
else if colons == 1
|
||||
then output := split_text(string+splits[0]+":0,0,0:0,0,0:0.07:", match:",|:")
|
||||
|
||||
output
|
||||
}
|
||||
alt_symbol := {symbol_variation(symbol:set.symbol, border_radius: alt_rarity_color().12, fill_type: "linear gradient", fill_color_1: rgb(alt_rarity_color().0, alt_rarity_color().1, alt_rarity_color().2), fill_color_2: rgb(alt_rarity_color().3, alt_rarity_color().4, alt_rarity_color().5), border_color_1: rgb(alt_rarity_color().6, alt_rarity_color().7, alt_rarity_color().8), border_color_2: rgb(alt_rarity_color().9, alt_rarity_color().10, alt_rarity_color().11), center_x:0.5, center_y:0.5, end_x:1, end_y:1)}
|
||||
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}
|
||||
|
||||
un_png := replace@(match:".png", replace: "")
|
||||
|
||||
is_unsorted := {styling.remove_from_autocount}
|
||||
|
||||
# Use the normal tap symbol
|
||||
@@ -76,7 +54,7 @@ init script:
|
||||
|
||||
choose_card := {"card" + choose_style() + ".png"}
|
||||
choose_mask := {"image_mask" + choose_style() + ".png"}
|
||||
|
||||
watermark_include := "/magic-modules.mse-include/watermarks"
|
||||
|
||||
############################################################## Set info fields
|
||||
set info style:
|
||||
@@ -131,10 +109,7 @@ styling field:
|
||||
name: remove from autocount
|
||||
description: Removes the automatic card number for specific cards, to allow for overcounted cards like in Planeswalker Decks.
|
||||
initial: no
|
||||
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:..." 1 and 2 are fill color, 3 and 4 border color
|
||||
include file: /magic-modules.mse-include/rarities/styling_fields
|
||||
styling field:
|
||||
type: choice
|
||||
name: artist font color
|
||||
@@ -159,6 +134,8 @@ styling style:
|
||||
old: /magic-mana-small.mse-symbol-font/mana_t_old.png
|
||||
diagonal T: /magic-mana-small.mse-symbol-font/mana_t_older.png
|
||||
############################################################## Card fields
|
||||
include file: /magic-modules.mse-include/corners/card_fields
|
||||
include file: /magic-modules.mse-include/information/the_list_old
|
||||
card style:
|
||||
############################# Background stuff
|
||||
border color:
|
||||
@@ -166,7 +143,6 @@ card style:
|
||||
top: 0
|
||||
width: 435
|
||||
height: 621
|
||||
radius: 16
|
||||
left width: 16
|
||||
right width: 15
|
||||
top width: 13
|
||||
@@ -214,45 +190,7 @@ card style:
|
||||
z index: 2
|
||||
render style: image
|
||||
alignment: middle right
|
||||
choice images:
|
||||
# Images based on the set symbol
|
||||
# code by Cajun
|
||||
basic land:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
|
||||
else if 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 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 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 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 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 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: {if choose_style() == "A" then 64 else 60}
|
||||
@@ -293,18 +231,18 @@ card style:
|
||||
# This was supposed to automatically do copyright,
|
||||
# but apparently at some point, the copyright code changed
|
||||
# and now it doesn't work
|
||||
##copyright line:
|
||||
## left: {if choose_style() == "A" then 67 else 0}
|
||||
## top: {if choose_style() == "A" then 587 else 0}
|
||||
## width: {if choose_style() == "A" then 296 else 0}
|
||||
## height: {if choose_style() == "A" then 14 else 0}
|
||||
## alignment: center
|
||||
## z index: 2
|
||||
## visible: {if choose_style() == "A" then true else false}
|
||||
## font:
|
||||
## name: MPlantin
|
||||
## size: 6
|
||||
## color: {styling.artist_font_color}
|
||||
copyright line:
|
||||
left: {if choose_style() == "A" then 67 else 0}
|
||||
top: {if choose_style() == "A" then 587 else 0}
|
||||
width: {if choose_style() == "A" then 296 else 0}
|
||||
height: {if choose_style() == "A" then 14 else 0}
|
||||
alignment: center
|
||||
z index: 2
|
||||
visible: {if choose_style() == "A" then true else false}
|
||||
font:
|
||||
name: MPlantin
|
||||
size: 6
|
||||
color: {styling.artist_font_color}
|
||||
copyright:
|
||||
left: 145
|
||||
top: {if set.automatic_copyright or choose_style() == "A" then 0 else 593}
|
||||
@@ -386,7 +324,7 @@ extra card style:
|
||||
top: 0
|
||||
width: 435
|
||||
height: 621
|
||||
z index: 3
|
||||
z index: 1050
|
||||
render style: image
|
||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||
cardSet code:
|
||||
@@ -401,18 +339,6 @@ extra card style:
|
||||
size: 8.5
|
||||
color: white
|
||||
weight: bold
|
||||
legacy copyright:
|
||||
left: {if choose_style() == "A" then 67 else 0}
|
||||
top: {if choose_style() == "A" then 587 else 0}
|
||||
width: {if choose_style() == "A" then 296 else 0}
|
||||
height: {if choose_style() == "A" then 14 else 0}
|
||||
alignment: center
|
||||
z index: 2
|
||||
visible: {if choose_style() == "A" then true else false}
|
||||
font:
|
||||
name: MPlantin
|
||||
size: 6
|
||||
color: {styling.artist_font_color}
|
||||
auto copyright:
|
||||
left: 145
|
||||
top: {if choose_style() == "A" or set.automatic_copyright == "no" then 0 else 593}
|
||||
|
||||
Reference in New Issue
Block a user