Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified data/magic-m15-showcase-innistrad-mid.mse-style/name_mask.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
152 changes: 94 additions & 58 deletions data/magic-m15-showcase-innistrad-mid.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ init script:
[
name: {"Beleren Bold"},
size: {26.0},
color: {"black"},
color: {if is_back() then "white" else "black"},
vertical: {0},
italic: {"Beleren Bold"}
]
Expand All @@ -50,49 +50,40 @@ init script:
italic: {"MPlantin-Italic"}
]

typeline_offset_width_1 := { -14 }
typeline_offset_left_1 := { 7 }
typeline_offset_width_1 := { 0 }
typeline_offset_left_1 := { -7 }
type_offset_left_1 := { if has_identity() then 4 else 15 }
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: {22.5},
color: {"black"},
color: {if is_back() then "white" else "black"},
vertical: {0},
italic: {""}
]


transform_symbol_disabled_1 := { true }
transform_symbol_default := { "none" }
transform_symbol_offset_left_1 := { 8 }
transform_symbol_offset_top_1 := { 3 }
card_symbol_offset_left_1 := { 2 }
nameline_offset_top_1 := { 2 }
nameline_offset_width_1 := { -8 }
nameline_offset_left_1 := { 4 }
nameline_offset_width_1 := { if is_back() then -26 else -8 }
nameline_offset_left_1 := { if is_back() then 12 else 4 }
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
size: {26.0},
color: {"black"},
color: {if is_back() then "white" else "black"},
vertical: {0},
italic: {""}
]

card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 }

old_card_hybrid := card_hybrid
module_alias := {
template := alias_custom_template
land_template := alias_custom_land_template
color_background(
type: "alias",
base_hybrid: old_card_hybrid,
artifact_blend: "white",
hybrid_blend: "white",
multicolor_blend: "white"
)
}


old_card_hybrid_2 := card_hybrid_2
card_hybrid_2 :=
{
if type == "alias" or type == "transform" then old_card_hybrid_2() else
masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1))
}
horizontal_card_hybrid :=
Expand All @@ -114,16 +105,48 @@ init script:
vertical: card_hybrid["vertical"]
]

template_prefix := [card: "card/", textboxes: "textboxes/", pt: "pt/", crown: "crown/", stamp: "stamp/", identity: "/magic-modules.mse-include/indicators/"]
template_suffix := [card: "card.png", textboxes: "textboxes.png", pt: "pt.png", crown: "crown.png", stamp: "stamp.png", identity: "identity.png"]
template := { template_prefix[type] + input + template_suffix[type] }
land_template := { template_prefix[type] + (if input == "a" then "c" else input) + template_suffix[type] }
template_prefix :=
[
card: "card/",
textbox: "textboxes/",
typebox: "textboxes/",
pt: "pt/",
crown: "crown/",
stamp: "stamp/",
identity: "indicator/"
]
template_suffix :=
[
card: ".png",
textbox: ".png",
typebox: ".png",
pt: ".png",
crown: ".png",
stamp: ".png",
identity: ".png"
]
template := { (if type == "identity" then "" else if type == "textbox" then "front/" else frame_face()) + template_prefix[type] + input + template_suffix[type] }
land_template := { (if type == "identity" then "" else if type == "textbox" then "front/" else frame_face()) + template_prefix[type] + (if input == "a" then "c" else input) + template_suffix[type] }

card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") }
card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "black") }
card_textboxes := { color_background(input: card.card_color, type: "textboxes", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") }
card_background := { color_background(input: card.card_color, folder: frame_face(), type: "card", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, folder: frame_face(), type: "crown", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, folder: frame_face(), type: "pt", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") }
card_stamp := { color_background(input: card.card_color, folder: frame_face(), type: "stamp", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") }
card_typebox := { color_background(input: card.card_color, folder: frame_face(), type: "typebox", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "black") }
card_textbox := { color_background(input: card.card_color, folder: frame_face(), type: "textbox", base_hybrid: card_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") }
module_identity := { color_background(input: card.card_color, folder: frame_face(), type: "identity", base_hybrid: identity_hybrid, hybrid_blend: "white", artifact_blend: "white", multicolor_blend: "white") }
module_alias :=
{
template := alias_custom_template
land_template := alias_custom_land_template
color_background(
type: "alias",
base_hybrid: card_hybrid,
artifact_blend: "white",
hybrid_blend: "white",
multicolor_blend: "white"
)
}

image_left :=
{
Expand Down Expand Up @@ -183,7 +206,9 @@ init script:
is_promo := { styling.promo }

is_unsorted := { styling.remove_from_autocount }


is_back := { styling.back_face == "yes" or (styling.back_face == "if linked to front face" and get_front_face(card) != nil) }
frame_face := { if is_back() then "back/" else "front/" }

is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and lang_setting("is_legendary")(card.super_type)) }

Expand All @@ -195,17 +220,6 @@ init script:
popout_width := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.2 != "" then clamp(split.2, maximum: 1500, minimum: 0) else 0 }
popout_height := { split := split_comma(styling.popout_image_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, maximum: 2000, minimum: 0) else 0 }

module_alias := {
template := alias_custom_template
land_template := alias_custom_land_template
color_background(
type: "alias",
base_hybrid: card_hybrid,
artifact_blend: "white",
hybrid_blend: "white",
multicolor_blend: "black"
)
}
############################################################## Extra style options

styling field:
Expand Down Expand Up @@ -239,6 +253,14 @@ styling field:

include file: /magic-modules.mse-include/texts/styling_fields

styling field:
type: choice
name: back face
description: Use the dark back face frame?
choice: yes
choice: if linked to front face
choice: no
initial: if linked to front face
styling field:
type: choice
name: PT color scheme
Expand Down Expand Up @@ -306,25 +328,25 @@ card style:
right width: 42
top width: 45
bottom width: 66
z index: 0
z index: 1
card color:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 1
z index: 3
render style: image
popup style: in place
image: { card_background() }
mask: foil_mask.png
mask: { frame_face() + "card_mask.png" }
############################# Image
image:
left: { image_left() }
top: { image_top() }
right: { image_right() }
bottom: { image_bottom() }
z index: 10
mask: { crop("image_mask.png", offset_x: image_left(), offset_y: image_top(), width: image_right()-image_left(), height: image_bottom()-image_top()) }
z index: 0
mask: { crop(frame_face() + "image_mask.png", offset_x: image_left(), offset_y: image_top(), width: image_right()-image_left(), height: image_bottom()-image_top()) }
mainframe image:
left: { popout_left() }
top: { popout_top() }
Expand Down Expand Up @@ -394,6 +416,13 @@ extra card field:
editable: false
save value: false
show statistics: false
extra card field:
type: choice
name: sun
script: card.card_color
editable: false
save value: false
show statistics: false
extra card field:
type: choice
name: foil layer
Expand Down Expand Up @@ -455,7 +484,6 @@ extra card style:
else if color == "land" and count > 1 then template("c", type: "pt")
else if color == "hybrid" and count == 2 then masked_blend(mask: "special_blend_pt.png", dark: template(pure.0, type: "pt"), light: template(pure.1, type: "pt"))
else card_ptbox()
mask: pt_mask.png
crown:
left: 0
top: 0
Expand All @@ -465,7 +493,15 @@ extra card style:
visible: { is_crowned() }
render style: image
image: { card_crown() }
mask: crown_mask.png
sun:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 50
visible: { get_back_face(card) != nil and not is_back() }
render style: image
image: { "front/sun.png" }
foil layer:
left: 0
top: 0
Expand All @@ -475,7 +511,7 @@ extra card style:
visible: { styling.overlay != "none" and styling.overlay != "" }
render style: image
image: { if styling.overlay == "" then "" else styling.overlay + "/overlay.png" }
mask: { "foil_mask" + (if is_stamped() then "_rare" else "") + (if card.pt != "" then "_pt" else "") + (if is_crowned() then "_crown" else "") + ".png"}
mask: { if is_back() then "" else "front/foil_mask" + (if is_stamped() then "_rare" else "") + (if card.pt != "" then "_pt" else "") + (if is_crowned() then "_crown" else "") + ".png"}
card stamp border:
left: 0
top: 0
Expand All @@ -497,25 +533,25 @@ extra card style:
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 12
z index: 2
render style: image
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "name") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.nameline_opacity_percentage, default: 70)) else card_textboxes() }
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "name") then set_alpha(card_typebox(), alpha: get_alpha_percentage(styling.nameline_opacity_percentage, default: 70)) else card_typebox() }
mask: name_mask.png
typeline box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 12
z index: 2
render style: image
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "type") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.typeline_opacity_percentage, default: 70)) else card_textboxes() }
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "type") then set_alpha(card_typebox(), alpha: get_alpha_percentage(styling.typeline_opacity_percentage, default: 70)) else card_typebox() }
mask: type_mask.png
rules box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 12
z index: 2
render style: image
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "text") then set_alpha(card_textboxes(), alpha: get_alpha_percentage(styling.textbox_opacity_percentage, default: 80)) else card_textboxes() }
image: { if styling.image_location == "whole card" or contains(styling.image_location, match: "text") then set_alpha(card_textbox(), alpha: get_alpha_percentage(styling.textbox_opacity_percentage, default: 80)) else card_textbox() }
mask: text_mask.png
Binary file modified data/magic-m15-showcase-innistrad-mid.mse-style/text_mask.png
Binary file modified data/magic-m15-showcase-innistrad-mid.mse-style/type_mask.png