diff --git a/data/magic-m15-altered.mse-style/style b/data/magic-m15-altered.mse-style/style index ccbde1024..2378b5aed 100644 --- a/data/magic-m15-altered.mse-style/style +++ b/data/magic-m15-altered.mse-style/style @@ -465,7 +465,10 @@ init script: } card_background := { - color_background( + bc := base_card() + if bc == "clear" + then "/magic-modules.mse-include/cards/375 m15 simple/xcard.png" + else color_background( type:"card", base_hybrid:card_hybrid, folder: if is_map() then "/magic-modules.mse-include/cards/746 maps/" else if is_thbland() then "energies/" else if is_dka() then "dka/" else template_prefix["card"] @@ -1989,7 +1992,7 @@ extra card style: z index: 199 render style: image popup style: in place - image: xcard.png + image: /magic-modules.mse-include/cards/375 m15 simple/xcard.png mask: { if is_dka() then "frame_masks/clear_tops_dka_mask2.png" } evobar: left: {if is_map() then 15 else 27} diff --git a/data/magic-m15-mainframe-dfc.mse-style/style b/data/magic-m15-mainframe-dfc.mse-style/style index 9da71b843..32b446530 100644 --- a/data/magic-m15-mainframe-dfc.mse-style/style +++ b/data/magic-m15-mainframe-dfc.mse-style/style @@ -1396,7 +1396,9 @@ init script: else if is_modal_dfc() then "/magic-modules.mse-include/cards/375 m15 cut/" else "/magic-modules.mse-include/cards/375 m15 cut/notched/" - color_background( + if front_clear() and not a_saga() + then front_card_img() + else color_background( type: "card", base_hybrid: card_hybrid, folder: folder @@ -1432,7 +1434,9 @@ init script: else if back_map() then "/magic-modules.mse-include/cards/746 maps/" else "/magic-modules.mse-include/cards/375 m15 cut/" + (if not norm then "back/" else "") - color_background( + if back_clear() and not b_saga() + then back_card_img() + else color_background( type: "card2", base_hybrid: card_hybrid, folder: folder, diff --git a/data/magic-m15-mainframe-planeswalker.mse-style/style b/data/magic-m15-mainframe-planeswalker.mse-style/style index 59e905454..c5c84c775 100644 --- a/data/magic-m15-mainframe-planeswalker.mse-style/style +++ b/data/magic-m15-mainframe-planeswalker.mse-style/style @@ -311,6 +311,7 @@ init script: popout_height := { popout_coord(3, field:styling.popout_image_style or else "") } popout_angle := { popout_coord(4, field:styling.popout_image_style or else "", lim:4) } use_popunder := { chosen(styling.other_options, choice:"popunder art") } + watermark_include := "/magic-modules.mse-include/watermarks" ############################################################## Set info fields set info style: symbol: diff --git a/data/magic-m15-showcase-innistrad-vow.mse-style/style b/data/magic-m15-showcase-innistrad-vow.mse-style/style index 56a6893cd..d3913482c 100644 --- a/data/magic-m15-showcase-innistrad-vow.mse-style/style +++ b/data/magic-m15-showcase-innistrad-vow.mse-style/style @@ -56,7 +56,7 @@ init script: swap_fonts_type_default := [ name: {"Beleren Bold"}, - size: {30.0}, + size: {27.0}, color: {"black"}, vertical: {0}, italic: {""} @@ -246,8 +246,8 @@ card style: right: 690 bottom: { 966 - chop_bot() } z index: 900 - padding left: 6 - padding right: 4 + padding left: 18 + padding right: 8 line height hard: { if is_modal(card.rule_text) then 0.9 else 1.2 } line height line: 1.5 line height soft: 0.9 diff --git a/data/magic-m15-showcase-kaldheim-dfc.mse-style/style b/data/magic-m15-showcase-kaldheim-dfc.mse-style/style index 4ff5fd1d8..e84c369a5 100644 --- a/data/magic-m15-showcase-kaldheim-dfc.mse-style/style +++ b/data/magic-m15-showcase-kaldheim-dfc.mse-style/style @@ -353,7 +353,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: {15 - shrink_name()} @@ -365,7 +365,7 @@ card style: height: {23 - 0.5*shrink_name2()} alignment: bottom shrink-overflow padding bottom: 0 - z index: 1 + z index: 900 font: name: Beleren Bold size: {15 - shrink_name2()} @@ -384,7 +384,7 @@ card style: size: 15 alignment: middle right always symbol: true - z index: 2 + z index: 920 padding top: 0 casting cost 2: right: 723 @@ -400,7 +400,7 @@ card style: size: 15 alignment: middle right always symbol: true - z index: 2 + z index: 920 padding top: 0 ############################# Image image: @@ -425,7 +425,7 @@ card style: top: 308 width: 17 height: 17 - z index: 1 + z index: 940 render style: image visible: { has_identity() } image: { module_identity() } @@ -434,7 +434,7 @@ card style: top: 308 width: 17 height: 17 - z index: 1 + z index: 940 render style: image visible: { has_identity_2() } image: { module_identity() } @@ -444,7 +444,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 @@ -457,7 +457,7 @@ card style: width: { (if has_identity_2() then "290" else "310") - max(22,card_style.rarity.content_width) } height: { 20 - shrink_type2() } alignment: top shrink-overflow - z index: 2 + z index: 900 padding top: 2 font: name: Beleren Bold @@ -469,7 +469,7 @@ card style: top: 308 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 @@ -478,7 +478,7 @@ card style: top: 308 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 @@ -549,7 +549,7 @@ card style: line height line max: 1.6 ############################# PT pt: - z index: 2 + z index: 900 left: 293 top: 468 width: 60 @@ -561,7 +561,7 @@ card style: color: black separator color: red pt 2: - z index: 2 + z index: 900 left: 670 top: 468 width: 60 @@ -655,7 +655,7 @@ extra card style: top: 460 width: 77 height: 43 - z index: 1 + z index: 840 visible: { card.pt != "" } render style: image image: { if is_vehicle() then "vpt.png" else card_ptbox() } @@ -664,7 +664,7 @@ extra card style: top: 460 width: 77 height: 43 - z index: 1 + z index: 840 visible: { card.pt_2 != "" } render style: image image: { if back_vehicle() then "vpt.png" else card_ptbox() } diff --git a/data/magic-m15-showcase-kaldheim.mse-style/style b/data/magic-m15-showcase-kaldheim.mse-style/style index b59876cf1..44d1cb551 100644 --- a/data/magic-m15-showcase-kaldheim.mse-style/style +++ b/data/magic-m15-showcase-kaldheim.mse-style/style @@ -250,7 +250,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: {15 - shrink_name()} @@ -269,7 +269,7 @@ card style: size: 15 alignment: middle right always symbol: true - z index: 2 + z index: 920 padding top: 0 ############################# Image image: @@ -286,7 +286,7 @@ card style: top: 308 width: 17 height: 17 - z index: 1 + z index: 920 render style: image visible: { has_identity() } image: { module_identity() } @@ -296,7 +296,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 @@ -308,7 +308,7 @@ card style: top: 308 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 @@ -337,7 +337,7 @@ card style: styling.center_text == "always" then "middle center" else "middle left" - z index: 2 + z index: 900 padding left: 6 padding right: 4 line height hard: {if is_modal(card.rule_text) then 0.9 else 1.2 } @@ -347,7 +347,7 @@ card style: line height line max: 1.6 ############################# PT pt: - z index: 2 + z index: 900 left: 293 top: 468 width: 60 @@ -385,7 +385,7 @@ extra card style: top: 460 width: 77 height: 43 - z index: 1 + z index: 840 visible: { card.pt != "" } render style: image image: { if is_vehicle() then "vpt.png" else module_ptbox() } diff --git a/data/magic-mana-large.mse-symbol-font/symbol-font b/data/magic-mana-large.mse-symbol-font/symbol-font index ade2d8aac..c6484aba1 100644 --- a/data/magic-mana-large.mse-symbol-font/symbol-font +++ b/data/magic-mana-large.mse-symbol-font/symbol-font @@ -632,8 +632,8 @@ symbol: code: [XYZ] regex: yes draw text: 0 - text margin left: .23 - text margin right: .21 + text margin left: .26 + text margin right: .18 text margin top: -.15 text margin bottom: -.06 text font: @@ -799,7 +799,7 @@ symbol: symbol: image: mana_circle.png - text margin left: .23 + text margin left: .28 text margin right: .21 text margin top: -.15 text margin bottom: -.06 diff --git a/data/magic-modules.mse-include/card-symbols/card_fields b/data/magic-modules.mse-include/card-symbols/card_fields index 668793ead..cff703158 100644 --- a/data/magic-modules.mse-include/card-symbols/card_fields +++ b/data/magic-modules.mse-include/card-symbols/card_fields @@ -9,4 +9,4 @@ card style: include file: /magic.mse-game/card-symbols/menu_choice_images render style: image image: { card_symbol_image(face: 1) } - z index: 870 + z index: 880 diff --git a/data/magic-modules.mse-include/card-symbols/card_fields_dfc b/data/magic-modules.mse-include/card-symbols/card_fields_dfc index 1b52cad2b..f8d3a6406 100644 --- a/data/magic-modules.mse-include/card-symbols/card_fields_dfc +++ b/data/magic-modules.mse-include/card-symbols/card_fields_dfc @@ -10,4 +10,4 @@ card style: include file: /magic.mse-game/card-symbols/menu_choice_images render style: image image: { card_symbol_image(face: 2) } - z index: 870 + z index: 880 diff --git a/data/magic-modules.mse-include/card-symbols/card_fields_tfc b/data/magic-modules.mse-include/card-symbols/card_fields_tfc index 515c11cb9..06fdea8e2 100644 --- a/data/magic-modules.mse-include/card-symbols/card_fields_tfc +++ b/data/magic-modules.mse-include/card-symbols/card_fields_tfc @@ -10,4 +10,4 @@ card style: include file: /magic.mse-game/card-symbols/menu_choice_images render style: image image: { card_symbol_image(face: 3) } - z index: 870 + z index: 880 diff --git a/data/magic-modules.mse-include/readme.txt b/data/magic-modules.mse-include/readme.txt index 4b0cb88e7..46b38aca0 100644 --- a/data/magic-modules.mse-include/readme.txt +++ b/data/magic-modules.mse-include/readme.txt @@ -70,12 +70,12 @@ Specific z indexes 800 Indicators 800 Legend crown -810 Tombstone/alchemy symbol 830 Loyalty boxes 840 PT Box, Leveler arrows, Flash dot 850 Color stamp 860 Holofoil stamp 870 Transform symbol +880 Tombstone/alchemy symbol 880 Alias box 900 Loyalty cost colons diff --git a/data/magic-modules.mse-include/trims/star/rstar.png b/data/magic-modules.mse-include/trims/star/rstar.png index d9baf85cc..0abf538ca 100644 Binary files a/data/magic-modules.mse-include/trims/star/rstar.png and b/data/magic-modules.mse-include/trims/star/rstar.png differ diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index a94322653..90c40cc5c 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -33,7 +33,7 @@ include file: language include file: statistics_script include file: /magic-blends.mse-include/new-blends ############################################################## Versioning -version_date := {"2024-10-01 Template Pack 3.0.2: Magic Modules & Showcase Catchup - DFC bugfixes"} +version_date := {"2024-10-01 Template Pack 3.0.4: Magic Modules & Showcase Catchup - Custom Symbol padding"} version := version_date ############################################################## Common filters ############################################################## Utility @@ -1755,7 +1755,7 @@ text_filter := ) + #### step 7b : indent bullets replace@( - match: "^(• |[+] ?)([^\n]+\n?)", + match: "^(• )([^\n]+\n?)", replace: {"
  • " + _1 + "" + _2 + "
  • "} ) + #### step 7c : clean up modals @@ -4082,7 +4082,7 @@ name_height := name_transform_symbol_shift := { - if transform_symbol_field(face) == "none" or disabled + if transform_symbol_field(face) == "none" or card_symbol_field(face) == "none" or disabled then 0 else ( map := face_coordinates_map(face) @@ -4468,33 +4468,52 @@ chop_bottom := { module_chop(1) } chop_right := { module_chop(2) } ############################################################## Custom corner symbols +verify_symbol_image := { + array := split_comma(input) + if not has_png(array.0) + then array.0 + else ( + sym_link := array.0 + sym_pad := array.3 or else "" + sym_exists := exists_in_package("/magic-mainframe-extras.mse-include/"+sym_link) + if not sym_exists then ( + sym_link + ",Not found,Ensure the file name is correct in /data/magic-mainframe-extras and reload," + sym_pad + ) else ( + sym_width := width_of("/magic-mainframe-extras.mse-include/"+sym_link) + sym_pad := array.3 or else "" + if (sym_width <= 512) then ( + if sym_pad == "" then sym_pad := "+" + ) + sym_link + ",File found,{sym_width},{sym_pad}" + ) + ) +} +custom_symbol_image := { + src := if style_src != "" then style_src else set["custom_symbol_"+input] + array := split_comma(src) + if not has_png(array.0) or array.1 == "Not found" + then "/magic-modules.mse-include/symbols/aetherprint.png" + else ( + link := "/magic-mainframe-extras.mse-include/" + array.0 + if array.3 == "+" then link := enlarge(link, border_size:0.189) + link + ) +}@(style_src:"") custom_symbol_1 := { style_src := styling.custom_symbol_1 or else styling.custom_symbol_one or else styling.custom_symbol or else "" - src := if style_src != "" then style_src else set.custom_symbol_1 - if has_png(src) - then "/magic-mainframe-extras.mse-include/" + src - else "/magic-modules.mse-include/symbols/aetherprint.png" + custom_symbol_image(1, style_src:style_src) } custom_symbol_2 := { style_src := styling.custom_symbol_2 or else styling.custom_symbol_two or else styling.custom_symbol or else "" - src := if style_src != "" then style_src else set.custom_symbol_2 - if has_png(src) - then "/magic-mainframe-extras.mse-include/" + src - else "/magic-modules.mse-include/symbols/aetherprint.png" + custom_symbol_image(2, style_src:style_src) } custom_symbol_3 := { style_src := styling.custom_symbol_3 or else styling.custom_symbol_three or else styling.custom_symbol or else "" - src := if style_src != "" then style_src else set.custom_symbol_3 - if has_png(src) - then "/magic-mainframe-extras.mse-include/" + src - else "/magic-modules.mse-include/symbols/aetherprint.png" + custom_symbol_image(3, style_src:style_src) } custom_symbol_4 := { style_src := styling.custom_symbol_4 or else styling.custom_symbol_four or else styling.custom_symbol or else "" - src := if style_src != "" then style_src else set.custom_symbol_4 - if has_png(src) - then "/magic-mainframe-extras.mse-include/" + src - else "/magic-modules.mse-include/symbols/aetherprint.png" + custom_symbol_image(4, style_src:style_src) } ############################################################## Custom fonts swap_font := {styling.apply_custom_fonts or else false} diff --git a/data/magic.mse-game/set_fields b/data/magic.mse-game/set_fields index c89dab7e5..651480d77 100644 --- a/data/magic.mse-game/set_fields +++ b/data/magic.mse-game/set_fields @@ -381,19 +381,23 @@ set field: set field: type: text name: custom symbol 1 - description: Set this image in magic-symbols.mse-include as Custom Symbol 1 + description: Set this image in magic-symbols.mse-include as Custom Symbol 1. Symbols less than 512px wide will be padded by 19%, change + to - to disable. + script: verify_symbol_image(value) set field: type: text name: custom symbol 2 - description: Set this image in magic-symbols.mse-include as Custom Symbol 2 + description: Set this image in magic-symbols.mse-include as Custom Symbol 2. Symbols less than 512px wide will be padded by 19%, change + to - to disable. + script: verify_symbol_image(value) set field: type: text name: custom symbol 3 - description: Set this image in magic-symbols.mse-include as Custom Symbol 3 + description: Set this image in magic-symbols.mse-include as Custom Symbol 3. Symbols less than 512px wide will be padded by 19%, change + to - to disable. + script: verify_symbol_image(value) set field: type: text name: custom symbol 4 - description: Set this image in magic-symbols.mse-include as Custom Symbol 4 + description: Set this image in magic-symbols.mse-include as Custom Symbol 4. Symbols less than 512px wide will be padded by 19%, change + to - to disable. + script: verify_symbol_image(value) set field: