Update Alternate Rarity Color script (#24)

Added Alt Rarity to:
- Adventures
- Aftermath
- Mainframe
- M15 Future
- Mainframe Planeswalkers
- Mainframe DFCs
- Paradox
- Sagas
- Mainframe Splits

Added custom fonts to
- Adventures
- Mainframe
- Mainframe Tokens

Added Print Fix to
- Adventures
- Mainframe DFC
- Mainframe Planeswalkers
- Mainframe Tokens
- Paradox
- Sagas

Close #19
This commit is contained in:
cajun
2024-01-05 08:31:38 -06:00
committed by GitHub
parent 1adaf70609
commit 5023d2a85c
11 changed files with 887 additions and 174 deletions

View File

@@ -6,7 +6,7 @@ installer group: magic/m15 style/sagas
icon: card-sample.png
position hint: 010
version: 2020-05-10
version: 2024-01-04
depends on:
package: magic.mse-game
version: 2014-06-25
@@ -233,6 +233,10 @@ init script:
}
###add blank spaces to inner levels so they still are clickable while "empty"
add_spacers := { if input == "" and (margin_code == "lv1" or margin_code == "lv2" or margin_code == "lv3") then "" else input}
# alternate rarity color
alt_rarity := {styling.alt_rarity_color}
############################################################## Set info fields
set info style:
symbol:
@@ -343,6 +347,10 @@ styling field:
name: color indicator dot
description: Use the color indicator dot
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:...: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: boolean
name: remove from autocount
@@ -589,7 +597,7 @@ card style:
type:
left: { if has_identity() then "53" else "33" }
top: { 444 + shrink_type() }
width: { 309 - max(22,card_style.rarity.content_width) }
width: { 309 - rare_width() }
height: { 20 - shrink_type() }
alignment: top shrink-overflow
z index: 2
@@ -612,28 +620,34 @@ card style:
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: