Add eternities stellar sights (#148)

* add eternities stellar sights showcase frame
This commit is contained in:
GenevensiS
2025-09-23 21:35:26 +02:00
committed by GitHub
parent e7e2af5bbb
commit ed4e89c375
77 changed files with 789 additions and 26 deletions

View File

@@ -122,7 +122,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "colored" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "colored" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -156,7 +156,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "colored" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "colored" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -192,7 +192,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -157,7 +157,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount } is_unsorted := { styling.remove_from_autocount }

View File

@@ -115,7 +115,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount } is_unsorted := { styling.remove_from_autocount }

View File

@@ -101,7 +101,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -163,7 +163,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -121,7 +121,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -0,0 +1,359 @@
mse version: 2.1.2
game: magic
short name: Poster S. Sights
full name: Eternities Showcase
icon: card_sample.png
position hint: 095
version: 2024-10-01
depends on:
package: magic.mse-game
version: 2014-06-25
depends on:
package: magic-mana-large.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-modules.mse-include
version: 2024-10-01
depends on:
package: magic-mainframe-extras.mse-include
version: 2007-09-23
card width: 744
card height: 1039
card dpi: 297
### blanks by GenevensiS
### code by GenevensiS
############################################################## Extra scripts
init script:
swap_fonts_pt_default :=
[
name: {"Beleren Bold"},
size: {32.0},
color: {"white"},
vertical: {0},
italic: {"Beleren Bold"}
]
swap_fonts_body_default :=
[
name: {"MPlantin"},
size: {27.0},
color: {"white"},
vertical: {0},
italic: {"MPlantin-Italic"}
]
typeline_offset_top_1 := { 88 }
typeline_offset_width_1 := { -3 }
typeline_offset_left_1 := { 1 }
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: {26.0},
color: {"white"},
vertical: {0},
italic: {""}
]
transform_symbol_disabled_1 := { true }
nameline_offset_top_1 := { 581 }
nameline_offset_left_1 := { -3 }
nameline_offset_width_1 := { -5 }
casting_cost_offset_top_1 := { -2 }
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
size: {30.0},
color: {"white"},
vertical: {0},
italic: {""}
]
card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 }
invert_watermark_1 := { true }
watermark_offset_top_1 := { -28 }
watermark_offset_height_1 := { 28 }
template_prefix :=
[
border: "border/",
card: "card/",
pt: "pt/",
crown: "crown/",
alias: "alias/",
stamp: "stamp/",
nonstamp: "nonstamp/"
identity: "/magic-modules.mse-include/indicators/",
identity2: "/magic-modules.mse-include/indicators/",
]
template_suffix :=
[
border: ".png",
card: ".png",
pt: ".png",
crown: ".png",
alias: ".png",
stamp: ".png",
nonstamp: ".png"
identity: "identity.png",
identity2: "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] }
card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_nonstamp := { color_background(input: card.card_color, type: "nonstamp", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
pure_colors :=
{
sort_text(
order: if card_is_wedge(input) then "(wbgur)" else "(wubrg)",
(if chosen(card.card_color, choice:"white") then "w") +
(if chosen(card.card_color, choice:"blue") then "u") +
(if chosen(card.card_color, choice:"black") then "b") +
(if chosen(card.card_color, choice:"red") then "r") +
(if chosen(card.card_color, choice:"green") then "g")
)
}
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount }
is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and lang_setting("is_legendary")(card.super_type)) }
foil_mask_added_sections := { [] }
foil_mask_removed_sections := { [] }
chop_top := { split := split_comma(styling.chop_text_box); if length(split) > 0 and split[0] != "" and split[0] != "-" then clamp(split[0], maximum:500, minimum:-500) else 0 }
chop_bottom := { split := split_comma(styling.chop_text_box); if length(split) > 1 and split[1] != "" and split[1] != "-" then clamp(split[1], maximum:500, minimum:-500) else 0 }
chop_right := { split := split_comma(styling.chop_text_box); if length(split) > 2 and split[2] != "" and split[2] != "-" then clamp(split[2], maximum:500, minimum:-500) else 0 }
popout_left := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.0 != "" then clamp(split.0, maximum: 1500, minimum: -500) else 0 }
popout_top := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.1 != "" then clamp(split.1, maximum: 2000, minimum: -500) else 0 }
popout_width := { split := split_comma(styling.popout_art_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_art_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, maximum: 2000, minimum: 0) else 0 }
textbox_alpha := { min(1.0, max(0.0, get_alpha_percentage(styling.textbox_opacity_percentage, default: 50) - 0.2) * 1.25) }
art_left := { 0 }
art_top := { 0 }
art_width := { 744 }
art_height :=
{
if styling.stretch_art_to_whole_card then stylesheet.card_height
else 967
}
art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_height()) }
############################################################## Extra style options
styling field:
type: text
name: popout art coordinates
description: The coordinates for the popout image field, formatted as "left,top,width,height". Used to make the illustration jump in front of the frame.
styling field:
type: boolean
name: stretch art to whole card
description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects.
initial: no
styling field:
type: text
name: textbox opacity percentage
description: Set the opacity percentage for the textbox background. Opaque is 100, transparent is 0, default is 50.
include file: /magic-modules.mse-include/texts/styling_fields
styling field:
type: choice
name: PT color scheme
description: Use the selected color scheme for the PT box on two color cards. Canon is "land" on hybrid cards, "gold" otherwise.
choice: canon
choice: gold
choice: hybrid
choice: colored
choice: land
initial: canon
include file: /magic-modules.mse-include/rarities/styling_fields
include file: /magic-modules.mse-include/watermarks/styling_fields
include file: /magic-modules.mse-include/foils/styling_fields
include file: /magic-modules.mse-include/information/styling_fields
include file: /magic-modules.mse-include/symbol-fonts/styling_fields
include file: /magic-modules.mse-include/fonts/styling_fields
############################################################## Card fields
include file: /magic-modules.mse-include/information/card_fields
include file: /magic-modules.mse-include/stamps/card_fields
include file: /magic-modules.mse-include/corners/card_fields
include file: /magic-modules.mse-include/watermarks/card_fields
include file: /magic-modules.mse-include/separators/card_fields
include file: /magic-modules.mse-include/namelines/card_fields
include file: /magic-modules.mse-include/typelines/card_fields
include file: /magic-modules.mse-include/foils/card_fields
card style:
############################# Background stuff
border color:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 210
mask: border_mask.png
card color:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 200
popup style: in place
render style: image
image: { card_background() }
mask: card_mask.png
############################# Image
image:
left: { art_left() }
top: { art_top() }
width: { art_width() }
height: { art_height() }
z index: 100
mask: { art_mask() }
mainframe image:
left: { popout_left() }
top: { popout_top() }
width: { popout_width() }
height: { popout_height() }
z index: 1000
############################# Text box
text:
left: 65
top: { 727 + chop_top() + (if is_stamped() then 2 else 0) + body_font_vertical() }
right: { 679 - chop_right() }
bottom: { 950 - chop_bottom() - if is_stamped() then 5 else 0 }
z index: 900
line height hard: { if is_modal(card.rule_text) then 0.9 else 1.2 }
line height line: 1.5
line height soft: 0.9
line height hard max: { if is_modal(card.rule_text) then 1.0 else 1.3 }
line height line max: 1.6
alignment:
script:
if (styling.center_text == "short text only" and
not contains(match:"\n", card.rule_text) and
card.flavor_text == "<i-flavor></i-flavor>" and
card_style.text.content_lines <= 2) or
styling.center_text == "always"
then "middle center"
else "middle left"
font:
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
scale down to: 7
color: { body_font_color() }
symbol font:
name: { styling.text_box_mana_symbols }
size: { body_font_size() }
scale down to: 7
############################# PT
pt:
left: 592
top: { 935 + pt_font_vertical() }
width: 101
height: 38
z index: 900
alignment: center middle shrink-overflow
font:
name: { pt_font() }
size: { pt_font_size() }
color: { pt_font_color() }
separator color: red
############################################################## Extra card fields
extra card field:
type: choice
name: pt box
editable: false
save value: false
show statistics: false
choice: pt box
extra card field:
type: choice
name: text box
editable: false
save value: false
show statistics: false
choice: text box
extra card field:
type: color
name: card stamp border
script: card.border_color
editable: false
save value: false
show statistics: false
extra card style:
pt box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 800
visible: { card.pt != "" }
render style: image
image:
script:
pure := pure_colors()
count := length(pure)
color := pt_colors()
if color == "gold" and count > 1 then template("m", type: "pt")
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()
text box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 195
render style: image
image: { set_alpha("textbox.png", alpha: textbox_alpha()) }
card stamp border:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 211
visible: { is_stamped() }
mask: stamp_border_mask.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@@ -0,0 +1,404 @@
mse version: 2.1.2
game: magic
short name: Stellar Sights
full name: Eternities Showcase
icon: card_sample.png
position hint: 095
version: 2024-10-01
depends on:
package: magic.mse-game
version: 2014-06-25
depends on:
package: magic-mana-large.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-modules.mse-include
version: 2024-10-01
depends on:
package: magic-mainframe-extras.mse-include
version: 2007-09-23
card width: 744
card height: 1039
card dpi: 297
### blanks by GenevensiS
### code by GenevensiS
############################################################## Extra scripts
init script:
swap_fonts_pt_default :=
[
name: {"Magic-Fomalhaut"},
size: {30.0},
color: {"white"},
vertical: {0},
italic: {""}
]
swap_fonts_body_default :=
[
name: {"MPlantin"},
size: {27.0},
color: {"white"},
vertical: {0},
italic: {"MPlantin-Italic"}
]
typeline_offset_top_1 := { 106 }
typeline_offset_width_1 := { -3 }
typeline_offset_left_1 := { 1 }
indicator_offset_top_1 := { -2 }
type_offset_top_1 := { 2 }
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: {26.0},
color: {"white"},
vertical: {0},
italic: {""}
]
transform_symbol_disabled_1 := { true }
nameline_offset_top_1 := { 577 }
nameline_offset_left_1 := { -11 }
nameline_offset_width_1 := { 18 }
swap_fonts_name_default :=
[
name: {"Magic-Fomalhaut"},
size: {30.0},
color: {"white"},
vertical: {0},
italic: {""}
]
card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 }
invert_watermark_1 := { true }
watermark_offset_top_1 := { -22 }
watermark_offset_height_1 := { 22 }
template_prefix :=
[
border: "border/",
card: "card/",
pt: "pt/",
crown: "crown/",
alias: "alias/",
stamp: "stamp/",
nonstamp: "nonstamp/"
identity: "/magic-modules.mse-include/indicators/",
identity2: "/magic-modules.mse-include/indicators/",
]
template_suffix :=
[
border: ".png",
card: ".png",
pt: ".png",
crown: ".png",
alias: ".png",
stamp: ".png",
nonstamp: ".png"
identity: "identity.png",
identity2: "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] }
card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_nonstamp := { color_background(input: card.card_color, type: "nonstamp", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
pure_colors :=
{
sort_text(
order: if card_is_wedge(input) then "(wbgur)" else "(wubrg)",
(if chosen(card.card_color, choice:"white") then "w") +
(if chosen(card.card_color, choice:"blue") then "u") +
(if chosen(card.card_color, choice:"black") then "b") +
(if chosen(card.card_color, choice:"red") then "r") +
(if chosen(card.card_color, choice:"green") then "g")
)
}
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount }
is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and lang_setting("is_legendary")(card.super_type)) }
foil_mask_added_sections := { [] }
foil_mask_removed_sections := { [] }
chop_top := { split := split_comma(styling.chop_text_box); if length(split) > 0 and split[0] != "" and split[0] != "-" then clamp(split[0], maximum:500, minimum:-500) else 0 }
chop_bottom := { split := split_comma(styling.chop_text_box); if length(split) > 1 and split[1] != "" and split[1] != "-" then clamp(split[1], maximum:500, minimum:-500) else 0 }
chop_right := { split := split_comma(styling.chop_text_box); if length(split) > 2 and split[2] != "" and split[2] != "-" then clamp(split[2], maximum:500, minimum:-500) else 0 }
popout_left := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.0 != "" then clamp(split.0, maximum: 1500, minimum: -500) else 0 }
popout_top := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.1 != "" then clamp(split.1, maximum: 2000, minimum: -500) else 0 }
popout_width := { split := split_comma(styling.popout_art_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_art_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, maximum: 2000, minimum: 0) else 0 }
namebox_alpha := { get_alpha_percentage(styling.namebox_opacity_percentage, default: 70) }
textbox_alpha := { get_alpha_percentage(styling.textbox_opacity_percentage, default: 70) }
art_left := { 0 }
art_top := { 0 }
art_width := { 744 }
art_height :=
{
if styling.stretch_art_to_whole_card then stylesheet.card_height
else if textbox_alpha() <= 0.985 then 958
else if namebox_alpha() <= 0.985 then 685
else 619
}
art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_height()) }
############################################################## Extra style options
styling field:
type: text
name: popout art coordinates
description: The coordinates for the popout image field, formatted as "left,top,width,height". Used to make the illustration jump in front of the frame.
styling field:
type: boolean
name: stretch art to whole card
description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects.
initial: no
styling field:
type: color
name: namebox color
description: Use the specified color for the namebox background.
choice:
name: black
color: rgb(0,0,0)
choice:
name: white
color: rgb(255,255,255)
initial: black
styling field:
type: text
name: namebox opacity percentage
description: Set the opacity percentage for the name background. Opaque is 100, transparent is 0, default is 70.
styling field:
type: color
name: textbox color
description: Use the specified color for the textbox background.
choice:
name: black
color: rgb(0,0,0)
choice:
name: white
color: rgb(255,255,255)
initial: black
styling field:
type: text
name: textbox opacity percentage
description: Set the opacity percentage for the textbox background. Opaque is 100, transparent is 0, default is 70.
include file: /magic-modules.mse-include/texts/styling_fields
styling field:
type: choice
name: PT color scheme
description: Use the selected color scheme for the PT box on two color cards. Canon is "land" on hybrid cards, "gold" otherwise.
choice: canon
choice: gold
choice: hybrid
choice: colored
choice: land
initial: canon
include file: /magic-modules.mse-include/rarities/styling_fields
include file: /magic-modules.mse-include/watermarks/styling_fields
include file: /magic-modules.mse-include/foils/styling_fields
include file: /magic-modules.mse-include/information/styling_fields
include file: /magic-modules.mse-include/symbol-fonts/styling_fields
include file: /magic-modules.mse-include/fonts/styling_fields
############################################################## Card fields
include file: /magic-modules.mse-include/information/card_fields
include file: /magic-modules.mse-include/stamps/card_fields
include file: /magic-modules.mse-include/corners/card_fields
include file: /magic-modules.mse-include/watermarks/card_fields
include file: /magic-modules.mse-include/separators/card_fields
include file: /magic-modules.mse-include/namelines/card_fields
include file: /magic-modules.mse-include/typelines/card_fields
include file: /magic-modules.mse-include/foils/card_fields
card style:
############################# Background stuff
border color:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 190
mask: border_mask.png
card color:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 200
popup style: in place
render style: image
image: { card_background() }
mask: card_mask.png
############################# Image
image:
left: { art_left() }
top: { art_top() }
width: { art_width() }
height: { art_height() }
z index: 100
mask: { art_mask() }
mainframe image:
left: { popout_left() }
top: { popout_top() }
width: { popout_width() }
height: { popout_height() }
z index: 1000
############################# Text box
text:
left: 65
top: { 740 + chop_top() + (if is_stamped() then 2 else 0) + body_font_vertical() }
right: { 679 - chop_right() }
bottom: { 950 - chop_bottom() - if is_stamped() then 5 else 0 }
z index: 900
line height hard: { if is_modal(card.rule_text) then 0.9 else 1.2 }
line height line: 1.5
line height soft: 0.9
line height hard max: { if is_modal(card.rule_text) then 1.0 else 1.3 }
line height line max: 1.6
alignment:
script:
if (styling.center_text == "short text only" and
not contains(match:"\n", card.rule_text) and
card.flavor_text == "<i-flavor></i-flavor>" and
card_style.text.content_lines <= 2) or
styling.center_text == "always"
then "middle center"
else "middle left"
font:
name: { body_font() }
italic name: { body_font_italic() }
size: { body_font_size() }
scale down to: 7
color: { body_font_color() }
symbol font:
name: { styling.text_box_mana_symbols }
size: { body_font_size() }
scale down to: 7
############################# PT
pt:
left: 603
top: { 937 + pt_font_vertical() }
width: 77
height: 33
z index: 900
alignment: center middle shrink-overflow
font:
name: { pt_font() }
size: { pt_font_size() }
color: { pt_font_color() }
separator color: red
############################################################## Extra card fields
extra card field:
type: choice
name: name box
editable: false
save value: false
show statistics: false
choice: name box
extra card field:
type: choice
name: text box
editable: false
save value: false
show statistics: false
choice: text box
extra card field:
type: choice
name: pt box
editable: false
save value: false
show statistics: false
choice: pt box
extra card field:
type: color
name: card stamp border
script: card.border_color
editable: false
save value: false
show statistics: false
extra card style:
pt box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 800
visible: { card.pt != "" }
render style: image
image:
script:
pure := pure_colors()
count := length(pure)
color := pt_colors()
if color == "gold" and count > 1 then template("m", type: "pt")
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()
name box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 195
render style: image
image: { set_alpha(recolor_image("namebox.png", color: styling.namebox_color), alpha: namebox_alpha()) }
text box:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 195
render style: image
image: { set_alpha(recolor_image("textbox.png", color: styling.textbox_color), alpha: textbox_alpha()) }
card stamp border:
left: 0
top: 0
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 210
visible: { is_stamped() }
mask: stamp_border_mask.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -124,7 +124,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount } is_unsorted := { styling.remove_from_autocount }

View File

@@ -164,7 +164,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -121,7 +121,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -99,7 +99,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -115,7 +115,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -97,7 +97,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -141,7 +141,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount } is_unsorted := { styling.remove_from_autocount }

View File

@@ -142,7 +142,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }
is_unsorted := { styling.remove_from_autocount } is_unsorted := { styling.remove_from_autocount }

View File

@@ -97,7 +97,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -124,7 +124,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -217,7 +217,7 @@ init script:
card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_background_2 := { color_background(input: card.card_color_2, type: "page", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_background_2 := { color_background(input: card.card_color_2, type: "page", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
@@ -235,7 +235,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -149,7 +149,7 @@ init script:
card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_border := { color_background(input: card.card_color, type: "border", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_background := { color_background(input: card.card_color, type: "card", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_ptbox := { color_background(input: card.card_color, type: "pt", base_hybrid: card_hybrid, multicolor_blend: "white", hybrid_blend: "white", artifact_blend: "white") }
card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_crown := { color_background(input: card.card_color, type: "crown", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_alias := { color_background(input: card.card_color, type: "alias", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") } card_stamp := { color_background(input: card.card_color, type: "stamp", base_hybrid: card_hybrid, multicolor_blend: "black", hybrid_blend: "white", artifact_blend: "white") }
@@ -167,7 +167,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -123,7 +123,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -147,7 +147,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -146,7 +146,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }

View File

@@ -110,7 +110,7 @@ init script:
) )
} }
pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme } pt_colors := { if styling.PT_color_scheme == "canon" then pt_colors_canon() else styling.PT_color_scheme }
pt_colors_canon := { if is_hybrid_cost() then "land" else "gold" } pt_colors_canon := { if contains(card.card_color, match: "hybrid") then "land" else "gold" }
is_promo := { styling.promo } is_promo := { styling.promo }