3.0.4 (#92)
Custom Symbol links will now detect if they are smaller than 512px wide, and add padding if they are not. This will do the padding for any old custom symbols without needing to update them. If you need to disable the autopadding, replace the "+" MSE inserts into the link to a "-".
Fixed a bug where generic mana symbols were misaligned on HD frames.
Fixed spree +s indenting like modals when they should not.
Fix layering conflicts with the Lesson symbol and the Alchemy symbol.
Fix layering conflict with Kaldheim Showcase watermark.
Fix Mainframe Planeswalker watermark dependency warning.
Fix Clear Tops looking in the wrong folder.
Fix blending error on clear cards with colored mana costs.
Fixed the alignment of the red Star nyx replacement.
Improved the text on VOW Showcase.
This commit is contained in:
@@ -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: {"<li><bullet>" + _1 + "</bullet>" + _2 + "</li>"}
|
||||
) +
|
||||
#### 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}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user