MSE 2.5.2 and Showcase Catchup (#18)

* Updated to MSE 2.5.2
* Added Assassin's Creed Memory Corridor
* Added Bloomburrow Borderless Anime
* Added Bloomburrow Woodland
* Added Compleated Planeswalkers
* Added Duskmourn Paranormal
* Added Kamigawa Neon
* Added Kamigawa Ninja
* Added Kamigawa Samurai
* Added Innistrad Fang
* Added Theros Constellation
* Added Capenna Art Deco
* Added Capenna Golden Age
* Added Capenna Skyscraper
* Added Doctor Who TARDIS
* Added Dominaria Stained Glass
* Added Eldraine Enchanting Tales
* Added Fallout PipBoy
* Added Ikoria Crystal
* Added Innistrad Double Feature
* Added Innistrad Equinox
* Added Ixalan Treasures
* Added Ixalan Legends
* Added Ixalan Caverns
* Added Lord of the Rings Ring
* Added Lord of the Rings Scroll
* Added Ravnica City Mural
* Added Ravnica Dossier
* Added Tarkir Dragon Wing
* Added Thunder Junction Breaking News
* Added Thunder Junction Vault
* Added Thunder Junction Wanted Poster
* Added Unfinity Of Tomorrow
* Added Unfinity Attractions
* Added Secret Lair Baseball
* Added revamped option to Amonkhet Invocations
* Added UB stamp compatibility to old showcase frames
* Added foils and popouts modules
* Add foil_mask blending system
* Fixes #57
This commit is contained in:
GenevensiS
2024-09-23 21:11:14 +02:00
committed by GitHub
parent 8fd810b1d3
commit 206de32133
3117 changed files with 61236 additions and 27952 deletions

View File

@@ -1095,49 +1095,52 @@ spotlight_watermark_blend := {
if type_name(input) == type_name("string") and contains(input, match:".png,") then (
array := split_text(input+",,", match:",")
input := array.0
l := min(to_number(array.1),500)
h := min(to_number(array.2),500)
)
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"
wmdir := watermark_include + "/spotlight/"
if (h != 500 or l != 500) then (
wmdir := wmdir + "1024/"
custom_img := to_image(input)
l := width_of(custom_img)
h := height_of(custom_img)
wm := ""
if l > 1024 or h > 1024 then (
trace("Maximum custom watermark dimensions are 1024x1024.")
)else(
wmdir := watermark_include + "/spotlight/"
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)
)else(
c1 := wmdir + c1
c2 := wmdir + c2
mask := input
wm := set_alpha(
alpha: alpha
input:
linear_blend(
image1:
masked_blend(
light: custom_img
dark: c1
mask: mask
)
image2:
masked_blend(
light: custom_img
dark: c2
mask: mask
)
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
)
)
mask := input
set_alpha(
alpha: alpha
input:
linear_blend(
image1:
masked_blend(
light: input
dark: c1
mask: mask
)
image2:
masked_blend(
light: input
dark: c2
mask: mask
)
x1: 0.4, y1: 0
x2: 0.6, y2: 0
)
)
}@(h:500,l:500,face:1,alpha:0.2)
wm
}@(face:1,alpha:0.2)
shadow_watermark_blend := {
set_combine(
combine:"shadow",
set_alpha(
alpha: 0.5,
alpha: alpha,
drop_shadow(
offset_x: -0.01,
offset_y: 0.03,
@@ -1151,13 +1154,13 @@ shadow_watermark_blend := {
)
)
)
}
}@(alpha:0.5)
glow_watermark_blend := {
set_combine(
combine:"glow",
set_alpha(
alpha: 0.3,
alpha: alpha,
drop_shadow(
offset_x: -0.01,
offset_y: 0.03,
@@ -1171,13 +1174,18 @@ glow_watermark_blend := {
)
)
)
}
}@(alpha:0.3)
watermark_blend :=
{
dark_textbox := (face == 1 and invert_watermark())
or (face == 2 and invert_watermark2())
or (face == 3 and invert_watermark3())
shadow_alpha := 0.5
glow_alpha := 0.3
backup := if custom then set.blend_with_colors else set.use_blended_watermarks
option := styling.watermark_render or else backup
dark_textbox := (face == 1 and invert_watermark_1())
or (face == 2 and invert_watermark_2())
or (face == 3 and invert_watermark_3())
if option == "inverted" then dark_textbox := not dark_textbox
invert_base_image := false
if dark_textbox then
(
@@ -1185,12 +1193,19 @@ watermark_blend :=
spotlight_alpha := dark_spotlight_alpha
invert_base_image := true
)
backup := if custom then set.blend_with_colors else set.use_blended_watermarks
option := styling.watermark_render or else backup
user_alpha := styling.watermark_opacity_percentage or else ""
user_alpha := if user_alpha != "" then get_alpha_percentage(user_alpha, default: -1.0) else -1.0
if user_alpha >= 0.0 then
(
alpha := user_alpha
spotlight_alpha := user_alpha
shadow_alpha := user_alpha
glow_alpha := user_alpha
)
if colored then set_alpha(alpha: alpha, input)
else if option == "yes" or option == "blend with colors" then spotlight_watermark_blend(h:h, l:l, face:face, alpha: spotlight_alpha, input)
else if option == "shadow" then shadow_watermark_blend(input)
else if option == "glow" then glow_watermark_blend(input)
else if option == "shadow" then shadow_watermark_blend(input, alpha: shadow_alpha)
else if option == "glow" then glow_watermark_blend(input, alpha: glow_alpha)
else if invert_base_image then set_alpha(alpha: alpha, invert_image(input))
else set_alpha(alpha: alpha, input)
}@(h:500,l:500,colored:false,face:1,alpha:0.25,spotlight_alpha:0.75,dark_alpha:0.25,dark_spotlight_alpha:0.35,custom:false)