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}
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")}

View File

@@ -1,10 +1,10 @@
mse version: 2.0.0
game: magic
short name: M15 Paradox style
full name: Mainframe Compatible
short name: Windy Ultima
full name: Ultima Spells
icon: card-sample.png
installer group: magic/m15 style/normal cards
position hint: 020
installer group: magic/windy
position hint: 021
version: 2018-02-09
depends on:
@@ -41,7 +41,7 @@ init script:
mask_multi_land_with_color := { styling.colored_multicolor_land_name }
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] }
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
@@ -61,19 +61,7 @@ init script:
is_promo := { styling.promo }
has_identity := { styling.color_indicator_dot }
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}
############################################################## Set info fields
set info style:
symbol:
@@ -84,31 +72,10 @@ set info style:
fill color: rgb(255,255,255)
border color: rgb(0,0,0)
############################################################## 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:
type: boolean
name: use 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:
type: boolean
name: color indicator dot
@@ -119,6 +86,11 @@ 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: boolean
name: vorthos box
description: Enable the vorthos box
initial: no
styling field:
type: boolean
name: grey hybrid name
@@ -219,14 +191,14 @@ card style:
left: { if card.card_symbol=="none" then 32 else 50 }
top: 30
right: { 341 - card_style.casting_cost.content_width }
height: { 23 - (0.5 * shrink_name()) }
height: 23
alignment: bottom shrink-overflow
padding bottom: 0
z index: 1
font:
name: Beleren Bold
size: { 16 - shrink_name()}
color: white
size: 16
color: black
casting cost:
right: 346
top: 29
@@ -255,7 +227,7 @@ card style:
############################# Image
image:
left: 29
top: 59
top: 60
width: 316
height: 231
z index: 1
@@ -272,16 +244,16 @@ card style:
image: { card_identity() }
type:
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) }
height: { 20 - shrink_type() }
height: 20
alignment: top shrink-overflow
z index: 1
padding top: 2
font:
name: Beleren Bold
size: {13 - shrink_type() }
color: white
size: 13
color: black
separator color: red
rarity:
right: 344
@@ -295,40 +267,23 @@ card style:
# Images based on the set symbol
basic land:
script:
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
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 styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
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 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 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")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
mythic rare: script: symbol_variation(symbol: set.symbol, variation: "mythic rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special")
masterpiece: script: symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
############################# Text box
text:
left: 29
top: {top_of_textbox()}
top: 327
width: 314
bottom: {bottom_of_textbox()}
height: 154
font:
name: MPlantin
italic name: MPlantin-Italic
@@ -350,10 +305,10 @@ card style:
z index: 2
padding left: 6
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 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
watermark:
left: 117
@@ -376,7 +331,7 @@ card style:
font:
name: Beleren Bold
size: 16
color: white
color: black
separator color: red
############################# Card sorting / numbering
set code:
@@ -461,13 +416,6 @@ extra card field:
save value: false
editable: 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:
type: text
name: vorthos box
@@ -530,6 +478,7 @@ extra card style:
render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
mask: { if is_rare() then "foil_mask_rare.png" else "foil_mask.png" }
auto copyright:
right: 350
top: { if card.pt != "" or use_vorthos() then 500 else 488 }
@@ -543,15 +492,6 @@ extra card style:
size: 7
color: white
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:
right: { if card.pt != "" then 275 else 350 }
top: 488