This commit is contained in:
CajunAvenger
2021-07-22 00:42:07 -05:00
parent 946e8534b1
commit 8be3f6c0fd
2 changed files with 34 additions and 91 deletions

View File

@@ -65,6 +65,9 @@ init script:
chop_bot := {if comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).1 else if styling.chop_bottom == "" then 0 else styling.chop_bottom} chop_bot := {if comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).1 else if styling.chop_bottom == "" then 0 else styling.chop_bottom}
top_of_textbox := {(327) - (-chop_top()) } top_of_textbox := {(327) - (-chop_top()) }
bottom_of_textbox := {(481) - chop_bot() } bottom_of_textbox := {(481) - chop_bot() }
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_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 } shrink_name := {if styling.shrink_name_text != "" then to_int(styling.shrink_name_text) else 0 }
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")} use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}

View File

@@ -1,10 +1,10 @@
mse version: 2.0.0 mse version: 2.0.0
game: magic game: magic
short name: M15 Paradox style short name: Windy Ultima
full name: Mainframe Compatible full name: Ultima Spells
icon: card-sample.png icon: card-sample.png
installer group: magic/m15 style/normal cards installer group: magic/windy
position hint: 020 position hint: 021
version: 2018-02-09 version: 2018-02-09
depends on: depends on:
@@ -41,7 +41,7 @@ init script:
mask_multi_land_with_color := { styling.colored_multicolor_land_name } mask_multi_land_with_color := { styling.colored_multicolor_land_name }
template_prefix := [card: "" pt: "" stamp: "" identity: "/magic-identity-new.mse-include/"] template_prefix := [card: "" pt: "" stamp: "" identity: "/magic-identity-new.mse-include/"]
template_suffix := [card: "card.png" pt: "pt.png", stamp: "stamp.jpg" identity: "identity.png"] template_suffix := [card: "card.jpg" pt: "pt.png", stamp: "stamp.jpg" identity: "identity.png"]
template := { template_prefix[type] + input + template_suffix[type] } template := { template_prefix[type] + input + template_suffix[type] }
land_template := { template_prefix[type] + (if input == "a" then "c" else input) + "l" + template_suffix[type] } land_template := { template_prefix[type] + (if input == "a" then "c" else input) + "l" + template_suffix[type] }
# Use land templates for previews because they show more contrast # Use land templates for previews because they show more contrast
@@ -61,19 +61,7 @@ init script:
is_promo := { styling.promo } is_promo := { styling.promo }
has_identity := { styling.color_indicator_dot } has_identity := { styling.color_indicator_dot }
is_unsorted := {styling.remove_from_autocount} is_unsorted := {styling.remove_from_autocount}
chop_top := {if styling.chop_top == "" then 0 else if comma_count(styling.chop_top) == "," or comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).0 else styling.chop_top}
chop_bot := {if comma_count(styling.chop_top) == ",," then split_text(match:",", styling.chop_top).1 else if styling.chop_bottom == "" then 0 else styling.chop_bottom}
top_of_textbox := {(327) - (-chop_top()) }
bottom_of_textbox := {(481) - chop_bot() }
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 }
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}
un_png := replace@(match:".png", replace: "")
use_vorthos := {styling.vorthos_box} use_vorthos := {styling.vorthos_box}
############################################################## Set info fields ############################################################## Set info fields
set info style: set info style:
symbol: symbol:
@@ -84,31 +72,10 @@ set info style:
fill color: rgb(255,255,255) fill color: rgb(255,255,255)
border color: rgb(0,0,0) border color: rgb(0,0,0)
############################################################## Extra style options ############################################################## Extra style options
styling field:
type: text
name: chop top
description: Shrinks the textbox X pixels from the top OR shrinks "top,bottom,"
styling field:
type: text
name: chop bottom
description: Shrinks the textbox X pixels from the bottom.
styling field:
type: text
name: shrink name text
description: Reduces the name text N points.
styling field:
type: text
name: shrink typeline text
description: Reduces the typeline text N points.
styling field: styling field:
type: boolean type: boolean
name: use holofoil stamps name: use holofoil stamps
description: Change to no to disable rare holofoil stamps description: Change to no to disable rare holofoil stamps
styling field:
type: boolean
name: vorthos box
description: Enable the vorthos box
initial: no
styling field: styling field:
type: boolean type: boolean
name: color indicator dot name: color indicator dot
@@ -119,6 +86,11 @@ styling field:
name: remove from autocount name: remove from autocount
description: Removes the automatic card number for specific cards, to allow for overcounted cards like in Planeswalker Decks. description: Removes the automatic card number for specific cards, to allow for overcounted cards like in Planeswalker Decks.
initial: no initial: no
styling field:
type: boolean
name: vorthos box
description: Enable the vorthos box
initial: no
styling field: styling field:
type: boolean type: boolean
name: grey hybrid name name: grey hybrid name
@@ -219,14 +191,14 @@ card style:
left: { if card.card_symbol=="none" then 32 else 50 } left: { if card.card_symbol=="none" then 32 else 50 }
top: 30 top: 30
right: { 341 - card_style.casting_cost.content_width } right: { 341 - card_style.casting_cost.content_width }
height: { 23 - (0.5 * shrink_name()) } height: 23
alignment: bottom shrink-overflow alignment: bottom shrink-overflow
padding bottom: 0 padding bottom: 0
z index: 1 z index: 1
font: font:
name: Beleren Bold name: Beleren Bold
size: { 16 - shrink_name()} size: 16
color: white color: black
casting cost: casting cost:
right: 346 right: 346
top: 29 top: 29
@@ -255,7 +227,7 @@ card style:
############################# Image ############################# Image
image: image:
left: 29 left: 29
top: 59 top: 60
width: 316 width: 316
height: 231 height: 231
z index: 1 z index: 1
@@ -272,16 +244,16 @@ card style:
image: { card_identity() } image: { card_identity() }
type: type:
left: { if has_identity() then "52" else "32" } left: { if has_identity() then "52" else "32" }
top: { 296 + shrink_type() } top: 296
width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) } width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) }
height: { 20 - shrink_type() } height: 20
alignment: top shrink-overflow alignment: top shrink-overflow
z index: 1 z index: 1
padding top: 2 padding top: 2
font: font:
name: Beleren Bold name: Beleren Bold
size: {13 - shrink_type() } size: 13
color: white color: black
separator color: red separator color: red
rarity: rarity:
right: 344 right: 344
@@ -295,40 +267,23 @@ card style:
# Images based on the set symbol # Images based on the set symbol
basic land: basic land:
script: script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png" if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common") else symbol_variation(symbol: set.symbol, variation: "common")
common: common:
script: script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png" if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common") else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
script: rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "u.png" mythic rare: script: symbol_variation(symbol: set.symbol, variation: "mythic rare")
else symbol_variation(symbol: set.symbol, variation: "uncommon") special: script: symbol_variation(symbol: set.symbol, variation: "special")
rare: masterpiece: script: symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "r.png"
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 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 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")
############################# Text box ############################# Text box
text: text:
left: 29 left: 29
top: {top_of_textbox()} top: 327
width: 314 width: 314
bottom: {bottom_of_textbox()} height: 154
font: font:
name: MPlantin name: MPlantin
italic name: MPlantin-Italic italic name: MPlantin-Italic
@@ -350,10 +305,10 @@ card style:
z index: 2 z index: 2
padding left: 6 padding left: 6
padding right: 4 padding right: 4
line height hard: {if is_modal(card.text) then 0.9 else 1.2 } line height hard: 1.2
line height line: 1.5 line height line: 1.5
line height soft: 0.9 line height soft: 0.9
line height hard max: {if is_modal(card.text) then 1.0 else 1.3 } line height hard max: 1.3
line height line max: 1.6 line height line max: 1.6
watermark: watermark:
left: 117 left: 117
@@ -376,7 +331,7 @@ card style:
font: font:
name: Beleren Bold name: Beleren Bold
size: 16 size: 16
color: white color: black
separator color: red separator color: red
############################# Card sorting / numbering ############################# Card sorting / numbering
set code: set code:
@@ -461,13 +416,6 @@ extra card field:
save value: false save value: false
editable: false editable: false
show statistics: false show statistics: false
extra card field:
type: choice
name: flavor bar
choice: bar
editable: false
save value: false
show statistics: false
extra card field: extra card field:
type: text type: text
name: vorthos box name: vorthos box
@@ -530,6 +478,7 @@ extra card style:
render style: image render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"} image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { if is_rare() then "foil_mask_rare.png" else "foil_mask.png" } mask: { if is_rare() then "foil_mask_rare.png" else "foil_mask.png" }
auto copyright: auto copyright:
right: 350 right: 350
top: { if card.pt != "" or use_vorthos() then 500 else 488 } top: { if card.pt != "" or use_vorthos() then 500 else 488 }
@@ -543,15 +492,6 @@ extra card style:
size: 7 size: 7
color: white color: white
weight: bold weight: bold
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 }
vorthos box: vorthos box:
right: { if card.pt != "" then 275 else 350 } right: { if card.pt != "" then 275 else 350 }
top: 488 top: 488