diff --git a/data/magic-blends.mse-include/new-blends b/data/magic-blends.mse-include/new-blends index 74014159f..c164034e0 100644 --- a/data/magic-blends.mse-include/new-blends +++ b/data/magic-blends.mse-include/new-blends @@ -1043,7 +1043,17 @@ module_nyx := { ) } module_snow := { color_background(type:"snow", base_hybrid:card_hybrid, folder:template_prefix["snow"]) } -module_alias := { color_background(type:"alias", base_hybrid:card_hybrid, folder:template_prefix["alias"]) } +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" + ) +} module_ptbox := { if vehicle then template_prefix["pt"] + "vpt.png" else color_background(type:"pt", base_hybrid:pt_hybrid, folder:template_prefix["pt"]) diff --git a/data/magic-m15-showcase-aetherdrift-first-place-walker.mse-style/style b/data/magic-m15-showcase-aetherdrift-first-place-walker.mse-style/style index a655efd8c..af5008b82 100644 --- a/data/magic-m15-showcase-aetherdrift-first-place-walker.mse-style/style +++ b/data/magic-m15-showcase-aetherdrift-first-place-walker.mse-style/style @@ -99,7 +99,9 @@ init script: } border_color_default := { rgb(246,193,19) } - + alias_colors := { rgb(246,193,19) } + alias_offset_top_1 := {-10} + loyalty_boxes_image_folder := { "/magic-m15-showcase-aetherdrift-first-place-walker.mse-style/loyalty/" } loyalty_cost_offset_text_margin_1 := { 9 } @@ -231,6 +233,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/namelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-aetherdrift-first-place.mse-style/style b/data/magic-m15-showcase-aetherdrift-first-place.mse-style/style index 449089302..91c85ffcf 100644 --- a/data/magic-m15-showcase-aetherdrift-first-place.mse-style/style +++ b/data/magic-m15-showcase-aetherdrift-first-place.mse-style/style @@ -77,6 +77,7 @@ init script: card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 4 else 0 } border_color_default := { rgb(246,193,19) } + alias_colors := { rgb(246,193,19) } #foil_mask_added_sections := { # output := [] @@ -199,6 +200,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-assassins-creed-memory-corridor.mse-style/style b/data/magic-m15-showcase-assassins-creed-memory-corridor.mse-style/style index 8e31474c1..8fc011515 100644 --- a/data/magic-m15-showcase-assassins-creed-memory-corridor.mse-style/style +++ b/data/magic-m15-showcase-assassins-creed-memory-corridor.mse-style/style @@ -143,6 +143,8 @@ init script: if is_stamped() then output := output + ["foil_mask_triangle.png"] output }@(face:1) + + alias_mask := { alias_src + "masks/remove_color.png" } ############################################################## Extra style options @@ -210,6 +212,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-bloomburrow-borderless-anime.mse-style/style b/data/magic-m15-showcase-bloomburrow-borderless-anime.mse-style/style index ef9c6f6f5..a33f8a8c0 100644 --- a/data/magic-m15-showcase-bloomburrow-borderless-anime.mse-style/style +++ b/data/magic-m15-showcase-bloomburrow-borderless-anime.mse-style/style @@ -178,6 +178,11 @@ init script: output }@(face:1) + alias_colors := { + if styling.color_scheme == "all gold" then rgb(255,226,94) else styling[color_name_map[input] + "_color"] + } + alias_offset_top_1 := {-12} + alias_mask := { alias_src + "masks/remove_outline.png" } ############################################################## Extra style options styling field: @@ -371,6 +376,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-bloomburrow-woodland.mse-style/style b/data/magic-m15-showcase-bloomburrow-woodland.mse-style/style index 386ddd4b7..5e20d9cdd 100644 --- a/data/magic-m15-showcase-bloomburrow-woodland.mse-style/style +++ b/data/magic-m15-showcase-bloomburrow-woodland.mse-style/style @@ -295,6 +295,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-capenna-art-deco-walker.mse-style/style b/data/magic-m15-showcase-capenna-art-deco-walker.mse-style/style index a38c1ac67..64ee07c3b 100644 --- a/data/magic-m15-showcase-capenna-art-deco-walker.mse-style/style +++ b/data/magic-m15-showcase-capenna-art-deco-walker.mse-style/style @@ -224,6 +224,30 @@ init script: include file: /magic-modules.mse-include/loyalty/init_script + alias_colors := { + [ + w: rgb(121, 110, 102), + u: rgb(5, 70, 80), + b: rgb(32, 28, 26), + r: rgb(150, 10, 68), + g: rgb(22, 53, 17), + a: rgb(79, 74, 75), + m: rgb(119, 102, 79), + c: rgb(53, 39, 31) + ][input] + } + 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" + ) + } + alias_offset_top_1 := {6} ############################################################## Extra style options styling field: @@ -351,6 +375,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-capenna-art-deco.mse-style/style b/data/magic-m15-showcase-capenna-art-deco.mse-style/style index 03780a5f3..3ee7117a0 100644 --- a/data/magic-m15-showcase-capenna-art-deco.mse-style/style +++ b/data/magic-m15-showcase-capenna-art-deco.mse-style/style @@ -172,6 +172,30 @@ init script: popout_width := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.2 != "" then clamp(split.2, minimum: 0, maximum: 1500) else 0 } popout_height := { split := split_comma(styling.popout_art_coordinates); if length(split) > 3 and split.3 != "" then clamp(split.3, minimum: 0, maximum: 2000) else 0 } + alias_colors := { + [ + w: rgb(121, 110, 102), + u: rgb(5, 70, 80), + b: rgb(32, 28, 26), + r: rgb(150, 10, 68), + g: rgb(22, 53, 17), + a: rgb(79, 74, 75), + m: rgb(119, 102, 79), + c: rgb(53, 39, 31) + ][input] + } + 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" + ) + } + alias_offset_top_1 := {6} ############################################################## Extra style options include file: /magic-modules.mse-include/texts/styling_fields @@ -242,6 +266,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-capenna-golden-age.mse-style/alias.png b/data/magic-m15-showcase-capenna-golden-age.mse-style/alias.png new file mode 100644 index 000000000..b74b190b5 Binary files /dev/null and b/data/magic-m15-showcase-capenna-golden-age.mse-style/alias.png differ diff --git a/data/magic-m15-showcase-capenna-golden-age.mse-style/style b/data/magic-m15-showcase-capenna-golden-age.mse-style/style index 554c24263..e4acd48fc 100644 --- a/data/magic-m15-showcase-capenna-golden-age.mse-style/style +++ b/data/magic-m15-showcase-capenna-golden-age.mse-style/style @@ -78,6 +78,7 @@ init script: then 6 else 0 } + alias_offset_top_1 := {-1} invert_watermark_1 := { true } @@ -207,6 +208,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: @@ -363,7 +366,12 @@ extra card field: save value: false show statistics: false choice: girder - +extra card field: + type: choice + name: alias bar gild + script: card.card_color + save value: false + editable: false extra card style: card background: left: 0 @@ -460,3 +468,13 @@ extra card style: z index: 110 render style: image image: { if is_crowned() then "crown_girder.png" else "girder.png" } + alias bar gild: + left: { alias_left_1() } + top: { alias_top_1() } + width: { alias_width_1() } + height: { alias_height_1() } + z index: 881 + render style: image + visible: { alias_enabled() } + image: alias.png + diff --git a/data/magic-m15-showcase-capenna-skyscraper.mse-style/style b/data/magic-m15-showcase-capenna-skyscraper.mse-style/style index cded8a346..5a5376a70 100644 --- a/data/magic-m15-showcase-capenna-skyscraper.mse-style/style +++ b/data/magic-m15-showcase-capenna-skyscraper.mse-style/style @@ -79,6 +79,19 @@ init script: else 0 } + alias_colors := { + [ + w: rgb(255, 255, 255), + u: rgb(6, 115, 184), + b: rgb(39, 38, 36), + r: rgb(236, 57, 37), + g: rgb(6, 120, 69), + a: rgb(239, 238, 236), + m: rgb(243, 210, 105), + c: rgb(173, 151, 137) + ][input] + } + template_prefix := [ card: "card/", @@ -211,6 +224,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: @@ -225,7 +240,7 @@ card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 200 + z index: 220 popup style: in place render style: image image: { card_background() } diff --git a/data/magic-m15-showcase-dominaria-stained-glass.mse-style/style b/data/magic-m15-showcase-dominaria-stained-glass.mse-style/style index f0e1194c9..1d0dbd2ea 100644 --- a/data/magic-m15-showcase-dominaria-stained-glass.mse-style/style +++ b/data/magic-m15-showcase-dominaria-stained-glass.mse-style/style @@ -33,7 +33,8 @@ card dpi: 258.5 init script: card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } - + alias_colors := { rgb(62, 48, 44) } + swap_fonts_pt_default := [ name: {"Beleren Bold"}, @@ -199,6 +200,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-duskmourn-paranormal.mse-style/style b/data/magic-m15-showcase-duskmourn-paranormal.mse-style/style index da0fb383b..00e3c1053 100644 --- a/data/magic-m15-showcase-duskmourn-paranormal.mse-style/style +++ b/data/magic-m15-showcase-duskmourn-paranormal.mse-style/style @@ -35,6 +35,10 @@ init script: nameline_offset_top_1 := { -14 } transform_symbol_disabled_1 := { true } casting_cost_offset_top_1 := { 1 } + alias_offset_top_1 := { 4 } + alias_offset_left_1 := {-21} + alias_offset_width_1 := { -42 } + alias_colors := { rgb(52, 44, 42) } type_offset_top_1 := { -1 } rarity_offset_top_1 := { 3 } @@ -89,6 +93,18 @@ init script: output }@(face:1) + 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" + ) + } card_hybrid_2_h := { masked_blend( @@ -108,6 +124,7 @@ init script: 6: horizontal_card_hybrid[6] 7: horizontal_card_hybrid[7] ] + card_hybrid := [ radial: card_hybrid["radial"] @@ -115,7 +132,6 @@ init script: overlay: card_hybrid["overlay"] vertical: card_hybrid["vertical"] ] - template_prefix := [ border: "border/", @@ -254,6 +270,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-eldraine-tales.mse-style/alias_mask.png b/data/magic-m15-showcase-eldraine-tales.mse-style/alias_mask.png new file mode 100644 index 000000000..9513d3438 Binary files /dev/null and b/data/magic-m15-showcase-eldraine-tales.mse-style/alias_mask.png differ diff --git a/data/magic-m15-showcase-eldraine-tales.mse-style/style b/data/magic-m15-showcase-eldraine-tales.mse-style/style index b8f2aeacb..959629ae0 100644 --- a/data/magic-m15-showcase-eldraine-tales.mse-style/style +++ b/data/magic-m15-showcase-eldraine-tales.mse-style/style @@ -73,6 +73,34 @@ init script: ] card_stamp_offset_width_1 := { 1 } + 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" + ) + } + alias_colors := { + [ + w: rgb(250, 248, 237), + u: rgb(68, 159, 206), + b: rgb(104, 86, 116), + r: rgb(211, 74, 62), + g: rgb(155, 167, 77), + a: rgb(90, 117, 148), + m: rgb(171, 140, 29), + c: rgb(104, 86, 115) + ][input] + } + alias_offset_top_1 := {2} + alias_offset_width_1 := {2} + alias_offset_height_1 := {6} + alias_offset_left_1 := {23} + template_prefix := [ @@ -261,6 +289,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: @@ -279,7 +309,7 @@ card style: popup style: in place render style: image image: { card_background() } - mask: card_mask.png + mask: { if alias_enabled() then "alias_mask.png" else "card_mask.png" } ############################# Image image: left: 0 @@ -463,3 +493,4 @@ extra card style: render style: image image: { card_border() } mask: border_mask.png + diff --git a/data/magic-m15-showcase-etched-foil.mse-style/style b/data/magic-m15-showcase-etched-foil.mse-style/style index 9245650cd..570ed7267 100644 --- a/data/magic-m15-showcase-etched-foil.mse-style/style +++ b/data/magic-m15-showcase-etched-foil.mse-style/style @@ -95,6 +95,30 @@ init script: card_stamp_offset_top_1 := {5} card_ptbox := { color_background(type:"pt", base_hybrid:pt_hybrid, folder:"/magic-modules.mse-include/pts/375 m15/")} + alias_colors := { + [ + w: rgb(253, 254, 255), + u: rgb(7, 114, 182), + b: rgb(39, 38, 36), + r: rgb(210, 68, 54), + g: rgb(14, 111, 68), + a: rgb(150, 174, 178), + m: rgb(236, 210, 135), + c: rgb(168, 151, 141) + ][input] + } + module_alias := { + template := alias_custom_template + land_template := alias_custom_land_template + color_background( + type: "alias", + base_hybrid: card_hybrid, + artifact_blend: "black", + hybrid_blend: "white", + multicolor_blend: "white" + ) + } + ############################################################## Set info fields set info style: symbol: @@ -215,6 +239,7 @@ include file: /magic-modules.mse-include/card-symbols/card_fields include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/stamps/stamp_back include file: /magic-modules.mse-include/separators/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ikoria-crystal.mse-style/frame_mask.png b/data/magic-m15-showcase-ikoria-crystal.mse-style/frame_mask.png new file mode 100644 index 000000000..3e7a5e3b1 Binary files /dev/null and b/data/magic-m15-showcase-ikoria-crystal.mse-style/frame_mask.png differ diff --git a/data/magic-m15-showcase-ikoria-crystal.mse-style/style b/data/magic-m15-showcase-ikoria-crystal.mse-style/style index a34d51b15..a385b88e8 100644 --- a/data/magic-m15-showcase-ikoria-crystal.mse-style/style +++ b/data/magic-m15-showcase-ikoria-crystal.mse-style/style @@ -63,6 +63,18 @@ init script: italic: {""} ] + alias_colors := { + [ + w: rgb(167, 157, 135), + u: rgb(49, 67, 100), + b: rgb(39, 38, 36), + r: rgb(127, 34, 23), + g: rgb(25, 73, 43), + a: rgb(71, 72, 73), + m: rgb(123, 84, 26), + c: rgb(100, 81, 51) + ][input] + } transform_symbol_disabled_1 := { true } casting_cost_offset_top_1 := { 1 } nameline_offset_width_1 := { -2 } @@ -192,6 +204,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: @@ -199,25 +213,25 @@ card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 0 + z index: 500 mask: border_mask.png card color: left: 0 top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 1 + z index: 200 render style: image popup style: in place image: { card_background() } - mask: foil_mask.png + mask: frame_mask.png ############################# Image image: left: 0 top: 0 width: { stylesheet.card_width } height: 831 - z index: 10 + z index: 100 mask: { "image_mask" + (if card.pt != "" then "_pt" else "") + (if is_crowned() then "_crown" else "") + ".png" } mainframe image: left: { popout_left() } @@ -337,7 +351,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 40 + z index: 740 visible: { card.pt != "" } render style: image image: @@ -355,7 +369,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 40 + z index: 740 visible: { is_crowned() } render style: image image: { card_crown() } @@ -375,7 +389,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 30 + z index: 730 visible: { is_stamped() } mask: stamp_border_mask.png card stamp rim: @@ -383,7 +397,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 31 + z index: 731 render style: image image: { if is_stamped() then card_stamp() else "" } nameline box: @@ -391,7 +405,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 12 + z index: 312 render style: image image: { set_alpha("nameline.png", alpha: get_alpha_percentage(styling.nameline_opacity_percentage, default: 65)) } typeline box: @@ -399,7 +413,7 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 12 + z index: 312 render style: image image: { set_alpha("typeline.png", alpha: get_alpha_percentage(styling.typeline_opacity_percentage, default: 65)) } rules box: @@ -407,6 +421,6 @@ extra card style: top: 0 width: { stylesheet.card_width } height: { stylesheet.card_height } - z index: 12 + z index: 312 render style: image image: { set_alpha("rulesbox.png", alpha: get_alpha_percentage(styling.textbox_opacity_percentage, default: 65)) } diff --git a/data/magic-m15-showcase-innistrad-double-feature-walker.mse-style/style b/data/magic-m15-showcase-innistrad-double-feature-walker.mse-style/style index d991135c5..c2f80777e 100644 --- a/data/magic-m15-showcase-innistrad-double-feature-walker.mse-style/style +++ b/data/magic-m15-showcase-innistrad-double-feature-walker.mse-style/style @@ -53,6 +53,9 @@ init script: move_typeline := { if styling.tall_frame then 67 else 0 } + alias_colors := { rgb(32, 29, 27) } + alias_offset_top_1 := {-14} + alias_offset_text_top_1 := {-4} transform_symbol_disabled_1 := { true } card_symbol_offset_top_1 := { 1 } card_symbol_offset_left_1 := { 1 } @@ -211,6 +214,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/namelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-innistrad-double-feature.mse-style/style b/data/magic-m15-showcase-innistrad-double-feature.mse-style/style index 0a782a956..ab1a60b48 100644 --- a/data/magic-m15-showcase-innistrad-double-feature.mse-style/style +++ b/data/magic-m15-showcase-innistrad-double-feature.mse-style/style @@ -64,6 +64,7 @@ init script: italic: {""} ] + alias_colors := { rgb(32, 29, 27) } transform_symbol_disabled_1 := { true } nameline_offset_top_1 := { 1 } nameline_offset_width_1 := { -2 } @@ -210,6 +211,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-innistrad-mid.mse-style/style b/data/magic-m15-showcase-innistrad-mid.mse-style/style index 65ef9d57a..0a339b3b0 100644 --- a/data/magic-m15-showcase-innistrad-mid.mse-style/style +++ b/data/magic-m15-showcase-innistrad-mid.mse-style/style @@ -61,6 +61,7 @@ init script: italic: {""} ] + transform_symbol_disabled_1 := { true } card_symbol_offset_left_1 := { 2 } nameline_offset_top_1 := { 2 } @@ -77,6 +78,19 @@ init script: 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" + ) + } + card_hybrid_2 := { masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) @@ -181,6 +195,17 @@ 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: @@ -268,6 +293,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-innistrad-vow.mse-style/style b/data/magic-m15-showcase-innistrad-vow.mse-style/style index f2763525c..18ee26758 100644 --- a/data/magic-m15-showcase-innistrad-vow.mse-style/style +++ b/data/magic-m15-showcase-innistrad-vow.mse-style/style @@ -62,6 +62,7 @@ init script: italic: {""} ] + alias_offset_top_1 := {-2} transform_symbol_disabled_1 := { true } card_symbol_offset_left_1 := { 2 } nameline_offset_width_1 := { -8 } @@ -203,6 +204,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ixalan-caverns.mse-style/style b/data/magic-m15-showcase-ixalan-caverns.mse-style/style index 77642d8d1..0eb848366 100644 --- a/data/magic-m15-showcase-ixalan-caverns.mse-style/style +++ b/data/magic-m15-showcase-ixalan-caverns.mse-style/style @@ -76,6 +76,8 @@ init script: italic: {""} ] + alias_offset_top_1 := {-2} + alias_colors := { rgb(196, 193, 186) } card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } template_prefix := [card: "card/", pt: "pt/", crown: "crown/", identity: "/magic-modules.mse-include/indicators/"] @@ -197,6 +199,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ixalan-legends.mse-style/style b/data/magic-m15-showcase-ixalan-legends.mse-style/style index cf3713a19..9796263fa 100644 --- a/data/magic-m15-showcase-ixalan-legends.mse-style/style +++ b/data/magic-m15-showcase-ixalan-legends.mse-style/style @@ -50,6 +50,19 @@ init script: italic: {"MPlantin-Italic"} ] + alias_offset_top_1 :={8} + alias_colors := { + [ + w: rgb(241, 221, 151), + u: rgb(0, 90, 149), + b: rgb(43, 40, 57), + r: rgb(157, 43, 42), + g: rgb(74, 104, 52), + a: rgb(149, 168, 178), + m: rgb(164, 104, 46), + c: rgb(104, 55, 24) + ][input] + } typeline_offset_width_1 := { -2 } typeline_offset_left_1 := { 1 } swap_fonts_type_default := @@ -225,6 +238,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ixalan-treasure.mse-style/style b/data/magic-m15-showcase-ixalan-treasure.mse-style/style index 51abd1c5e..6227e0b39 100644 --- a/data/magic-m15-showcase-ixalan-treasure.mse-style/style +++ b/data/magic-m15-showcase-ixalan-treasure.mse-style/style @@ -75,6 +75,8 @@ init script: ] card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } + alias_offset_top_1 :={-3} + alias_colors := { rgb(100, 100, 100) } template_prefix := [card: "card/", pt: "pt/", crown: "crown/", identity: "/magic-modules.mse-include/indicators/"] template_suffix := [card: "card.png", pt: "pt.png", crown: "crown.png", identity: "identity.png"] @@ -197,6 +199,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/alias_mask.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/alias_mask.png new file mode 100644 index 000000000..f66572aaa Binary files /dev/null and b/data/magic-m15-showcase-kaldheim-dfc.mse-style/alias_mask.png differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/aetherprint.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/aetherprint.png deleted file mode 100644 index 87ead2a3f..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/aetherprint.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/artifact.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/artifact.png deleted file mode 100644 index 06a975b79..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/artifact.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/bcorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/bcorner.png deleted file mode 100644 index 87564b1c7..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/bcorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ccorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ccorner.png deleted file mode 100644 index 6578322f7..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ccorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/compass.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/compass.png deleted file mode 100644 index 5182ce796..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/compass.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/creature.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/creature.png deleted file mode 100644 index 4fedf3b73..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/creature.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/eldrazi.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/eldrazi.png deleted file mode 100644 index 4c3b4af61..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/eldrazi.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/enchantment.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/enchantment.png deleted file mode 100644 index 643e161d6..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/enchantment.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/gcorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/gcorner.png deleted file mode 100644 index a1c5e4ccc..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/gcorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/instant.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/instant.png deleted file mode 100644 index 59d0b7195..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/instant.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/land.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/land.png deleted file mode 100644 index 5825355a6..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/land.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/mcorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/mcorner.png deleted file mode 100644 index b7ddff02d..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/mcorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/moon.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/moon.png deleted file mode 100644 index 32bbbd14e..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/moon.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/multitype.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/multitype.png deleted file mode 100644 index 642904e21..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/multitype.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/night_circle.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/night_circle.png deleted file mode 100644 index 61752e793..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/night_circle.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/planeswalker.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/planeswalker.png deleted file mode 100644 index 92d2396dc..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/planeswalker.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/rcorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/rcorner.png deleted file mode 100644 index e520afed6..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/rcorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sorcery.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sorcery.png deleted file mode 100644 index c7907b68f..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sorcery.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/structure.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/structure.png deleted file mode 100644 index fe22a0ec3..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/structure.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sun_circle.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sun_circle.png deleted file mode 100644 index 988851d5f..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/sun_circle.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ucorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ucorner.png deleted file mode 100644 index 54df541cc..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/ucorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/wcorner.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/wcorner.png deleted file mode 100644 index af3c6eac7..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/corners/wcorner.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow.png deleted file mode 100644 index 17ddaeba7..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow2.png deleted file mode 100644 index 1223d4ad5..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/aarrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow.png deleted file mode 100644 index d5d02f5b7..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow2.png deleted file mode 100644 index f32ef742c..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/barrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow.png deleted file mode 100644 index f482ecaa8..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow2.png deleted file mode 100644 index a916fd5ae..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/carrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow.png deleted file mode 100644 index 1adf3d43b..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow2.png deleted file mode 100644 index 295ffda40..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/garrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow.png deleted file mode 100644 index ef48a0b56..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow2.png deleted file mode 100644 index 0320fe19d..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/marrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow.png deleted file mode 100644 index b6a194b90..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow2.png deleted file mode 100644 index ece12fd0b..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/rarrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow.png deleted file mode 100644 index 9e8373f61..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow2.png deleted file mode 100644 index 58f992229..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/uarrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow.png deleted file mode 100644 index 0b7d9be55..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow2.png b/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow2.png deleted file mode 100644 index 83575462b..000000000 Binary files a/data/magic-m15-showcase-kaldheim-dfc.mse-style/icons/warrow2.png and /dev/null differ diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/style b/data/magic-m15-showcase-kaldheim-dfc.mse-style/style index e84c369a5..8ae216a21 100644 --- a/data/magic-m15-showcase-kaldheim-dfc.mse-style/style +++ b/data/magic-m15-showcase-kaldheim-dfc.mse-style/style @@ -174,6 +174,23 @@ init script: transform_symbol_offset_left_2 := {-9} transform_symbol_offset_top_1 := { if is_legend() then 4 else -7 } transform_symbol_offset_top_2 := { if back_legend() then 4 else -7 } + alias_offset_top_1 := { if is_legend() then 4 else -8 } + alias_offset_top_2 := { if back_legend() then 4 else -8 } + alias_mask_1 := { "alias_mask.png" } + alias_mask_2 := { "alias_mask.png" } + alias_colors := { + [ + w: rgb(242, 239, 233), + u: rgb(20, 110, 161), + b: rgb(47, 45, 43), + r: rgb(202, 55, 18), + g: rgb(16, 134, 68), + a: rgb(214, 216, 216), + m: rgb(229, 191, 66), + c: rgb(148, 114, 95) + ][input] + } + ############################################################## Set info fields set info style: symbol: @@ -311,6 +328,7 @@ include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/stamps/stamp_back include file: /magic-modules.mse-include/watermarks/card_fields_dfc include file: /magic-modules.mse-include/separators/card_fields_dfc +include file: /magic-modules.mse-include/alias/card_fields_dfc card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-kaldheim.mse-style/style b/data/magic-m15-showcase-kaldheim.mse-style/style index 22da557a8..c0ca695ea 100644 --- a/data/magic-m15-showcase-kaldheim.mse-style/style +++ b/data/magic-m15-showcase-kaldheim.mse-style/style @@ -104,6 +104,21 @@ init script: }@(active:false, instance:1) mainframe_walker := { lang_setting("is_planeswalker")(card.type) } loyalty_textbox_mask := {"walker_mask.png"} + + alias_offset_top_1 := { if is_legend() then 4 else -8 } + alias_mask_1 := { "alias_mask.png" } + alias_colors := { + [ + w: rgb(242, 239, 233), + u: rgb(20, 110, 161), + b: rgb(47, 45, 43), + r: rgb(202, 55, 18), + g: rgb(16, 134, 68), + a: rgb(214, 216, 216), + m: rgb(229, 191, 66), + c: rgb(148, 114, 95) + ][input] + } ############################################################## Set info fields set info style: symbol: @@ -290,6 +305,7 @@ include file: /magic-modules.mse-include/stamps/stamp_back include file: /magic-modules.mse-include/watermarks/card_fields include file: /magic-modules.mse-include/separators/card_fields include file: /magic-modules.mse-include/loyalty/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-kamigawa-neon.mse-style/style b/data/magic-m15-showcase-kamigawa-neon.mse-style/style index 8d2bbfdd2..c1999d9a1 100644 --- a/data/magic-m15-showcase-kamigawa-neon.mse-style/style +++ b/data/magic-m15-showcase-kamigawa-neon.mse-style/style @@ -184,7 +184,30 @@ init script: ) else input } - + alias_offset_top_1 := {8} + alias_colors := { + [ + w: rgb(237, 230, 190), + u: rgb(11, 130, 150), + b: rgb(109, 23, 132), + r: rgb(171, 0, 65), + g: rgb(6, 116, 2), + a: rgb(152, 208, 218), + m: rgb(254, 187, 4), + c: rgb(191, 174, 163) + ][input] + } + module_alias := { + template := alias_custom_template + land_template := alias_custom_land_template + color_background( + type: "alias", + base_hybrid: card_hybrid, + artifact_blend: "black", + hybrid_blend: "white", + multicolor_blend: "black" + ) + } ############################################################## Extra style options styling field: @@ -318,6 +341,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/loyalty/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-kamigawa-ninja.mse-style/style b/data/magic-m15-showcase-kamigawa-ninja.mse-style/style index 10cf31ee3..fec8fd2e6 100644 --- a/data/magic-m15-showcase-kamigawa-ninja.mse-style/style +++ b/data/magic-m15-showcase-kamigawa-ninja.mse-style/style @@ -168,6 +168,20 @@ init script: ) ) } + alias_offset_top_1 := {-2} + alias_colors := { + [ + w: rgb(185, 174, 168), + u: rgb(27, 71, 122), + b: rgb(79, 77, 81), + r: rgb(142, 41, 49), + g: rgb(87, 118, 78), + a: rgb(146, 158, 165), + m: rgb(171, 148, 96), + c: rgb(202, 186, 169) + ][input] + } + ############################################################## Extra style options styling field: @@ -294,6 +308,7 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/loyalty/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-kamigawa-samurai.mse-style/style b/data/magic-m15-showcase-kamigawa-samurai.mse-style/style index 69a33934c..06d9bc2d9 100644 --- a/data/magic-m15-showcase-kamigawa-samurai.mse-style/style +++ b/data/magic-m15-showcase-kamigawa-samurai.mse-style/style @@ -158,6 +158,11 @@ init script: ) ) } + + alias_offset_top_1 := {-2} + alias_colors := { rgb(255, 255, 255) } + alias_offset_top_1 := {15} + alias_mask := { alias_src + "masks/remove_outline.png" } ############################################################## Extra style options styling field: @@ -284,6 +289,7 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/loyalty/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-lotr-scroll.mse-style/style b/data/magic-m15-showcase-lotr-scroll.mse-style/style index ad4e2b32e..0fa3e4504 100644 --- a/data/magic-m15-showcase-lotr-scroll.mse-style/style +++ b/data/magic-m15-showcase-lotr-scroll.mse-style/style @@ -73,6 +73,7 @@ init script: italic: {""} ] + old_card_hybrid := card_hybrid card_hybrid_2 := { if type == "loyaltycost" then template(colors.0) @@ -257,6 +258,19 @@ init script: then "" else crop(input, offset_x: offset_x, offset_y: offset_y, width: width, height: height) } + + alias_mask := { alias_src + "masks/remove_color.png" } + 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" + ) + } ############################################################## Extra style options @@ -358,6 +372,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-lotr.mse-style/style b/data/magic-m15-showcase-lotr.mse-style/style index 339946563..d4b47b54b 100644 --- a/data/magic-m15-showcase-lotr.mse-style/style +++ b/data/magic-m15-showcase-lotr.mse-style/style @@ -119,6 +119,19 @@ init script: if is_stamped() then output := output + ["foil_mask_triangle.png"] output }@(face:1) + + alias_colors := { + [ + w: rgb(248, 241, 212), + u: rgb(111, 164, 221), + b: rgb(165, 165, 166), + r: rgb(231, 115, 86), + g: rgb(123, 178, 126), + a: rgb(114, 153, 172), + m: rgb(254, 223, 134), + c: rgb(172, 167, 138) + ][input] + } ############################################################## Extra style options styling field: @@ -189,6 +202,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-monster-manual.mse-style/style b/data/magic-m15-showcase-monster-manual.mse-style/style index fdcf457b3..5cae9b6f9 100644 --- a/data/magic-m15-showcase-monster-manual.mse-style/style +++ b/data/magic-m15-showcase-monster-manual.mse-style/style @@ -109,6 +109,9 @@ init script: no_roll := {if styling.d20_dividers == "all breaks" then 1 else if rolls_start(input) == 0 then 1 else 0} text_filter := text_filter + d20_filter + + alias_mask := { alias_src + "masks/remove_color.png" } + ############################################################## Set info fields set info style: @@ -246,6 +249,7 @@ include file: /magic-modules.mse-include/information/card_fields include file: /magic-modules.mse-include/card-symbols/card_fields include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/separators/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-praetor.mse-style/style b/data/magic-m15-showcase-praetor.mse-style/style index d74365cee..9feb275f8 100644 --- a/data/magic-m15-showcase-praetor.mse-style/style +++ b/data/magic-m15-showcase-praetor.mse-style/style @@ -99,6 +99,19 @@ init script: un_png := replace@(match:".png", replace: "") is_vehicle := {lang_setting("is_vehicle")(card.sub_type)} card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 4 else 0 } + alias_colors := { + [ + w: rgb(198, 188, 168), + u: rgb(20, 135, 163), + b: rgb(66, 68, 68), + r: rgb(202, 84, 59), + g: rgb(86, 162, 112), + a: rgb(170, 181, 185), + m: rgb(209, 183, 92), + c: rgb(174, 185, 188) + ][input] + } + ############################################################## Set info fields set info style: symbol: @@ -223,6 +236,7 @@ include file: /magic-modules.mse-include/information/card_fields include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/rarities/card_fields include file: /magic-modules.mse-include/separators/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ravnica-city-mural.mse-style/style b/data/magic-m15-showcase-ravnica-city-mural.mse-style/style index 07d31d291..fb955f0da 100644 --- a/data/magic-m15-showcase-ravnica-city-mural.mse-style/style +++ b/data/magic-m15-showcase-ravnica-city-mural.mse-style/style @@ -80,6 +80,7 @@ init script: italic: {""} ] + old_card_hybrid := card_hybrid card_hybrid_2 := { masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) @@ -146,6 +147,30 @@ init script: if is_crowned() then output := output + ["foil_mask_crown.png"] output }@(face:1) + + 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" + ) + } + alias_colors := { + [ + w: rgb(240, 233, 222), + u: rgb(34, 98, 134), + b: rgb(76, 70, 80), + r: rgb(144, 25, 19), + g: rgb(84, 138, 67), + a: rgb(101, 105, 101), + m: rgb(218, 177, 0), + c: rgb(158, 129, 105) + ][input] + } ############################################################## Extra style options styling field: @@ -216,6 +241,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ravnica-dossier.mse-style/style b/data/magic-m15-showcase-ravnica-dossier.mse-style/style index 8ad0696ea..42c9a716c 100644 --- a/data/magic-m15-showcase-ravnica-dossier.mse-style/style +++ b/data/magic-m15-showcase-ravnica-dossier.mse-style/style @@ -108,6 +108,10 @@ init script: rarity_size := { split := split_comma(styling.rarity_offsets); (if length(split) > 2 and split.2 != "" then clamp(split.2, minimum: -52, maximum: 100) else 0) + 52 } rarity_left := { rarity_right() - rarity_size() } + alias_colors := { rgb(252, 246, 233) } + alias_angle_1 := { -2.3 } + alias_offset_top_1 := { 18 } + alias_offset_width_1 := { -30 } ############################################################## Extra style options styling field: @@ -208,6 +212,8 @@ include file: /magic-modules.mse-include/separators/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-ravnica-magnified.mse-style/style b/data/magic-m15-showcase-ravnica-magnified.mse-style/style index 87057a7a7..32ccee95e 100644 --- a/data/magic-m15-showcase-ravnica-magnified.mse-style/style +++ b/data/magic-m15-showcase-ravnica-magnified.mse-style/style @@ -165,6 +165,20 @@ init script: art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_height()) } + alias_colors := { + [ + w: rgb(81, 71, 78), + u: rgb(43, 46, 73), + b: rgb(30, 22, 30), + r: rgb(65, 32, 29), + g: rgb(32, 43, 33), + a: rgb(35, 31, 39), + m: rgb(73, 58, 41), + c: rgb(65, 33, 28) + ][input] + } + alias_mask := { alias_src + "masks/remove_outline.png" } + ############################################################## Extra style options styling field: @@ -233,6 +247,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff card color: diff --git a/data/magic-m15-showcase-spiderman-panel.mse-style/style b/data/magic-m15-showcase-spiderman-panel.mse-style/style index 5fddb6dd4..70b5fb49f 100644 --- a/data/magic-m15-showcase-spiderman-panel.mse-style/style +++ b/data/magic-m15-showcase-spiderman-panel.mse-style/style @@ -171,6 +171,8 @@ init script: 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 927 else 563 } art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_bottom() - art_top()) } + alias_mask := { alias_src + "masks/remove_color.png" } + alias_offset_top_1 := {-4} ############################################################## Extra style options styling field: @@ -244,6 +246,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style index a89e39230..5f20f1728 100644 --- a/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style +++ b/data/magic-m15-showcase-spiderman-web-slinger.mse-style/style @@ -155,6 +155,19 @@ init script: 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()) } + alias_colors := { + [ + w: rgb(216, 218, 195), + u: rgb(0, 161, 207), + b: rgb(95, 97, 99), + r: rgb(240, 46, 32), + g: rgb(66, 175, 88), + a: rgb(140, 159, 191), + m: rgb(245, 206, 66), + c: rgb(100, 74, 37) + ][input] + } + alias_offset_width_1 := {-6} ############################################################## Extra style options styling field: @@ -228,6 +241,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-strixhaven.mse-style/artifact_blend_card.png b/data/magic-m15-showcase-strixhaven.mse-style/artifact_blend_card.png index c14eeda61..f31714a57 100644 Binary files a/data/magic-m15-showcase-strixhaven.mse-style/artifact_blend_card.png and b/data/magic-m15-showcase-strixhaven.mse-style/artifact_blend_card.png differ diff --git a/data/magic-m15-showcase-strixhaven.mse-style/blends b/data/magic-m15-showcase-strixhaven.mse-style/blends index 7f0384fb1..8c850a23e 100644 --- a/data/magic-m15-showcase-strixhaven.mse-style/blends +++ b/data/magic-m15-showcase-strixhaven.mse-style/blends @@ -1,95 +1,17 @@ -# Scripts for blending images -# Included by a style file in its init script - - -######################################################################## -# Filenames and other defaults -######################################################################## - -mask_hybrid_with_land := { false } -mask_hybrid_with_gold := { false } -mask_multi_land_with_color := { false } -template := { input + "{type}.jpg" } -land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" } -# For what value should thumbnails of hybrids be made? -hybrid_previews := "hybrid" -# Are there templates for colored lands, land_template(...)? -colored_lands := true -trim_colors := - replace@(match:"(, )?(multicolor|hybrid|artifact|land|horizontal|vertical|radial)", replace:"") -watermark_colors := { - if face == false then face := card.card_color - trimmed := trim_colors(face) - if trimmed == "white" then "ww" - else if trimmed == "blue" then "uu" - else if trimmed == "black" then "bb" - else if trimmed == "red" then "rr" - else if trimmed == "green" then "gg" - else if contains(face, match:"multi") or contains(face, match:"hybrid") or contains(face, match:", land") then hybrid_color(face:face) - else if contains(face, match:"artifact") then "aa" - else "cc" -}@(face:false) -hybrid_color := { - if face == false then face := card.card_color - trimmed := trim_colors(face) - if trimmed == "white, blue" then "wu" - else if trimmed == "white, black" then "wb" - else if trimmed == "white, red" then "rw" - else if trimmed == "white, green" then "gw" - else if trimmed == "blue, black" then "ub" - else if trimmed == "blue, red" then "ur" - else if trimmed == "blue, green" then "gu" - else if trimmed == "black, red" then "br" - else if trimmed == "black, green" then "bg" - else if trimmed == "red, green" then "rg" - else if trimmed == "white, blue, reversed" then "uw" - else if trimmed == "white, black, reversed" then "bw" - else if trimmed == "white, red, reversed" then "wr" - else if trimmed == "white, green, reversed" then "wg" - else if trimmed == "blue, black, reversed" then "bu" - else if trimmed == "blue, red, reversed" then "ru" - else if trimmed == "blue, green, reversed" then "ug" - else if trimmed == "black, red, reversed" then "rb" - else if trimmed == "black, green, reversed" then "bg" - else if trimmed == "red, green, reversed" then "gr" - else "mm" -}@(face:false) -######################################################################## -# Combining multiple colors (hybrids) -######################################################################## - -card_hybrid_blend := { - linear_blend( +card_hybrid_2 := { + if mode != "mask" then linear_blend( image1: template(colors[0]) image2: template(colors[1]) x1: 0.4, y1: 0 x2: 0.6, y2: 0 ) -} -card_hybrid_2 := { - masked_blend( + else masked_blend( light: template(colors[1]) dark: template(colors[0]) - mask: "hybrid_blend_{type}.png" + mask: "special_blend_{type}.png" ) } -overlay_hybrid := [ - 1: { template(colors[0]) } - 2: { combine_blend( - image1: template(colors[0]), - image2: template(colors[1]), - combine: "symmetric overlay" - )} -] - -# vertical version of a horizontal hybrid -vertical_card_hybrid := { - do_linear_blend := linear_blend - linear_blend := { do_linear_blend(x1: 0, x2: 0, y1: x1, y2: x2) } - card_hybrid.horizontal[color_count]() -} - horizontal_card_hybrid := [ 1: { template(colors[0]) } 2: card_hybrid_2 @@ -260,318 +182,6 @@ card_hybrid := [ overlay: overlay_hybrid ] - -######################################################################## -# P/T box -######################################################################## -# These are easier - -horizontal_pt_hybrid := [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: -0.51, y1: 0 - x2: 0.26, y2: 0 - )} - 4: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: -0.1, y1: 0 - x2: 0.6, y2: 0 - )} - 5: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0.08, y1: 0 - x2: 0.65, y2: 0 - )} - 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[5]) - x1: 0.07, y1: 0 - x2: 0.7, y2: 0 - )} - 7: {linear_blend( - image1: linear_blend( - image1: template(colors[4]), - image2: template(colors[5]), - x1: -0.2, y1: 0 - x2: 0.2, y2: 0 - ), - image2: template(colors[6]), - x1: 0.5, y1: 0 - x2: 0.7, y2: 0 - )} -] - -pt_hybrid := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } - 5: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: -1.5 - x2: 0, y2: 0.7 - )} - 6: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: -1.5 - x2: 0, y2: 0.7 - )} - 7: { template(colors[4]) } - ] - horizontal: horizontal_pt_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[3]) } - 5: { template(colors[4]) } - 6: { template(colors[5]) } - 7: { template(colors[6]) } - ] - overlay: overlay_hybrid -] - -######################################################################## -# P/T boxes of flip cards -######################################################################## - -flip_pt_hybrid := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[1]) } - 4: { template(colors[1]) } - 5: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: -1 - x2: 0, y2: 1.8 - )} - 6: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: -1 - x2: 0, y2: 1.8 - )} - 7: { template(colors[4]) } - ] - horizontal: horizontal_pt_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[0]) } - 3: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0, y1: 0 - x2: 0, y2: 2 - )} - 4: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0, y1: -1.5 - x2: 0, y2: 1 - )} - 5: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0, y1: -1.1 - x2: 0, y2: 0.2 - )} - 6: { template(colors[1]) } # Probably not right - 7: { template(colors[2]) } - ] - overlay: overlay_hybrid -] - -flip_pt_hybrid2 := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[0]) } - 3: { linear_blend( - image1: template(colors[0]) - image2: template(colors[2]) - x1: 0, y1: -1 - x2: 0, y2: 1.1 - )} - 4: { template(colors[3]) } - 5: { template(colors[4]) } - 6: { template(colors[5]) } - 7: { template(colors[5]) } - ] - horizontal: [ - 1: { template(colors[0]) } - 2: { template(colors[0]) } - 3: { template(colors[0]) } - 4: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0.4, y1: 0 - x2: 1.5, y2: 0 - )} - 5: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0.08, y1: 0 - x2: 0.65, y2: 0 - )} - 6: { template(colors[5]) } #TODO - 7: { template(colors[6]) } #TODO - ] - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: -1 - x2: 0, y2: 1.5 - )} - 4: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0.5 - x2: 0, y2: 3 - )} - 5: { template(colors[3]) } - 6: { template(colors[5]) } # Probably not right - 7: { template(colors[6]) } - ] - overlay: overlay_hybrid -] - - -######################################################################## -# P/T boxes for leveler cards -######################################################################## - -leveler_pt_hybrid := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 4: { template(colors[2]) } - 5: { template(colors[2]) } - 6: { template(colors[2]) } - 7: { template(colors[4]) } - ] - horizontal: horizontal_pt_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 4: { template(colors[2]) } - 5: { template(colors[3]) } - 6: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.25 - )} - 7: { template(colors[5]) } - ] - overlay: overlay_hybrid -] - -leveler_pt_hybrid2 := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } - 5: { template(colors[2]) } - 6: { template(colors[2]) } - 7: { template(colors[4]) } - ] - horizontal: horizontal_pt_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 5: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.75 - )} - 6: { template(colors[4]) } - 7: { template(colors[5]) } - ] - overlay: overlay_hybrid -] - -leveler_pt_hybrid3 := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[2]) } - 5: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 6: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0, y1: 0 - x2: 0, y2: 1 - )} - 7: { template(colors[4]) } - ] - horizontal: horizontal_pt_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[3]) } - 5: { linear_blend( - image1: template(colors[3]) - image2: template(colors[4]) - x1: 0, y1: 0 - x2: 0, y2: 0.5 - )} - 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[5]) - x1: 0, y1: 0 - x2: 0, y2: 0.5 - )} - 7: { template(colors[5]) } - ] - overlay: overlay_hybrid -] - ######################################################################## # Textbox and typeline for FPM templates and Futureshifts ######################################################################## @@ -600,403 +210,3 @@ textbox_hybrid := [ ] overlay: overlay_hybrid ] - -typeline_hybrid := textbox_hybrid - -######################################################################## -# Color Identity Marking -######################################################################## - -identity_horizontal_hybrid := [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: 0.49, y1: 0.49 - x2: 0.5, y2: 0.5 - )} - 3: {masked_blend(light: masked_blend(light: template(colors[0]), dark: template(colors[2]), mask: "/magic-modules.mse-include/indicators/imask_32.png"), dark: template(colors[1]), mask: "/magic-modules.mse-include/indicators/imask_33.png")} - 4: {masked_blend( - light: masked_blend( - light: masked_blend(light: template(colors[1]), dark: template(colors[0]), mask: "/magic-modules.mse-include/indicators/imask_42.png"), - dark: template(colors[2]), - mask: "/magic-modules.mse-include/indicators/imask_43.png") - dark: template(colors[3]), - mask: "/magic-modules.mse-include/indicators/imask_44.png" - )} - 5: {masked_blend( - light: masked_blend( - light: masked_blend( - light: masked_blend( - light: template(colors[0]), - dark: template(colors[4]), - mask: "/magic-modules.mse-include/indicators/imask_52.png"), - dark: template(colors[1]), - mask: "/magic-modules.mse-include/indicators/imask_53.png"), - dark: template(colors[2]), - mask: "/magic-modules.mse-include/indicators/imask_54.png"), - dark: template(colors[3]), - mask: "/magic-modules.mse-include/indicators/imask_55.png") - } - 6: { template("m") } -] - -identity_hybrid := [ - radial: identity_horizontal_hybrid - vertical: identity_horizontal_hybrid - horizontal: identity_horizontal_hybrid - overlay: identity_horizontal_hybrid -] - -######################################################################## -# Promo Stamp -######################################################################## -# These are easier - -horizontal_stamp_hybrid := [ - 1: { template(colors[0]) } - 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 3: { template(colors[1]) } - 4: { linear_blend( - image1: template(colors[1]) - image2: template(colors[2]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 5: {linear_blend( - image1: template(colors[1]) - x1: -0.55, y1: 0 - x2: 0.2, y2: 0 - image2: linear_blend( - image1: template(colors[2]) - x1: 0.8, y1: 0 - x2: 1.55, y2: 0 - image2: template(colors[3]) - ))} - 6: { linear_blend( - image1: template(colors[2]) - image2: template(colors[3]) - x1: 0.1, y1: 0 - x2: 0.9, y2: 0 - )} - 7: {linear_blend( - image1: template(colors[2]) - x1: -0.55, y1: 0 - x2: 0.2, y2: 0 - image2: linear_blend( - image1: template(colors[3]) - x1: 0.8, y1: 0 - x2: 1.55, y2: 0 - image2: template(colors[4]) - ))} -] - -stamp_hybrid := [ - radial: [ - 0: { template("c") } - 1: { template(colors[0]) } - 2: { linear_blend( - image1: template(colors[0]) - image2: template(colors[1]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 3: { template(colors[2]) } - 4: { linear_blend( - image1: template(colors[3]) - image2: template(colors[2]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 5: { template(colors[3]) } - 6: { linear_blend( - image1: template(colors[4]) - image2: template(colors[3]) - x1: -0.3, y1: 0 - x2: 1.3, y2: 0 - )} - 7: { template(colors[4]) } - ] - horizontal: horizontal_stamp_hybrid - vertical: [ - 1: { template(colors[0]) } - 2: { template(colors[1]) } - 3: { template(colors[2]) } - 4: { template(colors[3]) } - 5: { template(colors[4]) } - 6: { template(colors[5]) } - 7: { template(colors[6]) } - ] - overlay: overlay_hybrid -] - -######################################################################## -# Putting it all together. -######################################################################## - -# Determine the card background based on the card_color multiple choice options -color_background := { - - # for thumbnails - if input == "hybrid" then - input := "white,blue,red,{hybrid_previews},horizontal" - else if input == "overlay" then - input := "blue,red,{hybrid_previews},overlay" - else if input == "radial" or input == "horizontal" or input == "vertical" then - input := "white,blue,red,{hybrid_previews}," + input - else if input == "reversed" then - input := "white,blue,red,{hybrid_previews},horizontal,reversed" - - # What type of 'hybrid'? - land := chosen(choice:"land") - multi := chosen(choice:"multicolor") - hybrid := chosen(choice:"hybrid") - artifact := chosen(choice:"artifact") - if land and colored_lands then template := land_template # use land template instead? - - # The selected colors - colors := sort_text( order: if card_is_wedge(input) then "(wbgur)" else "(wubrg)" - , (if chosen(choice:"white") then "w") - + (if chosen(choice:"blue") then "u") - + (if chosen(choice:"black") then "b") - + (if chosen(choice:"red") then "r") - + (if chosen(choice:"green") then "g")) - if multi and (hybrid or colors == "") then ( - colors := colors + "m" - multi := false - ) - if artifact and (hybrid or colors == "") then ( - colors := colors + "a" - artifact := false - ) - if chosen(choice:"reversed") then colors := reverse(colors) - color_count := number_of_items(in: colors) - if colors == "" then colors == "c" - - # 'shape' / type of hybrid - shape := if chosen(choice:"horizontal") then "horizontal" - else if chosen(choice:"vertical") then "vertical" - else if chosen(choice:"overlay") then "overlay" - else "radial" - - # Determine background (allows styles to hook something else here) - color_combination() -} - -color_combination := { - # The base hybrid, without the outer frame blended over it - base := base_hybrid[shape][color_count]() - # Put a frame around it? - if land and not colored_lands then - masked_blend( - mask: "multicolor_blend_{type}.png", - dark: land_template("c"), - light: base, - ) - else if land and multi and mask_multi_land_with_color() then - masked_blend( - mask: "hybrid_blend_{type}.png", - dark: base, - light: land_template("m"), - ) - else if multi and artifact then - masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base - ) - ) - else if multi then - masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base, - ) - else if artifact and color_count > 1 and mask_hybrid_with_land() then - masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("c"), - light: base - ) - ) - else if artifact and color_count > 1 and mask_hybrid_with_gold() then - masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: masked_blend( - mask: "multicolor_blend_{type}.png", - dark: template("m"), - light: base - ) - ) - else if artifact then - masked_blend( - mask: "artifact_blend_{type}.png", - dark: template("a"), - light: base, - ) - else if color_count > 1 and mask_hybrid_with_land() then - masked_blend( - mask: "hybrid_blend_{type}.png", - dark: land_template("c"), - light: base, - ) - else if color_count > 1 and mask_hybrid_with_gold() then - masked_blend( - mask: "hybrid_blend_{type}.png", - dark: land_template("m"), - light: base, - ) - else base -} - -######################################################################## -# Specific types -######################################################################## - -card_background := { color_background(type:"card", base_hybrid:card_hybrid) } -card_ptbox := { color_background(type:"pt", base_hybrid:pt_hybrid) } -flip_ptbox := { color_background(type:"pt", base_hybrid:flip_pt_hybrid) } -flip_ptbox2 := { color_background(type:"pt2", base_hybrid:flip_pt_hybrid2) } -leveler_ptbox := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid) } -leveler_ptbox2 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid2) } -leveler_ptbox3 := { color_background(type:"pt", base_hybrid:leveler_pt_hybrid3) } -card_textbox := { color_background(type:"textbox", base_hybrid:textbox_hybrid) } -card_typeline := { color_background(type:"typeline", base_hybrid:typeline_hybrid) } -card_identity := { color_background(type:"identity", base_hybrid:identity_hybrid) } -card_identity_2 := { color_background(type:"identity2", base_hybrid:identity_hybrid) } -card_stamp := { color_background(type:"stamp", base_hybrid:stamp_hybrid) } -card_stamp2 := { color_background(type:"stamp2", base_hybrid:stamp_hybrid) } - -flip_background := { - linear_blend( - image1: card_background(top) - image2: card_background(bottom) - x1: 0, y1: 0.4 - x2: 0, y2: 0.6 - ) -} - -######################################################################## -# Font colors -######################################################################## - -# For which colors is the font white? -font_colors_white := { input == "b" or input == "l" } - -font_color_positions := [ - radial: [0,0,0,2,3,3,4,4] - horizontal: [0,0,0,0,0,0,0,0] - vertical: [0,0,1,2,3,4,5,6] - overlay: [0,0,0,0,0,0,0,0] -] - -# Determine whether light or dark fonts should be used -font_white := { - hybrid := chosen(choice:"hybrid") - artifact := chosen(choice:"artifact") - colors := sort_text( order: "(wubrg)" - , (if chosen(choice:"white") then "w") - + (if chosen(choice:"blue") then "u") - + (if chosen(choice:"black") then "b") - + (if chosen(choice:"red") then "r") - + (if chosen(choice:"green") then "g")) - + (if artifact then "a") - font_colors_white( - if chosen(choice:"land") then "l" - else if input == "artifact, multicolor" then "a" - else if chosen(choice:"multicolor") then "m" - else if artifact and not hybrid then "a" - else if colors == "" then "c" - else colors[ - font_color_positions[ - if chosen(choice:"horizontal") then "horizontal" - else if chosen(choice:"vertical") then "vertical" - else if chosen(choice:"overlay") then "overlay" - else "radial" - ][number_of_items(in: colors)] - ] - ) -} - -font_color := { if font_white() then rgb(255,255,255) else rgb(0,0,0) } - -#####Watermark Blending -watermark_hybrid:= { - linear_blend( - image1: colors[0] + input + ".png" - image2: colors[1] + input + ".png" - x1: 0.4, y1: 0 - x2: 0.6, y2: 0 - ) -} -set_watermark_blend := { - set_alpha( - alpha: 0.75 - input: - linear_blend( - image1: - masked_blend( - light: "/magic-watermarks.mse-include/sets/" + input + ".png" - dark: "/magic-watermarks.mse-include/sets/" + watermark_colors().0 + "mark.png" - mask: "/magic-watermarks.mse-include/sets/" + input + ".png" - ) - image2: - masked_blend( - light: "/magic-watermarks.mse-include/sets/" + input + ".png" - dark: "/magic-watermarks.mse-include/sets/" + watermark_colors().1 + "mark.png" - mask: "/magic-watermarks.mse-include/sets/" + input + ".png" - ) - x1: 0.4, y1: 0 - x2: 0.6, y2: 0 - ) - ) -} -spotlight_watermark_blend := { - if face == false then face := card.card_color - wmc := watermark_colors(face:face) - c1 := "/magic-watermarks.mse-include/spotlight/" + wmc.0 + (if contains(face, match:"land") then "l") + "spotlight.png" - c2 := "/magic-watermarks.mse-include/spotlight/" + wmc.1 + (if contains(face, match:"land") then "l") + "spotlight.png" - if contains(input, match:".png,") then ( - array := split_text(input+",,", match:",") - input := array.0 - l := min(to_number(array.1),500) - h := min(to_number(array.2),500) - ) - if (h != 500 or l != 500) then ( - c1 := crop(c1, height:h, width:l, offset_x:0, offset_y:0) - c2 := crop(c2, height:h, width:l, offset_x:0, offset_y:0) - ) - set_alpha( - alpha: 0.75 - input: - linear_blend( - image1: - masked_blend( - light: input - dark: c1 - mask: input - ) - image2: - masked_blend( - light: input - dark: c2 - mask: input - ) - x1: 0.4, y1: 0 - x2: 0.6, y2: 0 - ) - ) -}@(h:500,l:500,face:false) \ No newline at end of file diff --git a/data/magic-m15-showcase-strixhaven.mse-style/hybrid_blend_card.png b/data/magic-m15-showcase-strixhaven.mse-style/hybrid_blend_card.png index 6884c19d0..c869dd687 100644 Binary files a/data/magic-m15-showcase-strixhaven.mse-style/hybrid_blend_card.png and b/data/magic-m15-showcase-strixhaven.mse-style/hybrid_blend_card.png differ diff --git a/data/magic-m15-showcase-strixhaven.mse-style/special_blend_card.png b/data/magic-m15-showcase-strixhaven.mse-style/special_blend_card.png new file mode 100644 index 000000000..d9be10b9f Binary files /dev/null and b/data/magic-m15-showcase-strixhaven.mse-style/special_blend_card.png differ diff --git a/data/magic-m15-showcase-strixhaven.mse-style/style b/data/magic-m15-showcase-strixhaven.mse-style/style index 27605be4b..eaa2dd38c 100644 --- a/data/magic-m15-showcase-strixhaven.mse-style/style +++ b/data/magic-m15-showcase-strixhaven.mse-style/style @@ -1,4 +1,4 @@ -mse version: 2.0.0 +mse version: 2.1.2 game: magic short name: Showcase full name: Strixhaven Showcase @@ -105,6 +105,31 @@ init script: then styling.default_partition else "A" } + module_alias := { + template := alias_custom_template + land_template := alias_custom_land_template + color_background( + type: "alias", + base_hybrid: card_hybrid, + artifact_blend: "black", + hybrid_blend: "white", + multicolor_blend: "black" + ) + } + alias_offset_top_1 := {5} + alias_colors := { + [ + w: rgb(243, 241, 229), + u: rgb(0, 108, 169), + b: rgb(55, 54, 48), + r: rgb(217, 62, 39), + g: rgb(0, 111, 64), + a: rgb(193, 193, 193), + m: rgb(234, 208, 106), + c: rgb(165, 149, 133) + ][input] + } + ############################################################## Set info fields set info style: symbol: @@ -253,6 +278,7 @@ include file: /magic-modules.mse-include/watermarks/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/separators/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under card style: ############################# Background stuff card color: diff --git a/data/magic-m15-showcase-tarkir-draconic-adventure.mse-style/style b/data/magic-m15-showcase-tarkir-draconic-adventure.mse-style/style index e3551142d..a96d4b6a5 100644 --- a/data/magic-m15-showcase-tarkir-draconic-adventure.mse-style/style +++ b/data/magic-m15-showcase-tarkir-draconic-adventure.mse-style/style @@ -136,6 +136,7 @@ init script: card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } + old_card_hybrid := card_hybrid old_card_hybrid_2 := horizontal_card_hybrid["2"] old_card_hybrid_3 := horizontal_card_hybrid["3"] old_card_hybrid_4 := horizontal_card_hybrid["4"] @@ -266,6 +267,31 @@ init script: art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_height()) } + 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: "black" + ) + } + alias_offset_top_1 := {6} + alias_colors := { + [ + w: rgb(163, 143, 111), + u: rgb(9, 109, 137), + b: rgb(77, 60, 91), + r: rgb(181, 66, 75), + g: rgb(83, 130, 66), + a: rgb(83, 98, 104), + m: rgb(202, 147, 63), + c: rgb(132, 90, 59) + ][input] + } + ############################################################## Extra style options styling field: @@ -362,6 +388,8 @@ include file: /magic-modules.mse-include/typelines/card_fields_dfc include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-tarkir-draconic.mse-style/style b/data/magic-m15-showcase-tarkir-draconic.mse-style/style index 16fb70d05..4ec27e6d8 100644 --- a/data/magic-m15-showcase-tarkir-draconic.mse-style/style +++ b/data/magic-m15-showcase-tarkir-draconic.mse-style/style @@ -77,6 +77,7 @@ init script: card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 6 else 0 } + old_card_hybrid := card_hybrid card_hybrid_2 := { masked_blend( @@ -193,7 +194,30 @@ init script: art_height := { if styling.stretch_art_to_whole_card then stylesheet.card_height else 404 } art_mask := { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_height()) } - + 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: "black" + ) + } + alias_offset_top_1 := {6} + alias_colors := { + [ + w: rgb(163, 143, 111), + u: rgb(9, 109, 137), + b: rgb(77, 60, 91), + r: rgb(181, 66, 75), + g: rgb(83, 130, 66), + a: rgb(83, 98, 104), + m: rgb(202, 147, 63), + c: rgb(132, 90, 59) + ][input] + } ############################################################## Extra style options styling field: @@ -257,6 +281,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-tarkir-dragon-wing.mse-style/style b/data/magic-m15-showcase-tarkir-dragon-wing.mse-style/style index 8c740077d..ebaec6dd3 100644 --- a/data/magic-m15-showcase-tarkir-dragon-wing.mse-style/style +++ b/data/magic-m15-showcase-tarkir-dragon-wing.mse-style/style @@ -79,9 +79,11 @@ init script: italic: {""} ] + och := card_hybrid_2 card_hybrid_2 := { - masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) + if mode != "mask" then och + else masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) } horizontal_card_hybrid := [ @@ -146,6 +148,7 @@ init script: if is_crowned() then output := output + ["foil_mask_crown.png"] output }@(face:1) + alias_colors := { rgb(114, 116, 103) } ############################################################## Extra style options styling field: @@ -220,6 +223,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-tarkir-ghostfire-walker.mse-style/style b/data/magic-m15-showcase-tarkir-ghostfire-walker.mse-style/style index 907750712..a2e50b98f 100644 --- a/data/magic-m15-showcase-tarkir-ghostfire-walker.mse-style/style +++ b/data/magic-m15-showcase-tarkir-ghostfire-walker.mse-style/style @@ -143,6 +143,8 @@ init script: include file: /magic-modules.mse-include/loyalty/init_script + alias_mask := { alias_src + "masks/remove_color.png" } + alias_offset_top_1 := {4} ############################################################## Extra style options styling field: @@ -251,6 +253,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-tarkir-ghostfire.mse-style/style b/data/magic-m15-showcase-tarkir-ghostfire.mse-style/style index 9d300489e..e8a8be2b8 100644 --- a/data/magic-m15-showcase-tarkir-ghostfire.mse-style/style +++ b/data/magic-m15-showcase-tarkir-ghostfire.mse-style/style @@ -117,7 +117,9 @@ init script: { crop("image_mask.png", offset_x: art_left(), offset_y: art_top(), width: art_width(), height: art_bottom() - art_top()) } - + + alias_mask := { alias_src + "masks/remove_color.png" } + alias_offset_top_1 := {4} ############################################################## Extra style options styling field: @@ -209,6 +211,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-theros-constellation.mse-style/style b/data/magic-m15-showcase-theros-constellation.mse-style/style index 6d1e6ac1b..fe9da13b9 100644 --- a/data/magic-m15-showcase-theros-constellation.mse-style/style +++ b/data/magic-m15-showcase-theros-constellation.mse-style/style @@ -126,7 +126,18 @@ 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 } - + alias_colors := { + [ + w: rgb(255, 255, 255), + u: rgb(6, 115, 184), + b: rgb(39, 38, 36), + r: rgb(239, 56, 39), + g: rgb(6, 120, 69), + a: rgb(239, 238, 236), + m: rgb(243, 210, 105), + c: rgb(173, 151, 137) + ][input] + } ############################################################## Extra style options styling field: @@ -185,6 +196,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-thunder-junction-breaking-news.mse-style/style b/data/magic-m15-showcase-thunder-junction-breaking-news.mse-style/style index ce6e5326d..cd35da258 100644 --- a/data/magic-m15-showcase-thunder-junction-breaking-news.mse-style/style +++ b/data/magic-m15-showcase-thunder-junction-breaking-news.mse-style/style @@ -72,6 +72,7 @@ init script: italic: {""} ] + old_card_hybrid := card_hybrid card_hybrid_2 := { linear_blend( @@ -164,6 +165,19 @@ 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 } + alias_colors := { rgb(227, 220, 215) } + 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" + ) + } + alias_offset_top_1 := {59} ############################################################## Extra style options styling field: @@ -280,6 +294,8 @@ include file: /magic-modules.mse-include/separators/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-thunder-junction-vault.mse-style/style b/data/magic-m15-showcase-thunder-junction-vault.mse-style/style index 3c6c167ab..09c545ea1 100644 --- a/data/magic-m15-showcase-thunder-junction-vault.mse-style/style +++ b/data/magic-m15-showcase-thunder-junction-vault.mse-style/style @@ -74,6 +74,7 @@ init script: card_stamp_offset_left_1 := { 1 } + old_card_hybrid := card_hybrid card_hybrid_2 := { linear_blend( @@ -164,6 +165,18 @@ init script: 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 } card_stamp_offset_top_1 := { if stamp_shape() == "triangle" then 4 else 0 } + + 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" + ) + } ############################################################## Extra style options styling field: @@ -237,6 +250,8 @@ include file: /magic-modules.mse-include/namelines/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields_under + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-thunder-junction-wanted-poster.mse-style/style b/data/magic-m15-showcase-thunder-junction-wanted-poster.mse-style/style index 80072f75c..b01ce3569 100644 --- a/data/magic-m15-showcase-thunder-junction-wanted-poster.mse-style/style +++ b/data/magic-m15-showcase-thunder-junction-wanted-poster.mse-style/style @@ -74,6 +74,7 @@ init script: card_full_name_default := { if card.name_2 != "" then card.name + " " + card.name_2 else card.name } card_full_name := { if card.name_2 != "" then card.name + " " + card.name_2 else card.name } + old_card_hybrid := card_hybrid card_hybrid_2 := { masked_blend(mask: "special_blend_card.png", dark: template(colors.0), light: template(colors.1)) @@ -158,6 +159,31 @@ 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 } + alias_colors := { + [ + w: rgb(248, 245, 231), + u: rgb(123, 156, 175), + b: rgb(82, 79, 75), + r: rgb(195, 80, 68), + g: rgb(140, 160, 109), + a: rgb(156, 165, 180), + m: rgb(214, 154, 36), + c: rgb(157, 118, 99) + ][input] + } + 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" + ) + } + alias_offset_top_1 := {124} + alias_offset_width_1 := {-8} ############################################################## Extra style options styling field: @@ -260,6 +286,8 @@ include file: /magic-modules.mse-include/separators/card_fields include file: /magic-modules.mse-include/typelines/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff card color: diff --git a/data/magic-m15-showcase-unfinity.mse-style/style b/data/magic-m15-showcase-unfinity.mse-style/style index 277bfef96..a8a118611 100644 --- a/data/magic-m15-showcase-unfinity.mse-style/style +++ b/data/magic-m15-showcase-unfinity.mse-style/style @@ -130,6 +130,32 @@ init script: if is_crowned() then output := output + ["foil_mask_crown.png"] output }@(face:1) + + 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" + ) + } + alias_colors := { + [ + w: rgb(239, 239, 255), + u: rgb(85, 104, 155), + b: rgb(77, 78, 78), + r: rgb(218, 87, 76), + g: rgb(58, 107, 73), + a: rgb(177, 185, 194), + m: rgb(231, 222, 151), + c: rgb(229, 220, 209) + ][input] + } + alias_offset_top_1 := {-2} + ############################################################## Extra style options styling field: @@ -200,6 +226,8 @@ include file: /magic-modules.mse-include/typelines/card_fields include file: /magic-modules.mse-include/foils/card_fields +include file: /magic-modules.mse-include/alias/card_fields + card style: ############################# Background stuff border color: diff --git a/data/magic-m15-showcase-zendikar.mse-style/style b/data/magic-m15-showcase-zendikar.mse-style/style index 751963962..54da68942 100644 --- a/data/magic-m15-showcase-zendikar.mse-style/style +++ b/data/magic-m15-showcase-zendikar.mse-style/style @@ -97,6 +97,9 @@ init script: un_png := replace@(match:".png", replace: "") is_vehicle := {lang_setting("is_vehicle")(card.sub_type)} watermark_include := "/magic-modules.mse-include/watermarks" + + alias_mask := { alias_src + "masks/remove_color.png" } + alias_offset_top_1 := {-3} ############################################################## Set info fields set info style: symbol: @@ -217,6 +220,7 @@ include file: /magic-modules.mse-include/information/card_fields include file: /magic-modules.mse-include/stamps/card_fields include file: /magic-modules.mse-include/stamps/stamp_back include file: /magic-modules.mse-include/separators/card_fields +include file: /magic-modules.mse-include/alias/card_fields card style: ############################# Background stuff border color: @@ -249,7 +253,7 @@ card style: height: {23 - 0.5*shrink_name()} alignment: bottom shrink-overflow padding bottom: 0 - z index: 1 + z index: 900 font: name: Beleren Bold size: {16 - shrink_name()} @@ -268,7 +272,7 @@ card style: size: 15 alignment: middle right always symbol: true - z index: 2 + z index: 920 padding top: 0 ############################# Image image: @@ -294,7 +298,7 @@ card style: width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) } height: { 20 - shrink_type() } alignment: top shrink-overflow - z index: 2 + z index: 900 padding top: 2 font: name: Beleren Bold @@ -306,7 +310,7 @@ card style: top: 297 width: 44 height: 22 - z index: 2 + z index: 950 render style: image alignment: middle right include file: /magic-modules.mse-include/rarities/choice_images @@ -348,7 +352,7 @@ card style: top: 327 width: 334 bottom: 481 - z index: 1 + z index: 720 render style: image popup style: in place alignment: middle center @@ -356,7 +360,7 @@ card style: image: { watermark_image_1() } ############################# PT pt: - z index: 2 + z index: 900 left: 286 top: 469 width: 60 diff --git a/data/magic-modules.mse-include/alias/base.png b/data/magic-modules.mse-include/alias/base.png new file mode 100644 index 000000000..fda0b9b83 Binary files /dev/null and b/data/magic-modules.mse-include/alias/base.png differ diff --git a/data/magic-modules.mse-include/alias/card_fields b/data/magic-modules.mse-include/alias/card_fields new file mode 100644 index 000000000..ad70ee223 --- /dev/null +++ b/data/magic-modules.mse-include/alias/card_fields @@ -0,0 +1,35 @@ +card style: + alias: + left: { alias_left_1() } + top: { alias_top_1() + alias_offset_text(face:1) + alias_offset_text_top_1() } + width: { alias_width_1() } + height: { alias_height_1() } + angle: { alias_angle_1() } + alignment: center middle shrink-overflow + z index: 900 + font: + name: MPlantin-Italic + size: { alias_font_size(face:1) } + style: bold + weight: bold + color: white + +extra card field: + type: choice + name: alias bar + script: card.card_color + save value: false + editable: false + +extra card style: + alias bar: + left: { alias_left_1() } + top: { alias_top_1() } + width: { alias_width_1() } + height: { alias_height_1() } + angle: { alias_angle_1() } + z index: 880 + render style: image + visible: { alias_enabled() } + image: { module_alias() } + mask: { alias_mask() } diff --git a/data/magic-modules.mse-include/alias/card_fields_dfc b/data/magic-modules.mse-include/alias/card_fields_dfc new file mode 100644 index 000000000..fc76fd6fa --- /dev/null +++ b/data/magic-modules.mse-include/alias/card_fields_dfc @@ -0,0 +1,36 @@ +include file: /magic-modules.mse-include/alias/card_fields +card style: + alias 2: + left: { alias_left_2() } + top: { alias_top_2() + alias_offset_text(face:2) + alias_offset_text_top_2() } + width: { alias_width_2() } + height: { alias_height_2() } + angle: { alias_angle_2() } + alignment: center middle shrink-overflow + z index: 900 + font: + name: MPlantin-Italic + size: { alias_font_size(face:2) } + style: bold + weight: bold + color: white + +extra card field: + type: choice + name: alias bar 2 + script: card.card_color_2 + save value: false + editable: false + +extra card style: + alias bar 2: + left: { alias_left_2() } + top: { alias_top_2() } + width: { alias_width_2() } + height: { alias_height_2() } + angle: { alias_angle_2() } + z index: 880 + render style: image + visible: { alias_enabled_2() } + image: { module_alias() } + mask: { alias_mask_2() } diff --git a/data/magic-modules.mse-include/alias/card_fields_under b/data/magic-modules.mse-include/alias/card_fields_under new file mode 100644 index 000000000..848ec589c --- /dev/null +++ b/data/magic-modules.mse-include/alias/card_fields_under @@ -0,0 +1,35 @@ +card style: + alias: + left: { alias_left_1() } + top: { alias_top_1() + alias_offset_text(face:1) + alias_offset_text_top_1() } + width: { alias_width_1() } + height: { alias_height_1() } + angle: { alias_angle_1() } + alignment: center middle shrink-overflow + z index: 900 + font: + name: MPlantin-Italic + size: { alias_font_size(face:1) } + style: bold + weight: bold + color: white + +extra card field: + type: choice + name: alias bar + script: card.card_color + save value: false + editable: false + +extra card style: + alias bar: + left: { alias_left_1() } + top: { alias_top_1() } + width: { alias_width_1() } + height: { alias_height_1() } + angle: { alias_angle_1() } + z index: 180 + render style: image + visible: { alias_enabled() } + image: { module_alias() } + mask: { alias_mask() } diff --git a/data/magic-modules.mse-include/alias/card_fields_under_dfc b/data/magic-modules.mse-include/alias/card_fields_under_dfc new file mode 100644 index 000000000..d5d4c567d --- /dev/null +++ b/data/magic-modules.mse-include/alias/card_fields_under_dfc @@ -0,0 +1,36 @@ +include file: /magic-modules.mse-include/alias/card_fields +card style: + alias 2: + left: { alias_left_2() } + top: { alias_top_2() + alias_offset_text(face:2) + alias_offset_text_top_2() } + width: { alias_width_2() } + height: { alias_height_2() } + angle: { alias_angle_2() } + alignment: center middle shrink-overflow + z index: 900 + font: + name: MPlantin-Italic + size: { alias_font_size(face:2) } + style: bold + weight: bold + color: white + +extra card field: + type: choice + name: alias bar 2 + script: card.card_color_2 + save value: false + editable: false + +extra card style: + alias bar 2: + left: { alias_left_2() } + top: { alias_top_2() } + width: { alias_width_2() } + height: { alias_height_2() } + angle: { alias_angle_2() } + z index: 180 + render style: image + visible: { alias_enabled_2() } + image: { module_alias() } + mask: { alias_mask_2() } diff --git a/data/magic-modules.mse-include/alias/color.png b/data/magic-modules.mse-include/alias/color.png new file mode 100644 index 000000000..d3ff6f6eb Binary files /dev/null and b/data/magic-modules.mse-include/alias/color.png differ diff --git a/data/magic-modules.mse-include/alias/mask.png b/data/magic-modules.mse-include/alias/mask.png new file mode 100644 index 000000000..13712447a Binary files /dev/null and b/data/magic-modules.mse-include/alias/mask.png differ diff --git a/data/magic-modules.mse-include/alias/masks/remove_color.png b/data/magic-modules.mse-include/alias/masks/remove_color.png new file mode 100644 index 000000000..7948a6c0b Binary files /dev/null and b/data/magic-modules.mse-include/alias/masks/remove_color.png differ diff --git a/data/magic-modules.mse-include/alias/masks/remove_outline.png b/data/magic-modules.mse-include/alias/masks/remove_outline.png new file mode 100644 index 000000000..c51e47014 Binary files /dev/null and b/data/magic-modules.mse-include/alias/masks/remove_outline.png differ diff --git a/data/magic-modules.mse-include/alias/readme.txt b/data/magic-modules.mse-include/alias/readme.txt new file mode 100644 index 000000000..694f345ed --- /dev/null +++ b/data/magic-modules.mse-include/alias/readme.txt @@ -0,0 +1,81 @@ +#### To use this include in a template, add the following in the template headers: +depends on: + package: magic-modules.mse-include + version: 2024-10-01 + +#### Also add this, unindented, before the card style section: +include file: /magic-modules.mse-include/alias/card_fields +#### For DFC templates, instead override the faces_coordinates function, and use: +include file: /magic-modules.mse-include/alias/card_fields_dfc +#### If you need the alias to layer under the card frame, use +include file: /magic-modues.mse-include/alias/card_fields_under +include file: /magic-modues.mse-include/alias/card_fields_under_dfc + +#### Default Field Placement (@375x523, w=1 h=1) +alias bar: + left: 38.5w # Auto-centers + top: 57w # 55w for the text box + width: 298w + height: 20h + z index: 880 # 180 for _under + +#### Customization +#### The alias bar is recolored a solid color, using this function in template() +#### This can return a single rgb for mono-color, and is passed a boolean land for the land template +alias_colors := { + [ + w: rgb(255, 255, 255), + u: rgb(6, 115, 184), + b: rgb(39, 38, 36), + r: rgb(168, 88, 81), + g: rgb(6, 120, 69), + a: rgb(239, 238, 236), + m: rgb(243, 210, 105), + c: rgb(173, 151, 137) + ][input] +} +#### Pull files from an alternate file. Needs three files that are each the same size: +#### base.png, which will have the solid color printed on top of it +#### mask.png, where Black pixels are recolored and White take from base.png +#### color.png, the red color used for recolor_image(). If you're not doing anything fancy, just make it a #ff0000 rectangle +alias_src := "/magic-modules.mse-include/alias/" + +#### Alias expects to blend on pinlines. If you need to change that, redefine module_alias +#### Changing "white" to "black" to blend as artifact, land, or gold +#### If you change card_hybrid to use an image, make a copy and redefine this using the copy +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" + ) +} + + +#### Field Offsets +alias_offset_text(face:1) +#### Change the font size +alias_font_size(face:1) + +#### Show the Alias Bar +alias_enabled := { card.alias != "" } +alias_enabled_2 := { card.alias != "" } +#### Move the bar and alias left +alias_offset_top_1 := { 0 } +alias_offset_left_1 := { 0 } +alias_offset_height_1 := { 0 } +alias_offset_width_1 := { 0 } +alias_angle_1 := { 0 } +#### Move the text vertically. Positive moves down +alias_offset_text_top_1 := { 0 } + +#### Apply a mask to the Alias Bar. Some are provided in the module: +#### masks/remove_color.png -> masks to just the gray text area +#### masks/remove_outline.png -> removes the black outline on the bottom +#### masks/ +alias_mask := { "" } +alias_mask_2 := { "" } diff --git a/data/magic-modules.mse-include/readme.txt b/data/magic-modules.mse-include/readme.txt index 46b38aca0..40a0aae69 100644 --- a/data/magic-modules.mse-include/readme.txt +++ b/data/magic-modules.mse-include/readme.txt @@ -76,12 +76,13 @@ Specific z indexes 860 Holofoil stamp 870 Transform symbol 880 Tombstone/alchemy symbol -880 Alias box +880 Alias bar 900 Loyalty cost colons 900 User text fields 900 Information below the textbox & credit symbols -920 Casting cost +910 Secondary Copyright +920 Vorthos Box, Casting cost 950 Rarity 1010 Popout art diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index c62f817e5..095cc9cd0 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -4319,6 +4319,66 @@ nameline_offset_left_3 := { 0 } nameline_offset_width_3 := { 0 } nameline_offset_height_3 := { 0 } +############################################################## Alias +alias_left := +{ + map := face_coordinates_map(face) + off2 := if face == 2 then alias_offset_width_2() else alias_offset_width_1() + map.left + (map.width - (298 * min(map.width, map.height)/375) - off2)/2 + offset +} +alias_top := +{ + map := face_coordinates_map(face) + 57 * min(map.width, map.height)/375 + offset +} +alias_height := +{ + map := face_coordinates_map(face) + 20 * min(map.width, map.height)/375 + offset +} +alias_width := +{ + map := face_coordinates_map(face) + 298 * min(map.width, map.height)/375 + offset +} +alias_offset_text := +{ + map := face_coordinates_map(face) + min(map.width, map.height)/375 * -1.5 +} +alias_font_size := +{ + map := face_coordinates_map(face) + 9 * min(map.width, map.height)/375 +} + +alias_enabled := { card.alias != "" } +alias_offset_top_1 := { 0 } +alias_offset_left_1 := { 0 } +alias_offset_height_1 := { 0 } +alias_offset_width_1 := { 0 } +alias_offset_text_top_1 := { 0 } +alias_left_1 := { alias_left(face: 1, offset:alias_offset_left_1()) } +alias_top_1 := { alias_top(face: 1, offset:alias_offset_top_1()) } +alias_height_1 := { alias_height(face: 1, offset:alias_offset_height_1()) } +alias_width_1 := { alias_width(face: 1, offset:alias_offset_width_1()) } +alias_mask := { "" } +alias_angle_1 := { 0 } + +alias_enabled_2 := { card.alias_2 != "" } +alias_offset_top_2 := { 0 } +alias_offset_left_2 := { 0 } +alias_offset_height_2 := { 0 } +alias_offset_width_2 := { 0 } +alias_offset_text_top_2 := { 0 } +alias_left_2 := { alias_left(face: 2, offset:alias_offset_left_2()) } +alias_top_2 := { alias_top(face: 2, offset:alias_offset_top_2()) } +alias_height_2 := { alias_height(face: 2, offset:alias_offset_height_2()) } +alias_width_2 := { alias_width(face: 2, offset:alias_offset_width_2()) } +alias_mask_2 := { "" } +alias_angle_2 := { 0 } + + ############################################################## Stamps ### The stamp to use if the user hasn't overwritten it for this card card_stamp_default := { @@ -5378,9 +5438,32 @@ alt_nyx_template := { dir := filter_text(src, match:"^([^.]+/)+") "/magic-mainframe-extras.mse-include/" + dir + input + (if land then "l" else "") + fs } +#### Default colors for the alias +alias_colors := { + [ + w: rgb(255, 255, 255), + u: rgb(6, 115, 184), + b: rgb(39, 38, 36), + r: rgb(168, 88, 81), + g: rgb(6, 120, 69), + a: rgb(239, 238, 236), + m: rgb(243, 210, 105), + c: rgb(173, 151, 137) + ][input] +} +#### Folder containing files +alias_src := "/magic-modules.mse-include/alias/" +#### Construct alias bar +alias_custom_template := { + new_color := alias_colors(input, land:land) + color := recolor_image(alias_src+"color.png", color:new_color) + masked_blend(dark:color, light:alias_src+"base.png", mask:alias_src+"mask.png") +}@(land:false) +alias_custom_land_template := {alias_custom_template(input, land:true)} harder_script := [ alt_nyx: alt_nyx_template, - custom_border: custom_border_image + custom_border: custom_border_image, + alias: alias_custom_template ] ############################################################## Card column sorting type_sort_script :=