diff --git a/data/magic-expedition-33.mse-style/style b/data/magic-expedition-33.mse-style/style index 276fdee1e..e879d6c86 100644 --- a/data/magic-expedition-33.mse-style/style +++ b/data/magic-expedition-33.mse-style/style @@ -335,7 +335,7 @@ extra card field: extra card field: type: color name: stamp border - script: rgb(0,0,0) + script: card.border_color editable: false save value: false show statistics: false diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_borderless_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_borderless_mask.png new file mode 100644 index 000000000..7a25aa433 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_borderless_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_extended_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_extended_mask.png new file mode 100644 index 000000000..2687e175c Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_extended_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_fade_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_fade_mask.png new file mode 100644 index 000000000..9e84819bb Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/border_fade_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/a.png new file mode 100644 index 000000000..b9cc0e138 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/b.png new file mode 100644 index 000000000..91677b2ff Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/c.png new file mode 100644 index 000000000..55d20e4dc Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/g.png new file mode 100644 index 000000000..8c99dc217 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/m.png new file mode 100644 index 000000000..0a62c7a78 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/r.png new file mode 100644 index 000000000..bb24466b0 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/u.png new file mode 100644 index 000000000..eb0edfb32 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/w.png new file mode 100644 index 000000000..88c7e0e24 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_mask.png new file mode 100644 index 000000000..7de0c43a8 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_sample.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_sample.png new file mode 100644 index 000000000..fbb5c0425 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/card_sample.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/a.png new file mode 100644 index 000000000..ece02c269 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/b.png new file mode 100644 index 000000000..a306c06c7 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/c.png new file mode 100644 index 000000000..915594b20 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/g.png new file mode 100644 index 000000000..82f2f9f2f Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/m.png new file mode 100644 index 000000000..d63ebd54d Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/r.png new file mode 100644 index 000000000..24522404e Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/u.png new file mode 100644 index 000000000..a646abd9b Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/w.png new file mode 100644 index 000000000..fc896b934 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/crown/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/foil_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/foil_mask.png new file mode 100644 index 000000000..f1402dae1 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/foil_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/image_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/image_mask.png new file mode 100644 index 000000000..79a8351b6 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/image_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/a.png new file mode 100644 index 000000000..9917f729f Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/b.png new file mode 100644 index 000000000..9dfd4911a Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/c.png new file mode 100644 index 000000000..4f399c236 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/g.png new file mode 100644 index 000000000..17b7fa844 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/m.png new file mode 100644 index 000000000..c8c18ff94 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/r.png new file mode 100644 index 000000000..298f0cfcc Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/u.png new file mode 100644 index 000000000..6a1390eeb Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/w.png new file mode 100644 index 000000000..86dfc5bf8 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/noncrown/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/a.png new file mode 100644 index 000000000..cf59c7cf1 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/b.png new file mode 100644 index 000000000..c9e7027ae Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/c.png new file mode 100644 index 000000000..faeef27dd Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/g.png new file mode 100644 index 000000000..01eaf2f33 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/m.png new file mode 100644 index 000000000..34da5f2a4 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/r.png new file mode 100644 index 000000000..6a6335f9d Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/u.png new file mode 100644 index 000000000..6273625c0 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/w.png new file mode 100644 index 000000000..c3580242c Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/nonstamp/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/a.png new file mode 100644 index 000000000..1238e5b26 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/b.png new file mode 100644 index 000000000..06c43b0df Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/c.png new file mode 100644 index 000000000..eadfda575 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/g.png new file mode 100644 index 000000000..f4e8e2435 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/m.png new file mode 100644 index 000000000..cb0c17fe3 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/r.png new file mode 100644 index 000000000..10cdcc4ec Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/u.png new file mode 100644 index 000000000..7ea53e1e3 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/w.png new file mode 100644 index 000000000..de12e7de7 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/pt/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/special_blend_pt.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/special_blend_pt.png new file mode 100644 index 000000000..1c8c9feea Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/special_blend_pt.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/a.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/a.png new file mode 100644 index 000000000..d46f0c963 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/a.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/b.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/b.png new file mode 100644 index 000000000..60801b00e Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/b.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/c.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/c.png new file mode 100644 index 000000000..7875f4a98 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/c.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/g.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/g.png new file mode 100644 index 000000000..5721a830b Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/g.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/m.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/m.png new file mode 100644 index 000000000..be4fc92b2 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/m.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/r.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/r.png new file mode 100644 index 000000000..4d78e42cc Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/r.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/u.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/u.png new file mode 100644 index 000000000..63e0f6024 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/u.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/w.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/w.png new file mode 100644 index 000000000..cb8643970 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp/w.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp_border_mask.png b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp_border_mask.png new file mode 100644 index 000000000..89c05de13 Binary files /dev/null and b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/stamp_border_mask.png differ diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style new file mode 100644 index 000000000..a89e39230 --- /dev/null +++ b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style @@ -0,0 +1,382 @@ +mse version: 2.5.6 +game: magic +short name: Web-Slinger +full name: Spiderman 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: {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_left_1 := { 2 } + rarity_offset_top_1 := { 2 } + indicator_offset_left_1 := { -4 } + typeline_character_limit := 34 + swap_fonts_type_default := + [ + name: {"Beleren Bold"}, + size: { 26.0 - max(0, (length(to_text(card.type)) - typeline_character_limit) / 3) }, + color: {"white"}, + vertical: {0}, + italic: {""} + ] + + transform_symbol_disabled_1 := { true } + casting_cost_offset_top_1 := { 1 } + casting_cost_offset_left_1 := { 1 } + 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 } + + template_prefix := + [ + border: "border/", + card: "card/", + pt: "pt/", + crown: "crown/", + noncrown: "noncrown/", + 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", + noncrown: ".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_noncrown := { color_background(input: card.card_color, type: "noncrown", 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 } + + art_left := { 0 } + art_width := { stylesheet.card_width } + art_top := { if styling.stretch_art_to_whole_card then 0 else if styling.border == "yes" then 94 else 0 } + art_bottom := { if styling.stretch_art_to_whole_card or styling.border == "no" or styling.border == "fade" then stylesheet.card_height else if styling.border == "only copyright" then 957 else 595 } + art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_bottom() - art_top()) } + +############################################################## 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 + +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 +styling field: + type: choice + name: legend crown + description: Use the legend crown? + choice: yes + choice: if legendary + choice: no + initial: if legendary + +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 + +styling field: + type: choice + name: border + description: Use a border? + choice: yes + choice: only copyright + choice: fade + choice: no + initial: only copyright + +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: 150 + visible: { styling.border != "no" } + mask: { "border_" + (if styling.border == "only copyright" then "borderless_" else if styling.border == "fade" then "fade_" else "extended_") + "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() } + bottom: { art_bottom() } + 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: { 659 + chop_top() + body_font_vertical() } + right: { 679 - chop_right() } + bottom: { 949 - (if is_stamped() then 10 else 0) - chop_bottom() } + 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 == "" 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: 594 + top: { 932 + pt_font_vertical() } + width: 92 + height: 45 + 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: crown + script: card.card_color + editable: false + save value: false + show statistics: false +extra card field: + type: choice + name: stamp rim + script: card.card_color + editable: false + save value: false + show statistics: false +extra card field: + type: color + name: 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() + crown: + left: 0 + top: 0 + width: { stylesheet.card_width } + height: { stylesheet.card_height } + z index: 190 + render style: image + image: { if is_crowned() then card_crown() else card_noncrown() } + stamp rim: + left: 0 + top: 0 + width: { stylesheet.card_width } + height: { stylesheet.card_height } + z index: 200 + render style: image + image: { if is_stamped() then card_stamp() else card_nonstamp() } + stamp border: + left: 0 + top: 0 + width: { stylesheet.card_width } + height: { stylesheet.card_height } + z index: 150 + visible: { (styling.border == "only copyright" or styling.border == "yes") and is_stamped() } + mask: stamp_border_mask.png