neonafroman bugfixes

This commit is contained in:
cajun
2024-10-03 21:54:07 -05:00
parent 5a95c927e5
commit b7385c5b20
7 changed files with 7 additions and 4 deletions

View File

@@ -967,6 +967,7 @@ styling field:
type: text
name: custom symbol
description: Uses a custom Lesson symbol from data/magic-mainframe-extras.mse-include
script: verify_symbol_image(value)
styling field:
type: text
name: card watermark

View File

@@ -1704,10 +1704,12 @@ styling field:
type: text
name: custom symbol one
description: Uses a custom DFC symbol from data/magic-mainframe-extras.mse-include
script: verify_symbol_image(value)
styling field:
type: text
name: custom symbol two
description: Uses a custom DFC symbol from data/magic-mainframe-extras.mse-include
script: verify_symbol_image(value)
styling field:
type: text
name: card watermark

View File

@@ -833,4 +833,4 @@ extra card style:
z index: 840
visible: { card.pt_3 != "" }
render style: image
image: pt.png
image: { template_prefix["pt"] + "cpt.png" }

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

View File

@@ -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.4: Magic Modules & Showcase Catchup - Custom Symbol padding"}
version_date := {"2024-10-01 Template Pack 3.0.5: Magic Modules & Showcase Catchup - UBWalker fix"}
version := version_date
############################################################## Common filters
############################################################## Utility
@@ -4491,11 +4491,11 @@ verify_symbol_image := {
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"
if not has_png(array.0) or (array.1 or else "" == "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)
if array.3 or else "" == "+" then link := enlarge(link, border_size:0.189)
link
)
}@(style_src:"")