From 1d593c182c8ad15d1a77c2040ccfb5f3feb68947 Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:51:57 -0500 Subject: [PATCH] add snow and nyx m20 tokens --- .../m20/nyx_mask.png | Bin 0 -> 179 bytes .../m20/snowbox_mask.png | Bin 0 -> 100 bytes .../m20/type_mask.png | Bin 0 -> 186 bytes .../style | 64 ++++++++++++++---- 4 files changed, 50 insertions(+), 14 deletions(-) create mode 100644 data/magic-m15-mainframe-tokens.mse-style/m20/nyx_mask.png create mode 100644 data/magic-m15-mainframe-tokens.mse-style/m20/snowbox_mask.png create mode 100644 data/magic-m15-mainframe-tokens.mse-style/m20/type_mask.png diff --git a/data/magic-m15-mainframe-tokens.mse-style/m20/nyx_mask.png b/data/magic-m15-mainframe-tokens.mse-style/m20/nyx_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..de08890c14d7301729175b3f6d60f5de16605b38 GIT binary patch literal 179 zcmeAS@N?(olHy`uVBq!ia0y~yU@T`~VB%(E28w91`ON}SYymzYu0VS6;>BCmxc32B z8J;eVAr-gYUNL86Via(7Y!XG<|Zz-Z^Qn!r%SlKG0~}HN*e9ee>V#uj3Ee z$=(om{JG&@luPdB{q4WMZ`oV-{JZh@dfmBCmxc32B z`JOJ0Ar-gYUfIdW$SC3(xZ7yTB9pb6uAEN4{r(yJo+Et!!+&$2Is|B#7ZGPXyL>;_ z@3*`6x0UVxdU%U{=;i*)|AKt&_b>B$@s)R1yV^hRpT8%(zuI5DgX8yCxZZ|->0jn^ UcE&XqD1gK~UHx3vIVCg!0DvVyG5`Po literal 0 HcmV?d00001 diff --git a/data/magic-m15-mainframe-tokens.mse-style/style b/data/magic-m15-mainframe-tokens.mse-style/style index e70d0c206..3cf7d5210 100644 --- a/data/magic-m15-mainframe-tokens.mse-style/style +++ b/data/magic-m15-mainframe-tokens.mse-style/style @@ -65,6 +65,7 @@ init script: snow: "/magic-modules.mse-include/trims/snow/" nyx: "/magic-modules.mse-include/trims/nyx/" pt:"/magic-modules.mse-include/pts/375 m15/" + snowbox: "/magic-modules.mse-include/cards/375 m15 simple/snow/" stamp:"stamps/round/" ubstamp:"stamps/ub/" ] @@ -84,7 +85,8 @@ init script: nyx: "nyx.png" pt: "pt.png" stamp: "stamp.png" - ubstamp: "stamp.png" + ubstamp: "stamp.png", + snowbox: "card.jpg" ] template := { template_prefix[type] @@ -123,8 +125,8 @@ init script: mtgo_abil := {contains(styling.frames, match: "MTGO Ability") and not is_m20()} is_legend := { auto_legend() or contains(styling.frames, match:"legendary") } is_vehicle := { (auto_vehicle() or contains(styling.frames, match:"vehicle")) and not is_m20() } - is_nyx := { (auto_nyx() or contains(styling.frames, match:"nyx")) and not is_m20() and not is_clear() } - is_snow := { (auto_snow() or contains(styling.frames, match:"snow")) and not is_m20() } + is_nyx := { (auto_nyx() or contains(styling.frames, match:"nyx")) and not is_clear() } + is_snow := { (auto_snow() or contains(styling.frames, match:"snow")) } auto_legend := { set.auto_legends and lang_setting("is_legendary")(card.super_type) } auto_vehicle := { contains(styling.auto_frames, match:"vehicle") and lang_setting("is_vehicle")(card.sub_type) } auto_nyx := { contains(styling.auto_frames, match:"nyx") and lang_setting("is_enchantment")(card.super_type) } @@ -142,6 +144,7 @@ init script: alias_bar := { color_background(type:"alias", base_hybrid:card_hybrid) } use_evobar := {chosen(styling.other_options, choice:"pokemon evobar") and not is_skinned()} is_skinned := {chosen(styling.other_options, choice:"godzilla style alias")} + snow_card_background := { color_background(type:"snowbox", base_hybrid:card_hybrid, folder:"/magic-modules.mse-include/cards/375 m15 simple/", blend_type:"card") } ########## Mainframe stuff use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")} un_png := replace@(match:".png", replace: "") @@ -174,6 +177,7 @@ init script: }, color: { if is_weird_token() then "white" + else if is_m20() and is_snow() then "black" else if is_m20() and card.card_color == "white" and not is_clear() then "black" else if is_m20() then "white" else rgb(255,239,128) @@ -673,7 +677,19 @@ extra card field: extra card field: type: choice name: snow overlay - choice: plate + script: card.card_color + save value: false + editable: false +extra card field: + type: choice + name: snow type overlay + script: card.card_color + save value: false + editable: false +extra card field: + type: choice + name: snow box overlay + script: card.card_color save value: false editable: false extra card field: @@ -777,25 +793,45 @@ extra card style: image: plate.png visible: { mtgo_abil() } nyx overlay: - left: 15 - top: 15 - width: 345 - height: 471 + left: {if is_m20() then 0 else 15} + top: {if is_m20() then 0 else 15} + width: {if is_m20() then 375 else 345} + height: {if is_m20() then 523 else 471} z index: 1 render style: image image: {module_nyx()} - mask: {"v_" + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"} + mask: {if is_m20() then "m20/nyx_mask.png" else "v_" + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"} visible: { is_nyx() } snow overlay: - left: 15 - top: 15 - width: 345 - height: 471 + left: {if is_m20() then 0 else 15} + top: {if is_m20() then 0 else 15} + width: {if is_m20() then 375 else 345} + height: {if is_m20() then 523 else 471} z index: 1 render style: image image: {module_snow()} - mask: {"v_" + (if is_nyx() then "nyx_" else "") + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"} + mask: {if is_m20() then "m20/nyx_mask.png" else "v_" + (if is_nyx() then "nyx_" else "") + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"} visible: { is_snow() } + snow type overlay: + left: 0 + top: { if is_tall() then 0 else if is_textless() then 134 else 60 } + width: 375 + height: 523 + z index: 1 + render style: image + image: {module_snow()} + mask: m20/type_mask.png + visible: { is_snow() and is_m20() } + snow box overlay: + left: 28 + top: { if is_tall() then 327 else 387 } + width: { if is_textless() then 0 else 320 } + height: { if is_tall() then 156 else 96 } + z index: 1 + render style: image + image: { crop(snow_card_background(), offset_x:28, offset_y:327, width:320, height:156) } + mask: m20/snowbox_mask.png + visible: { is_snow() and is_m20() } vehicle overlay: left: 15 top: 15