Update to 2.5.3 (#78)

* Update to 2.5.3

- add `exists_in_package` script function, which take a string argument of the form
"/package-name.package-extension/file-name.file-extension" and return true if the file can be loaded by MSE.
- add 175% export zoom option

* update watermark handling
* collapse card_watermark_1 etc into custom_watermark_link(#)
* added verify_watermark_image, a script that runs in custom watermark fields
* if the field is a potentially valid link, it will run exists_in_package, width_of, and length_of and caches their info in the field
* if the image is too big, it displays it normally instead of erroring

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
GenevensiS
2024-09-26 22:37:23 +02:00
committed by GitHub
parent 2b8aa26f9f
commit fb3e5092a6
14 changed files with 143 additions and 87 deletions

View File

@@ -5,7 +5,7 @@ HOUSEKEEPING
• I have created a tool at https://mse-editor.neocities.org/ which you can upload MSE files to in order to patch their data. Not all sets will need this, but it will stop your console from blowing up with harmless warnings the first time you load sets • I have created a tool at https://mse-editor.neocities.org/ which you can upload MSE files to in order to patch their data. Not all sets will need this, but it will stop your console from blowing up with harmless warnings the first time you load sets
MSE 2.5 MSE 2.5
Genevensis and Hagan have been doing excellent work at getting MSE compiled and edited lately, and so this update also has us upgrading from MSE 2.1.2 all the way to MSE 2.5.2! What does that mean for you? Genevensis and Hagan have been doing excellent work at getting MSE compiled and edited lately, and so this update also has us upgrading from MSE 2.1.2 all the way to MSE 2.5.3! What does that mean for you?
UI Updates: UI Updates:
• When selecting Games or Templates, there is now a search bar that allows you to filter templates. • When selecting Games or Templates, there is now a search bar that allows you to filter templates.
• Added the ability to underline text via Ctrl+U or the [u]U[/u] buttom on the top panel. • Added the ability to underline text via Ctrl+U or the [u]U[/u] buttom on the top panel.
@@ -19,6 +19,7 @@ Image Updates:
Template Development Updates: Template Development Updates:
• Extra card data is now available for template development under `extra_card.field_name` and `extra_card_style.field_name.style_name`! • Extra card data is now available for template development under `extra_card.field_name` and `extra_card_style.field_name.style_name`!
• The built-in functions `width_of(image)` and `height_of(image)` have been added. • The built-in functions `width_of(image)` and `height_of(image)` have been added.
• The built-in function `exists_in_package("/package-name.package-extension/file-name.file-extension")` has been added to check if a file exists.
• Stylesheets can now define `card regions`, with properties `name:, x:, y:, width:, height:`. These can be accessed in the array stylesheet.card_regions to help the script decide how to split images with multiple regions. • Stylesheets can now define `card regions`, with properties `name:, x:, y:, width:, height:`. These can be accessed in the array stylesheet.card_regions to help the script decide how to split images with multiple regions.
• The built-in function `to_date` now accepts "now" as a parameter. • The built-in function `to_date` now accepts "now" as a parameter.
• Added combine modes "greater than N" and "smaller than N", where N is multiples of 5 between 0 and 255. These apply to pixels which have all their RGB values greater/smaller than N. The main use case for this is applying textures to text; An example texture `set_combine("texture.png", combine:"greater than 160")` layered over text will be masked to only appear over white and light gray pixels. This works best when the text is on a high contrast background, otherwise the texture may be applied to the background. • Added combine modes "greater than N" and "smaller than N", where N is multiples of 5 between 0 and 255. These apply to pixels which have all their RGB values greater/smaller than N. The main use case for this is applying textures to text; An example texture `set_combine("texture.png", combine:"greater than 160")` layered over text will be masked to only appear over white and light gray pixels. This works best when the text is on a high contrast background, otherwise the texture may be applied to the background.

View File

@@ -1092,39 +1092,44 @@ set_watermark_blend := {
} }
spotlight_watermark_blend := { spotlight_watermark_blend := {
face := [1:card.card_color, 2:card.card_color_2, 3:card.card_color_3][face] face := [1:card.card_color, 2:card.card_color_2, 3:card.card_color_3][face]
if type_name(input) == type_name("string") and contains(input, match:".png,") then ( if type_of(input) == type_of("string") then (
array := split_text(input+",,", match:",") array := split_comma(input)
input := array.0 input := array.0
if length(array) > 1 then (
px := px_split(array.2)
if length(px) > 2
then l := 0
else (
l := px.0
h := px.1
)
)
) )
wmc := watermark_colors(face:face)
c1 := wmc.0 + (if contains(face, match:"land") then "l") + "spotlight.png"
c2 := wmc.1 + (if contains(face, match:"land") then "l") + "spotlight.png"
custom_img := to_image(input) if l < 1 or h < 1 or l > 1024 or h > 1024 then (
l := width_of(custom_img) input
h := height_of(custom_img) ) else (
wm := "" wmc := watermark_colors(face:face)
if l > 1024 or h > 1024 then ( c1 := wmc.0 + (if contains(face, match:"land") then "l") + "spotlight.png"
trace("Maximum custom watermark dimensions are 1024x1024.") c2 := wmc.1 + (if contains(face, match:"land") then "l") + "spotlight.png"
)else(
wmdir := watermark_include + "/spotlight/" wmdir := watermark_include + "/spotlight/"
c1 := crop(wmdir+c1, height:h, width:l, offset_x:0, offset_y:0) c1 := crop(wmdir+c1, height:h, width:l, offset_x:0, offset_y:0)
c2 := crop(wmdir+c2, height:h, width:l, offset_x:0, offset_y:0) c2 := crop(wmdir+c2, height:h, width:l, offset_x:0, offset_y:0)
mask := input mask := input
wm := set_alpha( set_alpha(
alpha: alpha alpha: alpha
input: input:
linear_blend( linear_blend(
image1: image1:
masked_blend( masked_blend(
light: custom_img light: input
dark: c1 dark: c1
mask: mask mask: mask
) )
image2: image2:
masked_blend( masked_blend(
light: custom_img light: input
dark: c2 dark: c2
mask: mask mask: mask
) )
@@ -1133,8 +1138,7 @@ spotlight_watermark_blend := {
) )
) )
) )
wm }@(face:1,alpha:0.2,l:500,h:500)
}@(face:1,alpha:0.2)
shadow_watermark_blend := { shadow_watermark_blend := {
set_combine( set_combine(

View File

@@ -965,6 +965,7 @@ styling field:
type: text type: text
name: card watermark name: card watermark
description: Filename in magic-watermarks to use for standalone card watermark description: Filename in magic-watermarks to use for standalone card watermark
script: verify_watermark_image(value)
include file: /magic-modules.mse-include/crowns/styling_fields include file: /magic-modules.mse-include/crowns/styling_fields
styling field: styling field:
type: boolean type: boolean

View File

@@ -94,6 +94,7 @@ styling field:
type: text type: text
name: card watermark name: card watermark
description: Filename in magic-watermarks to use for standalone card watermark description: Filename in magic-watermarks to use for standalone card watermark
script: verify_watermark_image(value)
styling field: styling field:
type: boolean type: boolean
name: grey hybrid name name: grey hybrid name

View File

@@ -1933,10 +1933,12 @@ styling field:
type: text type: text
name: card watermark name: card watermark
description: Filename in magic-mainframe-extras to use for standalone card watermark description: Filename in magic-mainframe-extras to use for standalone card watermark
script: verify_watermark_image(value)
styling field: styling field:
type: text type: text
name: card watermark 2 name: card watermark 2
description: Filename in magic-mainframe-extras to use for standalone card watermark description: Filename in magic-mainframe-extras to use for standalone card watermark
script: verify_watermark_image(value)
include file: /magic-modules.mse-include/crowns/styling_fields include file: /magic-modules.mse-include/crowns/styling_fields
include file: /magic-modules.mse-include/rarities/styling_fields include file: /magic-modules.mse-include/rarities/styling_fields
styling field: styling field:

View File

@@ -6,8 +6,13 @@ styling field:
choice: blend with colors choice: blend with colors
choice: shadow choice: shadow
choice: glow choice: glow
description: Image needs to be 500x500 px or smaller to blend with card colors. For best results, use a solid black watermark on transparent background. description: Image needs to be 1024x1024 px or smaller to blend with card colors. For best results, use a solid black watermark on transparent background.
styling field: styling field:
type: text type: text
name: watermark opacity percentage name: watermark opacity percentage
description: Override the default watermark opacity percentage with a given number between 0 and 100. description: Override the default watermark opacity percentage with a given number between 0 and 100.
styling field:
type: text
name: card watermark
description: Filename in magic-mainframe-extras to use for standalone card watermark
script: verify_watermark_image(value)

View File

@@ -188,16 +188,16 @@ choice images:
universes beyond ponies nightmare moon: script: watermark_blend(face:1, "/magic-watermarks.mse-include/ponies_waning_moon.png") universes beyond ponies nightmare moon: script: watermark_blend(face:1, "/magic-watermarks.mse-include/ponies_waning_moon.png")
universes beyond ponies luna: script: watermark_blend(face:1, "/magic-watermarks.mse-include/ponies_waxing_moon.png") universes beyond ponies luna: script: watermark_blend(face:1, "/magic-watermarks.mse-include/ponies_waxing_moon.png")
custom watermark one: script: watermark_blend(face:1, custom_watermark_1()) custom watermark one: script: watermark_blend(face:1, custom_watermark_link(1))
custom watermark two: script: watermark_blend(face:1, custom_watermark_2()) custom watermark two: script: watermark_blend(face:1, custom_watermark_link(2))
custom watermark three: script: watermark_blend(face:1, custom_watermark_3()) custom watermark three: script: watermark_blend(face:1, custom_watermark_link(3))
custom watermark four: script: watermark_blend(face:1, custom_watermark_4()) custom watermark four: script: watermark_blend(face:1, custom_watermark_link(4))
custom watermark five: script: watermark_blend(face:1, custom_watermark_5()) custom watermark five: script: watermark_blend(face:1, custom_watermark_link(5))
custom watermark six: script: watermark_blend(face:1, custom_watermark_6()) custom watermark six: script: watermark_blend(face:1, custom_watermark_link(6))
custom watermark seven: script: watermark_blend(face:1, custom_watermark_7()) custom watermark seven: script: watermark_blend(face:1, custom_watermark_link(7))
custom watermark eight: script: watermark_blend(face:1, custom_watermark_8()) custom watermark eight: script: watermark_blend(face:1, custom_watermark_link(8))
custom watermark nine: script: watermark_blend(face:1, custom_watermark_9()) custom watermark nine: script: watermark_blend(face:1, custom_watermark_link(9))
custom watermark ten: script: watermark_blend(face:1, custom_watermark_10()) custom watermark ten: script: watermark_blend(face:1, custom_watermark_link(10))
custom watermark card: script: watermark_blend(face:1, custom_watermark_a()) custom watermark card: script: watermark_blend(face:1, custom_card_watermark(face:1))
set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark"))

View File

@@ -188,16 +188,16 @@ choice images:
universes beyond ponies nightmare moon: script: watermark_blend(face:2, "/magic-watermarks.mse-include/ponies_waning_moon.png") universes beyond ponies nightmare moon: script: watermark_blend(face:2, "/magic-watermarks.mse-include/ponies_waning_moon.png")
universes beyond ponies luna: script: watermark_blend(face:2, "/magic-watermarks.mse-include/ponies_waxing_moon.png") universes beyond ponies luna: script: watermark_blend(face:2, "/magic-watermarks.mse-include/ponies_waxing_moon.png")
custom watermark one: script: watermark_blend(face:2, custom_watermark_1()) custom watermark one: script: watermark_blend(face:2, custom_watermark_link(1))
custom watermark two: script: watermark_blend(face:2, custom_watermark_2()) custom watermark two: script: watermark_blend(face:2, custom_watermark_link(2))
custom watermark three: script: watermark_blend(face:2, custom_watermark_3()) custom watermark three: script: watermark_blend(face:2, custom_watermark_link(3))
custom watermark four: script: watermark_blend(face:2, custom_watermark_4()) custom watermark four: script: watermark_blend(face:2, custom_watermark_link(4))
custom watermark five: script: watermark_blend(face:2, custom_watermark_5()) custom watermark five: script: watermark_blend(face:2, custom_watermark_link(5))
custom watermark six: script: watermark_blend(face:2, custom_watermark_6()) custom watermark six: script: watermark_blend(face:2, custom_watermark_link(6))
custom watermark seven: script: watermark_blend(face:2, custom_watermark_7()) custom watermark seven: script: watermark_blend(face:2, custom_watermark_link(7))
custom watermark eight: script: watermark_blend(face:2, custom_watermark_8()) custom watermark eight: script: watermark_blend(face:2, custom_watermark_link(8))
custom watermark nine: script: watermark_blend(face:2, custom_watermark_9()) custom watermark nine: script: watermark_blend(face:2, custom_watermark_link(9))
custom watermark ten: script: watermark_blend(face:2, custom_watermark_10()) custom watermark ten: script: watermark_blend(face:2, custom_watermark_link(10))
custom watermark card: script: watermark_blend(face:2, custom_watermark_a()) custom watermark card: script: watermark_blend(face:2, custom_card_watermark(face:2))
set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark"))

View File

@@ -188,16 +188,16 @@ choice images:
universes beyond ponies nightmare moon: script: watermark_blend(face:3, "/magic-watermarks.mse-include/ponies_waning_moon.png") universes beyond ponies nightmare moon: script: watermark_blend(face:3, "/magic-watermarks.mse-include/ponies_waning_moon.png")
universes beyond ponies luna: script: watermark_blend(face:3, "/magic-watermarks.mse-include/ponies_waxing_moon.png") universes beyond ponies luna: script: watermark_blend(face:3, "/magic-watermarks.mse-include/ponies_waxing_moon.png")
custom watermark one: script: watermark_blend(face:3, custom_watermark_1()) custom watermark one: script: watermark_blend(face:3, custom_watermark_link(1))
custom watermark two: script: watermark_blend(face:3, custom_watermark_2()) custom watermark two: script: watermark_blend(face:3, custom_watermark_link(2))
custom watermark three: script: watermark_blend(face:3, custom_watermark_3()) custom watermark three: script: watermark_blend(face:3, custom_watermark_link(3))
custom watermark four: script: watermark_blend(face:3, custom_watermark_4()) custom watermark four: script: watermark_blend(face:3, custom_watermark_link(4))
custom watermark five: script: watermark_blend(face:3, custom_watermark_5()) custom watermark five: script: watermark_blend(face:3, custom_watermark_link(5))
custom watermark six: script: watermark_blend(face:3, custom_watermark_6()) custom watermark six: script: watermark_blend(face:3, custom_watermark_link(6))
custom watermark seven: script: watermark_blend(face:3, custom_watermark_7()) custom watermark seven: script: watermark_blend(face:3, custom_watermark_link(7))
custom watermark eight: script: watermark_blend(face:3, custom_watermark_8()) custom watermark eight: script: watermark_blend(face:3, custom_watermark_link(8))
custom watermark nine: script: watermark_blend(face:3, custom_watermark_9()) custom watermark nine: script: watermark_blend(face:3, custom_watermark_link(9))
custom watermark ten: script: watermark_blend(face:3, custom_watermark_10()) custom watermark ten: script: watermark_blend(face:3, custom_watermark_link(10))
custom watermark card: script: watermark_blend(face:3, custom_watermark_a()) custom watermark card: script: watermark_blend(face:3, custom_card_watermark(face:3))
set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark"))

View File

@@ -41,7 +41,9 @@ comma_count := filter_text@(match:",")
semicolon_count := filter_text@(match:";") semicolon_count := filter_text@(match:";")
split_comma := split_text@(match: " *, *") split_comma := split_text@(match: " *, *")
split_semicolon := split_text@(match: " *; *")
line_count := split_text@(match:"\n+",include_empty:false) + length line_count := split_text@(match:"\n+",include_empty:false) + length
px_split := split_text@(match:"p?x",include_empty:false)
word_count := break_text@(match:"[^[:space:]]+") + length word_count := break_text@(match:"[^[:space:]]+") + length
@@ -92,6 +94,13 @@ clamp := {
round_up := {to_int(0.99999999999998+input)} #### 0.99999999999999 == 1, leave the 8 round_up := {to_int(0.99999999999998+input)} #### 0.99999999999999 == 1, leave the 8
round_near := {to_int(0.5+input)} round_near := {to_int(0.5+input)}
to_number_lax := { to_number(input) or else to_number(trim(input)) or else 0 } to_number_lax := { to_number(input) or else to_number(trim(input)) or else 0 }
#### type_name("string") returns string ("string") so fix that
#### type_name(nil) is fine
remove_paren := replace@(match:" \\(.*", replace:"")
type_of := {
remove_paren(type_name(input))
}
#### reads from a comma separated list like an array #### reads from a comma separated list like an array
pull_comma_array := { pull_comma_array := {
array := split_text(input, match:divider) array := split_text(input, match:divider)
@@ -2322,21 +2331,44 @@ correction_coeff := {
else 0) + (if lbh >= 4 then 0.5*lbh-1) else 0) + (if lbh >= 4 then 0.5*lbh-1)
} }
############################################################## Watermarks ############################################################## Watermarks
custom_watermark_1 := { if set.custom_watermark_1 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_1 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_2 := { if set.custom_watermark_2 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_2 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_3 := { if set.custom_watermark_3 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_3 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_4 := { if set.custom_watermark_4 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_4 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_5 := { if set.custom_watermark_5 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_5 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_6 := { if set.custom_watermark_6 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_6 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_7 := { if set.custom_watermark_7 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_7 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_8 := { if set.custom_watermark_8 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_8 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_9 := { if set.custom_watermark_9 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_9 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_10 := { if set.custom_watermark_10 != "" then "/magic-mainframe-extras.mse-include/" + set.custom_watermark_10 else "/magic-modules.mse-include/watermarks/other/planeswalker.png" }
custom_watermark_a := {"/magic-modules.mse-include/watermarks/other/planeswalker.png"}
custom_watermark_b := {"/magic-modules.mse-include/watermarks/other/planeswalker.png"}
invert_watermark_1 := { false } invert_watermark_1 := { false }
invert_watermark_2 := { false } invert_watermark_2 := { false }
invert_watermark_3 := { false } invert_watermark_3 := { false }
verify_watermark_image := {
array := split_comma(input)
if not has_png(array.0)
then array.0
else (
wm_link := array.0
wm_exists := exists_in_package("/magic-mainframe-extras.mse-include/"+wm_link)
if not wm_exists then (
wm_link + ",Not found,Ensure the file name is correct in /data/magic-mainframe-extras and reload"
) else (
wm_width := width_of("/magic-mainframe-extras.mse-include/"+wm_link)
wm_height := height_of("/magic-mainframe-extras.mse-include/"+wm_link)
if (wm_width > 1024 or wm_height > 1024)
then wm_link + ",File found,Limit watermarks to 1024x1024px or smaller for color blending"
else wm_link + ",File found,{wm_width}x{wm_height}px"
)
)
}
custom_watermark_link := {
field := set["custom_watermark_"+input]
array := split_comma(field)
#### not blank, has png, is either verified or old link that's probably fine
if array.0 != "" and has_png(array.0) and array.1 or else "" != "Not found"
then "/magic-mainframe-extras.mse-include/"+field
else "/magic-modules.mse-include/watermarks/other/planeswalker.png"
}
custom_card_watermark := {
tag := if face == 1 then "" else "_" + face
field := styling["card_watermark"+tag] or else ""
array := split_comma(field)
#### not blank, has png, is either verified or old link that's probably fine
if array.0 != "" and has_png(array.0) and array.1 or else "" != "Not found"
then "/magic-mainframe-extras.mse-include/"+field
else "/magic-modules.mse-include/watermarks/other/planeswalker.png"
}
card_new_color := { card_new_color := {
if card.card_color == "white" then "w" if card.card_color == "white" then "w"
else if card.card_color == "blue" then "u" else if card.card_color == "blue" then "u"
@@ -2562,17 +2594,17 @@ watermark_scripts :=
"universes beyond ponies nightmare moon": { watermark_blend(wm_directory + "ponies/nightmare moon.png") } "universes beyond ponies nightmare moon": { watermark_blend(wm_directory + "ponies/nightmare moon.png") }
"universes beyond ponies luna": { watermark_blend(wm_directory + "ponies/luna.png") } "universes beyond ponies luna": { watermark_blend(wm_directory + "ponies/luna.png") }
"custom watermark one": { watermark_blend(custom_watermark_1(), custom:true) } "custom watermark one": { watermark_blend(custom_watermark_link(1), custom:true) }
"custom watermark two": { watermark_blend(custom_watermark_2(), custom:true) } "custom watermark two": { watermark_blend(custom_watermark_link(2), custom:true) }
"custom watermark three": { watermark_blend(custom_watermark_3(), custom:true) } "custom watermark three": { watermark_blend(custom_watermark_link(3), custom:true) }
"custom watermark four": { watermark_blend(custom_watermark_4(), custom:true) } "custom watermark four": { watermark_blend(custom_watermark_link(4), custom:true) }
"custom watermark five": { watermark_blend(custom_watermark_5(), custom:true) } "custom watermark five": { watermark_blend(custom_watermark_link(5), custom:true) }
"custom watermark six": { watermark_blend(custom_watermark_6(), custom:true) } "custom watermark six": { watermark_blend(custom_watermark_link(6), custom:true) }
"custom watermark seven": { watermark_blend(custom_watermark_7(), custom:true) } "custom watermark seven": { watermark_blend(custom_watermark_link(7), custom:true) }
"custom watermark eight": { watermark_blend(custom_watermark_8(), custom:true) } "custom watermark eight": { watermark_blend(custom_watermark_link(8), custom:true) }
"custom watermark nine": { watermark_blend(custom_watermark_9(), custom:true) } "custom watermark nine": { watermark_blend(custom_watermark_link(9), custom:true) }
"custom watermark ten": { watermark_blend(custom_watermark_10(), custom:true) } "custom watermark ten": { watermark_blend(custom_watermark_link(10), custom:true) }
"custom watermark card": { watermark_blend(custom_watermark_a(), custom:true) } "custom watermark card": { watermark_blend(custom_card_watermark(face:face), custom:true) }
"set symbol": { if (styling.watermark_render or else set.blend_with_colors) == "glow" then glow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) else shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) } "set symbol": { if (styling.watermark_render or else set.blend_with_colors) == "glow" then glow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) else shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) }
] ]

View File

@@ -318,42 +318,52 @@ set field:
type: text type: text
name: custom watermark 1 name: custom watermark 1
description: Set this image in magic-watermarks.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 2 name: custom watermark 2
description: Set this image in magic-watermarks.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 3 name: custom watermark 3
description: Set this image in magic-watermarks.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 4 name: custom watermark 4
description: Set this image in magic-watermarks.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 5 name: custom watermark 5
description: Set this image in magic-watermarks.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 6 name: custom watermark 6
description: Set this image in magic-watermarks.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 7 name: custom watermark 7
description: Set this image in magic-watermarks.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 8 name: custom watermark 8
description: Set this image in magic-watermarks.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 9 name: custom watermark 9
description: Set this image in magic-watermarks.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: text type: text
name: custom watermark 10 name: custom watermark 10
description: Set this image in magic-watermarks.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;" description: Set this image in magic-watermarks.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field: set field:
type: choice type: choice
name: blend with colors name: blend with colors

View File

@@ -209,16 +209,16 @@ choice images:
universes beyond ponies nightmare moon: /magic.mse-game/watermarks/ponies_waning_moon.png universes beyond ponies nightmare moon: /magic.mse-game/watermarks/ponies_waning_moon.png
universes beyond ponies luna: /magic.mse-game/watermarks/ponies_waxing_moon.png universes beyond ponies luna: /magic.mse-game/watermarks/ponies_waxing_moon.png
custom watermark one: script: watermark_blend(face:1, custom_watermark_1()) custom watermark one: script: watermark_blend(face:1, custom_watermark_link(1))
custom watermark two: script: watermark_blend(face:1, custom_watermark_2()) custom watermark two: script: watermark_blend(face:1, custom_watermark_link(2))
custom watermark three: script: watermark_blend(face:1, custom_watermark_3()) custom watermark three: script: watermark_blend(face:1, custom_watermark_link(3))
custom watermark four: script: watermark_blend(face:1, custom_watermark_4()) custom watermark four: script: watermark_blend(face:1, custom_watermark_link(4))
custom watermark five: script: watermark_blend(face:1, custom_watermark_5()) custom watermark five: script: watermark_blend(face:1, custom_watermark_link(5))
custom watermark six: script: watermark_blend(face:1, custom_watermark_6()) custom watermark six: script: watermark_blend(face:1, custom_watermark_link(6))
custom watermark seven: script: watermark_blend(face:1, custom_watermark_7()) custom watermark seven: script: watermark_blend(face:1, custom_watermark_link(7))
custom watermark eight: script: watermark_blend(face:1, custom_watermark_8()) custom watermark eight: script: watermark_blend(face:1, custom_watermark_link(8))
custom watermark nine: script: watermark_blend(face:1, custom_watermark_9()) custom watermark nine: script: watermark_blend(face:1, custom_watermark_link(9))
custom watermark ten: script: watermark_blend(face:1, custom_watermark_10()) custom watermark ten: script: watermark_blend(face:1, custom_watermark_link(10))
custom watermark card: script: watermark_blend(face:1, custom_watermark_a()) custom watermark card: script: watermark_blend(face:1, custom_card_watermark(face:1))
set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark")) set symbol: script: shadow_watermark_blend(symbol_variation(symbol: set.symbol, variation: "watermark"))

Binary file not shown.

BIN
mse.exe

Binary file not shown.