---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2024-10-01 08:34:46 -05:00
committed by GitHub
parent d1b3bdac74
commit 5016c6efa2
32836 changed files with 65408 additions and 48862 deletions

View File

@@ -13,8 +13,8 @@ depends on:
package: magic-mainframe-extras.mse-include
version: 2001-01-01
depends on:
package: magic-watermarks.mse-include
version: 2001-01-01
package: magic-modules.mse-include
version: 2024-10-01
depends on:
package: magic-mana-large.mse-symbol-font
version: 2001-01-01
@@ -37,11 +37,69 @@ card dpi: 300
init script:
card_shape := { "normal" }
guild_mana := { styling.use_guild_mana_symbols }
corners_default := { "diagonal" }
ancestral_mana := { false }
swap_font := { true }
mana_t := { "new" }
swap_fonts_name_src := { styling.name_font }
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
size: {32},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_type_src := { styling.type_font }
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: {25},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_body_src := { styling.text_font }
swap_fonts_body_default :=
[
name: {"MPlantin"},
size: {28},
color: {"black"},
vertical: {0},
italic: {"MPlantin-Italic"}
]
swap_fonts_pt_src := { styling.PT_font }
swap_fonts_pt_default :=
[
name: {"Beleren Bold"},
size: {32},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_name2_src := { styling.alias_font }
swap_fonts_name2_default :=
[
name: {"Beleren Bold"},
size: {18},
color: {"black"},
vertical: {0},
italic: {""}
]
swap_fonts_name3_src := { styling.auxiliary_font }
swap_fonts_name3_default :=
[
name: {"Beleren Bold"},
size: {30},
color: {"black"},
vertical: {0},
italic: {""}
]
mana_sort := sort_text@(order: "\\?XYZI[0123456789]VLHFDSCAIEP(WUBRG)")
mana_sort_wedge := sort_text@(order: "\\?XYZI[0123456789]VLHFDSCAIEP(WBGUR)")
@@ -58,21 +116,6 @@ init script:
styling.remove_from_autocount
}
shrink_type :=
{
if styling.shrink_type == "-" then 0
else if styling.shrink_type != "" then (clamp(to_int(styling.shrink_type), minimum: -40, maximum: 24) or else 0)
else if length(remove_tags(card.type)) > 41 then 2
else if length(remove_tags(card.type)) > 38 then 1
else 0
}
shrink_name :=
{
if styling.shrink_name == "-" then 0
else clamp(to_int(styling.shrink_name), minimum: -40, maximum: 31) or else 0
}
shrink_reminder :=
{
if styling.shrink_transformation_reminder_text == "-" then 0
@@ -125,11 +168,6 @@ init script:
not (styling.symbol == "none")
}
has_identity :=
{
styling.color_indicator_dot and length(color_to_base_prefix()) > 0
}
has_custom_rarity :=
{
contains(set.mainframe_rarity_name, match: ".png")
@@ -563,7 +601,7 @@ init script:
opacity_watermark_image :=
{
image := if styling.watermark == "setsymbol" or styling.watermark == "setsymbol" or styling.watermark == "'setsymbol'" then set_symbol_image()
else if contains(match: ".png", styling.watermark) then ("/magic-watermarks.mse-include/" + styling.watermark)
else if contains(match: ".png", styling.watermark) then ("/magic-mainframe-extras.mse-include/" + styling.watermark)
else ""
if styling.watermark_opacity_percentage == "" then image
else set_alpha(image, alpha: get_alpha(styling.watermark_opacity_percentage, default: 100))
@@ -846,14 +884,6 @@ set info style:
border color 2: rgb(0, 0, 0)
############################################################## Extra style options
styling field:
type: text
name: shrink name
description: Reduces the name text's font size by this many points.
# localized caption:
# fr: Rapetisser le nom
# localized description:
# fr: Réduire la taille du nom de N points.
styling field:
type: boolean
name: center name
@@ -863,14 +893,6 @@ styling field:
# localized description:
# fr: Aligner le nom au milieu de la carte?
initial: no
styling field:
type: text
name: shrink type
description: Reduces the type text's font size by this many points.
# localized caption:
# fr: Rapetisser le type
# localized description:
# fr: Réduire la taille du type de N points.
styling field:
type: boolean
name: center type
@@ -880,22 +902,6 @@ styling field:
# localized description:
# fr: Aligner le type au milieu de la carte?
initial: no
styling field:
type: text
name: chop rule textbox
description: Chops the top, bottom, and right edges of the rule textbox by this many pixels. Formatted as "1,2,3"
# localized caption:
# fr: Tronquer le texte de règles
# localized description:
# fr: Réduire la taille du haut, du bas, et de la droite de la zone du texte de règles de N pixels. Format: "1,2,3"
styling field:
type: text
name: rule text font size cap
description: The font size of rule text can't become greater than this. Default is 28.
# localized caption:
# fr: Caper le texte de règles
# localized description:
# fr: Limiter la taille maximale de police du texte de règles. Valeur par défaut: 28.
styling field:
type: choice
name: center rule text
@@ -910,6 +916,14 @@ styling field:
choice: one line
choice: never
initial: two lines or less
styling field:
type: text
name: chop rule textbox
description: Chops the top, bottom, and right edges of the rule textbox by this many pixels. Formatted as "1,2,3"
# localized caption:
# fr: Tronquer le texte de règles
# localized description:
# fr: Réduire la taille du haut, du bas, et de la droite de la zone du texte de règles de N pixels. Format: "1,2,3"
styling field:
type: text
name: paragraph highlights
@@ -926,14 +940,6 @@ styling field:
# fr: Tronquer le texte d'ambiance
# localized description:
# fr: Réduire la taille du haut, du bas, et de la droite de la zone du texte d'ambiance de N pixels. Format: "1,2,3"
styling field:
type: text
name: flavor text font size cap
description: The font size of flavor text can't become greater than this. Default is 24.
# localized caption:
# fr: Caper le texte d'ambiance
# localized description:
# fr: Limiter la taille maximale de police du texte d'ambiance. Valeur par défaut: 24.
styling field:
type: choice
name: center flavor text
@@ -969,11 +975,11 @@ styling field:
styling field:
type: text
name: watermark
description: The name of a '.png' image inside the /magic-watermarks.mse-include/ folder. Dimensions can be anything, but native is 312x312. Alternatively, write 'setsymbol' to use the set symbol instead.
description: The name of a '.png' image inside the /magic-mainframe-extras.mse-include/ folder. Dimensions can be anything, but native is 312x312. Alternatively, write 'setsymbol' to use the set symbol instead.
# localized caption:
# fr: Filigrane
# localized description:
# fr: Le chemin d'une image '.png' située dans le dossier /magic-watermarks.mse-include/. Alternativement, écrivez 'setsymbol' pour utiliser le symbole du Set comme filigrane.
# fr: Le chemin d'une image '.png' située dans le dossier /magic-mainframe-extras.mse-include/. Alternativement, écrivez 'setsymbol' pour utiliser le symbole du Set comme filigrane.
styling field:
type: text
name: watermark opacity percentage
@@ -1114,7 +1120,7 @@ styling field:
# localized caption:
# fr: Bannière
# localized description:
# fr: Utiliser un champ de texte sur la gauche de la carte?
# fr: Utiliser un champ de texte vertical sur la gauche de la carte?
initial: no
styling field:
type: boolean
@@ -1198,15 +1204,6 @@ styling field:
# fr: Images de la barre de choix
# localized description:
# fr: Les chemins de jusqu'à sept images '.png' à utiliser dans la barre de choix. Format: "image1.png, image2.png, etc..."
styling field:
type: boolean
name: color indicator dot
description: Use the color indicator dot?
# localized caption:
# fr: Indicateur de couleur
# localized description:
# fr: Utiliser un indicateur de couleur, par exemple sur les cartes sans coût de lancement?
initial: no
styling field:
type: text
name: alt rarity color
@@ -1338,27 +1335,51 @@ styling field:
styling field:
type: text
name: name font
description: Font used for the name, alias, type, pt, fuse, transformation reminder, and banner. Hover your mouse over the font file to see it's details, and write it's Title here.
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers. Hover your mouse over the font file to see it's details, it's Title is it's name.
# localized caption:
# fr: Police du nom
# localized description:
# fr: Police utilisée pour le nom, alias, type, et force/endurance. Survolez le fichier de police avec la souris pour voir ses informations, et écrivez son titre ici.
# fr: Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A". Survolez le fichier de police avec la souris pour voir son titre, qui est son nom.
styling field:
type: text
name: type font
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers. Hover your mouse over the font file to see it's details, and write it's Title here.
# localized caption:
# fr: Police du type
# localized description:
# fr: Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A". Survolez le fichier de police avec la souris pour voir son titre, qui est son nom.
styling field:
type: text
name: text font
description: Font used for the rule text. Hover your mouse over the font file to see it's details, and write it's Title here.
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers. Hover your mouse over the font file to see it's details, and write it's Title here.
# localized caption:
# fr: Police du texte des règles
# localized description:
# fr: Police utilisée pour le texte des règles. Survolez le fichier de police avec la souris pour voir ses informations, et écrivez son titre ici.
# fr: Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A". Survolez le fichier de police avec la souris pour voir son titre, qui est son nom.
styling field:
type: text
name: text italic font
description: Font used for the flavor text and reminder texts. Hover your mouse over the font file to see it's details, and write it's Title here.
name: PT font
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers. Hover your mouse over the font file to see it's details, and write it's Title here.
# localized caption:
# fr: Police du texte d'ambiance
# fr: Police de force et endurance
# localized description:
# fr: Police utilisée pour le text d'ambiance. Survolez le fichier de police avec la souris pour voir ses informations, et écrivez son titre ici.
# fr: Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A". Survolez le fichier de police avec la souris pour voir son titre, qui est son nom.
styling field:
type: text
name: alias font
description: Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers. Hover your mouse over the font file to see it's details, and write it's Title here.
# localized caption:
# fr: Police de l'alias
# localized description:
# fr: Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A". Survolez le fichier de police avec la souris pour voir son titre, qui est son nom.
styling field:
type: text
name: auxiliary font
description: Font used for the transformation reminder, fuse, choice bar and banner. Formatted as "font name;font size;font color;vertical offset;italic font name" last 4 are optional. Color can be a name or R,G,B,A numbers.
# localized caption:
# fr: Police auxiliaire
# localized description:
# fr: Police utilisée pour la bannière, la fusion, la barre de choix et le rappel de transformation. Format: "nom de la police;taille;couleur;décalage vertical;nom de la police italique". Les 4 derniers sont optionnels. Format couleur: "R,G,B,A".
#styling field:
# type: boolean
# name: foil overlay
@@ -1421,6 +1442,9 @@ styling style:
yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") }
############################################################## Card fields
include file: /magic-modules.mse-include/corners/card_fields
card style:
############################# Background
card color:
@@ -1436,18 +1460,19 @@ card style:
############################# Name line
name:
left: { 64 + (if styling.center_name then name_margin() else nameline_left_margin()) }
top: 55
top: { 55 + name_font_vertical() }
right: { 686 - (if styling.center_name then name_margin() else nameline_right_margin()) }
height: 48
alignment: { if styling.center_name then "center middle shrink-overflow" else "left middle shrink-overflow" }
z index: 42
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: { 32 - shrink_name() }
color: black
name: { name_font() }
italic name: { name_font_italic() }
size: { name_font_size() }
color: { name_font_color() }
symbol font:
name: { styling.casting_cost_mana_symbols }
size: { 32 - shrink_name() }
size: { name_font_size() }
casting cost:
right: 687
top: 55
@@ -1455,7 +1480,7 @@ card style:
height: 48
alignment: middle right
font:
name: { if styling.text_font == "" then "MPlantin" else styling.text_font }
name: { body_font() }
size: 32
symbol font:
name: { styling.casting_cost_mana_symbols }
@@ -1469,7 +1494,7 @@ card style:
height: 30
alignment: center middle shrink-overflow
font:
name: { if styling.text_font == "" then "MPlantin" else styling.text_font }
name: { body_font() }
size: 20
symbol font:
name: { styling.casting_cost_mana_symbols }
@@ -1478,15 +1503,16 @@ card style:
z index: 42
alias:
left: 149
top: 117
top: { 117 + name2_font_vertical() }
width: 452
height: 24
alignment: center middle shrink-overflow
z index: 42
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 18
color: black
name: { name2_font() }
italic name: { name2_font_italic() }
size: { name2_font_size() }
color: { name2_font_color() }
############################# Image
image:
@@ -1506,15 +1532,16 @@ card style:
############################# Card type
type:
left: { 73 + (if styling.center_type then type_margin() else typeline_left_margin()) }
top: 596
top: { 596 + type_font_vertical() }
right: { 677 - (if styling.center_type then type_margin() else typeline_right_margin()) }
height: 44
alignment: { if styling.center_type then "center middle shrink-overflow" else "left middle shrink-overflow" }
z index: 42
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: { 25 - shrink_type() }
color: black
name: { type_font() }
italic name: { type_font_italic() }
size: { type_font_size() }
color: { type_font_color() }
separator color: red
rarity:
left: { 620 - (-chop_rarity_left()) }
@@ -1564,19 +1591,19 @@ card style:
############################# Text boxes
rule text:
left: 73
top: { rule_text_top() }
top: { rule_text_top() + body_font_vertical() }
width: { rule_text_width() }
bottom: { rule_text_bottom() }
z index: 44
font:
name: { if styling.text_font == "" then "MPlantin" else styling.text_font }
italic name: { if styling.text_italic_font == "" then "MPlantin-Italic" else styling.text_italic_font }
size: { if styling.rule_text_font_size_cap == "" then 28 else to_number(styling.rule_text_font_size_cap) or else 28 }
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
color: { body_font_color() }
scale down to: 12
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.rule_text_font_size_cap == "" then 28 else to_number(styling.rule_text_font_size_cap) or else 28 }
size: { body_font_size() }
scale down to: 12
alignment:
script:
@@ -1596,20 +1623,20 @@ card style:
line height line max: 1.6
flavor text:
left: 73
top: { flavor_text_top() }
top: { flavor_text_top() + body_font_vertical() }
width: { flavor_text_width() }
bottom: { flavor_text_bottom() }
padding bottom: { flavor_text_padding_bottom() }
z index: 44
font:
name: { if styling.text_font == "" then "MPlantin" else styling.text_font }
italic name: { if styling.text_italic_font == "" then "MPlantin-Italic" else styling.text_italic_font }
size: { if styling.flavor_text_font_size_cap != "" then (to_number(styling.flavor_text_font_size_cap) or else 24) else 24 }
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
color: { body_font_color() }
scale down to: 12
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.flavor_text_font_size_cap != "" then (to_number(styling.flavor_text_font_size_cap) or else 24) else 24 }
size: { body_font_size() }
scale down to: 12
alignment:
script:
@@ -1625,19 +1652,19 @@ card style:
line height line max: 1.6
rule text 2:
left: 94
top: 660
top: { 660 + body_font_vertical() }
width: { if styling.prototype then (522 - prototype_width_increase()) else 0 }
height: 73
z index: 44
font:
name: { if styling.text_font == "" then "MPlantin" else styling.text_font }
italic name: { if styling.text_italic_font == "" then "MPlantin-Italic" else styling.text_italic_font }
size: { if styling.rule_text_font_size_cap == "" then 28 else to_number(styling.rule_text_font_size_cap) or else 28 }
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
color: { body_font_color() }
scale down to: 12
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.rule_text_font_size_cap == "" then 28 else to_number(styling.rule_text_font_size_cap) or else 28 }
size: { body_font_size() }
scale down to: 12
alignment: middle left
line height hard: { if contains(card.rule_text, match: "<li>") then 0.9 else 1.2 }
@@ -1647,44 +1674,49 @@ card style:
line height line max: 1.6
rule text 3:
left: { (if contains(styling.fuse, match: "right") then 750 else 0) - (if length(remove_tags(card.rule_text_3)) > 9 then 22 else 0) - 128 + 36 }
top: 521
top: { 521 + name3_font_vertical() }
width: { if styling.fuse != "none" then (if length(remove_tags(card.rule_text_3)) > 9 then 228 else 184) else 0 }
height: 54
z index: 160
alignment: center middle shrink-overflow
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 30
name: { name3_font() }
italic name: { name3_font_italic() }
size: { name3_font_size() }
color: { name3_font_color() }
scale down to: 12
color: black
symbol font:
name: { styling.casting_cost_mana_symbols }
size: 30
name: { styling.text_box_mana_symbols }
size: { name3_font_size() }
scale down to: 12
############################# PT
pt:
z index: 46
left: { if styling.choice_bar != "none" then 571 else 552 }
top: { if styling.choice_bar != "none" then 857 else 950 }
top: { (if styling.choice_bar != "none" then 857 else 950) + pt_font_vertical() }
width: { if styling.choice_bar != "none" then 112 else 120 }
height: 56
alignment: center middle shrink-overflow
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 32
color: black
name: { pt_font() }
italic name: { pt_font_italic() }
size: { pt_font_size() }
color: { pt_font_color() }
scale down to: 12
separator color: red
pt 2:
left: { 650 - prototype_width_increase() }
top: 693
top: { 693 + pt_font_vertical() }
width: { if styling.prototype then (14 + prototype_width_increase()) else 0 }
height: 42
alignment: center middle shrink-overflow
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 30
color: black
name: { pt_font() }
italic name: { pt_font_italic() }
size: { pt_font_size() - 2 }
color: { pt_font_color() }
scale down to: 12
separator color: red
z index: 42
@@ -2122,17 +2154,18 @@ extra card style:
image: { reminder_image() }
transformation reminder text:
left: { if styling.transformation_reminder == "notch" then (if styling.choice_bar == "none" and card.pt == "" then 618 else 620) else if styling.transformation_reminder == "short" then 4 else 22 }
top: { if styling.transformation_reminder == "notch" then (if styling.choice_bar == "none" then (if card.pt == "" then 906 else 888) else (if card.pt == "" then 858 else 798)) else 947 }
top: { (if styling.transformation_reminder == "notch" then (if styling.choice_bar == "none" then (if card.pt == "" then 906 else 888) else (if card.pt == "" then 858 else 798)) else 947) + name3_font_vertical() }
height: { if styling.transformation_reminder == "notch" then 30 else 60 }
width: { if styling.transformation_reminder == "notch" then 75 else if styling.transformation_reminder == "short" then 191 else if styling.transformation_reminder == "medium" then 294 else if styling.transformation_reminder == "long" then 404 else 0 }
z index: 46
font:
name: { if styling.name_font == "" then (if styling.transformation_reminder == "notch" then "ModMatrix" else "Beleren Bold") else styling.name_font }
size: { (if styling.transformation_reminder == "notch" then 27 else 30) - shrink_reminder() }
color: black
name: { if styling.auxiliary_font == "" then (if styling.transformation_reminder == "notch" then "ModMatrix" else "Beleren Bold") else name3_font() }
italic name: { if styling.auxiliary_font == "" then (if styling.transformation_reminder == "notch" then "ModMatrix" else "Beleren Bold") else name3_font_italic() }
size: { name3_font_size() - (if styling.transformation_reminder == "notch" then 3 else 0) - shrink_reminder() }
color: { name3_font_color() }
symbol font:
name: { styling.casting_cost_mana_symbols }
size: { (if styling.transformation_reminder == "notch" then 27 else 30) - shrink_reminder() }
size: { name3_font_size() - (if styling.transformation_reminder == "notch" then 3 else 0) - shrink_reminder() }
alignment: { if styling.transformation_reminder == "notch" then "right middle" else "center middle shrink-overflow" }
transformation reminder pt paste:
left: 456
@@ -2154,20 +2187,21 @@ extra card style:
image: { image("alias", side: "both") }
ascend:
left: 18
top: 147
top: { 147 + name3_font_vertical() }
width: { if styling.banner then 50 else 0 }
height: 424
direction: vertical
z index: 42
alignment: center middle
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 18
name: { name3_font() }
italic name: { name3_font_italic() }
size: { name3_font_size() - 12 }
color: { name3_font_color() }
scale down to: 12
color: black
symbol font:
name: { styling.casting_cost_mana_symbols }
size: 18
size: { name3_font_size() - 12 }
scale down to: 12
ascend box:
left: 9
@@ -2279,18 +2313,21 @@ extra card style:
image: { fuse_image() }
choice bar text:
left: 64
top: 920
top: { 920 + name3_font_vertical() }
width: { if styling.choice_bar == "text" or styling.choice_bar == "text (centered)" then 622 else 0 }
height: 41
alignment: { if styling.choice_bar == "text" then "left middle shrink-overflow" else "center middle shrink-overflow" }
z index: 20
font:
name: { if styling.name_font == "" then "Beleren Bold" else styling.name_font }
size: 26
color: black
name: { name3_font() }
italic name: { name3_font_italic() }
size: { name3_font_size() - 4 }
color: { name3_font_color() }
scale down to: 12
symbol font:
name: { styling.casting_cost_mana_symbols }
size: 26
size: { name3_font_size() - 4 }
scale down to: 12
choice bar box:
left: 54
top: 899