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:
@@ -32,7 +32,7 @@ include file: language
|
||||
include file: statistics_script
|
||||
include file: /magic-blends.mse-include/new-blends
|
||||
############################################################## Versioning
|
||||
version_date := {"2024-05-27 Mainframe 1.3.g Showcase Catchup: Action Check"}
|
||||
version_date := {"2024-09-23 Template Pack 3.0.0-h Showcase Catchup: Showcases"}
|
||||
version := version_date
|
||||
############################################################## Common filters
|
||||
############################################################## Utility
|
||||
@@ -245,6 +245,7 @@ has_two_names := {
|
||||
or contains(card.shape, match:"flip")
|
||||
or contains(card.shape, match:"split")
|
||||
}
|
||||
card_full_name_default := { if has_two_names() then card.name + " // " + card.name_2 else card.name }
|
||||
card_full_name := { if has_two_names() then card.name + " // " + card.name_2 else card.name }
|
||||
#### exportname
|
||||
exporter_name_filter := filter_text@(match:"!exporte?r?name [^\n!]+")
|
||||
@@ -2307,9 +2308,9 @@ custom_watermark_9 := { if set.custom_watermark_9 != "" then "/magic-mainframe-e
|
||||
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 := { false }
|
||||
invert_watermark2 := { false }
|
||||
invert_watermark3 := { false }
|
||||
invert_watermark_1 := { false }
|
||||
invert_watermark_2 := { false }
|
||||
invert_watermark_3 := { false }
|
||||
card_new_color := {
|
||||
if card.card_color == "white" then "w"
|
||||
else if card.card_color == "blue" then "u"
|
||||
@@ -2390,27 +2391,27 @@ watermark_scripts :=
|
||||
"transparent mana symbol double RW": { watermark_blend(colored: true, alpha: 1, dark_alpha: 1, wm_directory + "mana double/mana_rw_old.png") }
|
||||
"transparent mana symbol double GU": { watermark_blend(colored: true, alpha: 1, dark_alpha: 1, wm_directory + "mana double/mana_gu_old.png") }
|
||||
|
||||
"guild symbol The Azorius Senate (W/U)": { watermark_blend(wm_directory + "ravnica/azorius2.png") }
|
||||
"guild symbol House Dimir (U/B)": { watermark_blend(wm_directory + "ravnica/dimir2.png") }
|
||||
"guild symbol The Cult of Rakdos (B/R)": { watermark_blend(wm_directory + "ravnica/rakados2.png") }
|
||||
"guild symbol The Gruul Clans (R/G)": { watermark_blend(wm_directory + "ravnica/gruul2.png") }
|
||||
"guild symbol The Selesnya Conclave (G/W)": { watermark_blend(wm_directory + "ravnica/selesnya2.png") }
|
||||
"guild symbol The Orzhov Syndicate (W/B)": { watermark_blend(wm_directory + "ravnica/orzhov2.png") }
|
||||
"guild symbol The Izzet (U/R)": { watermark_blend(wm_directory + "ravnica/izzet2.png") }
|
||||
"guild symbol The Golgari (B/G)": { watermark_blend(wm_directory + "ravnica/golgari2.png") }
|
||||
"guild symbol The Boros Legion (R/W)": { watermark_blend(wm_directory + "ravnica/boros2.png") }
|
||||
"guild symbol The Simic Combine (G/U)": { watermark_blend(wm_directory + "ravnica/simic2.png") }
|
||||
"guild symbol The Azorius Senate (W/U)": { watermark_blend(wm_directory + "ravnica/watermark_azorius2.png") }
|
||||
"guild symbol House Dimir (U/B)": { watermark_blend(wm_directory + "ravnica/watermark_dimir2.png") }
|
||||
"guild symbol The Cult of Rakdos (B/R)": { watermark_blend(wm_directory + "ravnica/watermark_rakados2.png") }
|
||||
"guild symbol The Gruul Clans (R/G)": { watermark_blend(wm_directory + "ravnica/watermark_gruul2.png") }
|
||||
"guild symbol The Selesnya Conclave (G/W)": { watermark_blend(wm_directory + "ravnica/watermark_selesnya2.png") }
|
||||
"guild symbol The Orzhov Syndicate (W/B)": { watermark_blend(wm_directory + "ravnica/watermark_orzhov2.png") }
|
||||
"guild symbol The Izzet (U/R)": { watermark_blend(wm_directory + "ravnica/watermark_izzet2.png") }
|
||||
"guild symbol The Golgari (B/G)": { watermark_blend(wm_directory + "ravnica/watermark_golgari2.png") }
|
||||
"guild symbol The Boros Legion (R/W)": { watermark_blend(wm_directory + "ravnica/watermark_boros2.png") }
|
||||
"guild symbol The Simic Combine (G/U)": { watermark_blend(wm_directory + "ravnica/watermark_simic2.png") }
|
||||
|
||||
"guild symbol originals The Azorius Senate (W/U)": { watermark_blend(wm_directory + "ravnica/azorius.png") }
|
||||
"guild symbol originals House Dimir (U/B)": { watermark_blend(wm_directory + "ravnica/dimir.png") }
|
||||
"guild symbol originals The Cult of Rakdos (B/R)": { watermark_blend(wm_directory + "ravnica/rakados.png") }
|
||||
"guild symbol originals The Gruul Clans (R/G)": { watermark_blend(wm_directory + "ravnica/gruul.png") }
|
||||
"guild symbol originals The Selesnya Conclave (G/W)": { watermark_blend(wm_directory + "ravnica/selesnya.png") }
|
||||
"guild symbol originals The Orzhov Syndicate (W/B)": { watermark_blend(wm_directory + "ravnica/orzhov.png") }
|
||||
"guild symbol originals The Izzet (U/R)": { watermark_blend(wm_directory + "ravnica/izzet.png") }
|
||||
"guild symbol originals The Golgari (B/G)": { watermark_blend(wm_directory + "ravnica/golgari.png") }
|
||||
"guild symbol originals The Boros Legion (R/W)": { watermark_blend(wm_directory + "ravnica/boros.png") }
|
||||
"guild symbol originals The Simic Combine (G/U)": { watermark_blend(wm_directory + "ravnica/simic.png") }
|
||||
"guild symbol originals The Azorius Senate (W/U)": { watermark_blend(wm_directory + "ravnica/watermark_azorius.png") }
|
||||
"guild symbol originals House Dimir (U/B)": { watermark_blend(wm_directory + "ravnica/watermark_dimir.png") }
|
||||
"guild symbol originals The Cult of Rakdos (B/R)": { watermark_blend(wm_directory + "ravnica/watermark_rakados.png") }
|
||||
"guild symbol originals The Gruul Clans (R/G)": { watermark_blend(wm_directory + "ravnica/watermark_gruul.png") }
|
||||
"guild symbol originals The Selesnya Conclave (G/W)": { watermark_blend(wm_directory + "ravnica/watermark_selesnya.png") }
|
||||
"guild symbol originals The Orzhov Syndicate (W/B)": { watermark_blend(wm_directory + "ravnica/watermark_orzhov.png") }
|
||||
"guild symbol originals The Izzet (U/R)": { watermark_blend(wm_directory + "ravnica/watermark_izzet.png") }
|
||||
"guild symbol originals The Golgari (B/G)": { watermark_blend(wm_directory + "ravnica/watermark_golgari.png") }
|
||||
"guild symbol originals The Boros Legion (R/W)": { watermark_blend(wm_directory + "ravnica/watermark_boros.png") }
|
||||
"guild symbol originals The Simic Combine (G/U)": { watermark_blend(wm_directory + "ravnica/watermark_simic.png") }
|
||||
|
||||
"guild symbol ancients The Azorius Senate (W/U)": { watermark_blend(wm_directory + "frazier/azorius.png") }
|
||||
"guild symbol ancients House Dimir (U/B)": { watermark_blend(wm_directory + "frazier/dimir.png") }
|
||||
@@ -3353,7 +3354,7 @@ loyalty_abilities_count :=
|
||||
else counter := counter + 1
|
||||
styling_field := counter;
|
||||
)
|
||||
to_int(styling_field)
|
||||
to_int(styling_field) or else digital_map[styling_field]
|
||||
}@(active:false)
|
||||
|
||||
loyalty_ability_left :=
|
||||
@@ -3388,8 +3389,10 @@ loyalty_ability_bottom :=
|
||||
loyalty_stripe_separator_mask :=
|
||||
{
|
||||
mask := loyalty_textbox_mask()
|
||||
if mask == "/magic-modules.mse-include/loyalty/default_textbox_stamp_mask.png"
|
||||
or mask == "/magic-modules.mse-include/loyalty/default_textbox_mask.png" then
|
||||
mask_path := to_string(mask) or else ""
|
||||
is_default := mask_path == "/magic-modules.mse-include/loyalty/default_textbox_stamp_mask.png"
|
||||
or mask_path == "/magic-modules.mse-include/loyalty/default_textbox_mask.png"
|
||||
if is_default then
|
||||
(
|
||||
crop_safe(
|
||||
mask,
|
||||
@@ -3417,8 +3420,10 @@ loyalty_stripe_separator_mask :=
|
||||
loyalty_stripe_mask :=
|
||||
{
|
||||
mask := loyalty_textbox_mask()
|
||||
if mask == "/magic-modules.mse-include/loyalty/default_textbox_stamp_mask.png"
|
||||
or mask == "/magic-modules.mse-include/loyalty/default_textbox_mask.png" then
|
||||
mask_path := to_string(mask) or else ""
|
||||
is_default := mask_path == "/magic-modules.mse-include/loyalty/default_textbox_stamp_mask.png"
|
||||
or mask_path == "/magic-modules.mse-include/loyalty/default_textbox_mask.png"
|
||||
if is_default then
|
||||
(
|
||||
top := if input > 1 then loyalty_stripe_separator_top(2*input-2) + loyalty_stripe_separator_height() else a_top()
|
||||
height := (if loyalty_abilities_count(active:true) >= 2*input then loyalty_stripe_separator_top(2*input-1) else a_bottom()) - top
|
||||
@@ -3619,32 +3624,32 @@ rarity_right :=
|
||||
map := face_coordinates_map(face)
|
||||
user_offsets := styling.rarity_offsets or else ""
|
||||
if map.width > map.height then
|
||||
map.left + (483 * map.width/523) + offset + rarity_user_offset_left(user_offsets)
|
||||
else map.left + (344 * map.width/375) + offset + rarity_user_offset_left(user_offsets)
|
||||
map.left + (483 * map.width/523) + offset + rarity_user_offset_left(user_offsets) + rarity_user_offset_width(user_offsets)
|
||||
else map.left + (344 * map.width/375) + offset + rarity_user_offset_left(user_offsets) + rarity_user_offset_width(user_offsets)
|
||||
}
|
||||
rarity_top :=
|
||||
{
|
||||
map := face_coordinates_map(face)
|
||||
user_offsets := styling.rarity_offsets or else ""
|
||||
if map.width > map.height then
|
||||
map.top + 219 * map.height/375 + offset + rarity_user_offset_top(user_offsets)
|
||||
else map.top + 297 * map.height/523 + offset + rarity_user_offset_top(user_offsets)
|
||||
map.top + 219 * map.height/375 + offset + rarity_user_offset_top(user_offsets) - rarity_user_offset_height(user_offsets)
|
||||
else map.top + 297 * map.height/523 + offset + rarity_user_offset_top(user_offsets) - rarity_user_offset_height(user_offsets)
|
||||
}
|
||||
rarity_width :=
|
||||
{
|
||||
map := face_coordinates_map(face)
|
||||
user_offsets := styling.rarity_offsets or else ""
|
||||
if map.width > map.height then
|
||||
44 * map.width/523 + offset + rarity_user_offset_top(user_offsets) + rarity_user_offset_width(user_offsets)
|
||||
else 44 * map.width/375 + offset + rarity_user_offset_top(user_offsets) + rarity_user_offset_width(user_offsets)
|
||||
22 * map.width/523 + offset + 2*rarity_user_offset_width(user_offsets)
|
||||
else 22 * map.width/375 + offset + 2*rarity_user_offset_width(user_offsets)
|
||||
}
|
||||
rarity_height :=
|
||||
{
|
||||
map := face_coordinates_map(face)
|
||||
user_offsets := styling.rarity_offsets or else ""
|
||||
if map.width > map.height then
|
||||
22 * map.height/375 + offset + rarity_user_offset_top(user_offsets) + rarity_user_offset_height(user_offsets)
|
||||
else 22 * map.height/523 + offset + rarity_user_offset_top(user_offsets) + rarity_user_offset_height(user_offsets)
|
||||
22 * map.height/375 + offset + 2*rarity_user_offset_height(user_offsets)
|
||||
else 22 * map.height/523 + offset + 2*rarity_user_offset_height(user_offsets)
|
||||
}
|
||||
rarity_size :=
|
||||
{
|
||||
@@ -3696,7 +3701,7 @@ rarity_left_3 := { rarity_right_3() - rarity_real_width(face:typeline_face_3(
|
||||
rarity_user_offset_left := { split := split_comma(input); if length(split) > 0 and split.0 != "" and split.0 != "-" then clamp(split.0, maximum:500, minimum:-500) else 0 }
|
||||
rarity_user_offset_top := { split := split_comma(input); if length(split) > 1 and split.1 != "" and split.1 != "-" then clamp(split.1, maximum:500, minimum:-500) else 0 }
|
||||
rarity_user_offset_width := { split := split_comma(input); if length(split) > 2 and split.2 != "" and split.2 != "-" then clamp(split.2, maximum:500, minimum:-500) else 0 }
|
||||
rarity_user_offset_height := { split := split_comma(input); if length(split) > 3 and split.2 != "" and split.3 != "-" then clamp(split.3, maximum:500, minimum:-500) else 0 }
|
||||
rarity_user_offset_height := { split := split_comma(input); if length(split) > 2 and split.2 != "" and split.2 != "-" then clamp(split.2, maximum:500, minimum:-500) else 0 }
|
||||
|
||||
############################################################## Type offsets
|
||||
|
||||
@@ -4054,6 +4059,174 @@ pinline_inner_mask_3 := {""}
|
||||
pinline_mask_1 := {""}
|
||||
pinline_mask_2 := {""}
|
||||
pinline_mask_3 := {""}
|
||||
############################################################## Crown
|
||||
crowns_folder := {"/magic-modules.mse-include/crowns/375/"}
|
||||
module_legend_crown_template := { crowns_folder() + input + "crown.png" }
|
||||
module_borderless_crown_template := { crowns_folder() + "borderless/" + input + "crown.png" }
|
||||
module_nyx_crown_template := { crowns_folder() + "nyx/" + input + "crown.png" }
|
||||
module_companion_crown_template := { crowns_folder() + "companion/" + input + "crown.png" }
|
||||
module_brawl_crown_template := { crowns_folder() + "brawl/" + input + "crown.png" }
|
||||
module_custom_crown_template := {
|
||||
"/magic-mainframe-extras.mse-include/"
|
||||
+ styling.custom_crown_location
|
||||
+ input
|
||||
+ "crown.png"
|
||||
}
|
||||
|
||||
module_crown_template := {
|
||||
crown_shape := styling.legend_crown or else crown_type
|
||||
if override != "" then crown_shape := override
|
||||
case crown_shape of
|
||||
"borderless": module_borderless_crown_template(),
|
||||
"nyx": module_nyx_crown_template(),
|
||||
"companion": module_companion_crown_template(),
|
||||
"brawl": module_brawl_crown_template(),
|
||||
"custom": module_custom_crown_template(),
|
||||
else: module_legend_crown_template();
|
||||
}@(crown_type:"normal", override:"")
|
||||
|
||||
module_crown := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder()) }
|
||||
module_crown_2 := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder(), blend_type:"crown") }
|
||||
module_crown_3 := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder(), blend_type:"crown") }
|
||||
|
||||
crown_disabled_1 := { not is_legend(face:1) }
|
||||
crown_offset_left_1 := { 0 }
|
||||
crown_offset_top_1 := { 0 }
|
||||
crown_disabled_2 := { not is_legend(face:2) }
|
||||
crown_offset_left_2 := { 0 }
|
||||
crown_offset_top_2 := { 0 }
|
||||
crown_disabled_3 := { not is_legend(face:3) }
|
||||
crown_offset_left_3 := { 0 }
|
||||
crown_offset_top_3 := { 0 }
|
||||
############################################################## Overlay masks
|
||||
foil_mask_base_image := { "foil_mask.png" }
|
||||
foil_mask_added_sections := {
|
||||
output := []
|
||||
pt_field := if face == 1 then card.pt else card["pt_" + face]
|
||||
if pt_field != "" then output := output + ["foil_mask_pt.png"]
|
||||
output
|
||||
}@(face:1)
|
||||
foil_mask_removed_sections := {
|
||||
output := []
|
||||
sh := stamp_shape(field:face)
|
||||
if sh == "round" then output := output + ["foil_mask_round.png"]
|
||||
else if sh == "triangle" then output := output + ["foil_mask_triangle.png"]
|
||||
output
|
||||
}@(face:1)
|
||||
foil_mask_blended_image := {
|
||||
img := foil_mask_base_image(face)
|
||||
if img != "" then (
|
||||
added := foil_mask_added_sections(face)
|
||||
removed := foil_mask_removed_sections(face)
|
||||
len_add := length(added)
|
||||
len_rem := length(removed)
|
||||
if(len_add > 0) then (
|
||||
for i from 0 to len_add-1 do (
|
||||
img := masked_blend(dark:img, light:added[i], mask:added[i]);
|
||||
"dummy return"
|
||||
)
|
||||
)
|
||||
if(len_rem > 0) then (
|
||||
for i from 0 to len_rem-1 do (
|
||||
img := masked_blend(light:img, dark:removed[i], mask:removed[i]);
|
||||
"dummy return"
|
||||
)
|
||||
)
|
||||
)
|
||||
img
|
||||
}@(face:1)
|
||||
############################################################## module styling
|
||||
popout_coord := {
|
||||
split := split_comma(field)
|
||||
if length(split) > lim and split[input] != ""
|
||||
then to_number_lax(split[input])
|
||||
else 0
|
||||
}@(lim:3)
|
||||
popout_left := { popout_coord(0, field:styling.popout_art_coordinates or else "") }
|
||||
popout_top := { popout_coord(1, field:styling.popout_art_coordinates or else "") }
|
||||
popout_width := { popout_coord(2, field:styling.popout_art_coordinates or else "") }
|
||||
popout_height := { popout_coord(3, field:styling.popout_art_coordinates or else "") }
|
||||
popout_angle := { popout_coord(4, field:styling.popout_art_coordinates or else "", lim:4) }
|
||||
popout_left_2 := { popout_coord(0, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_top_2 := { popout_coord(1, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_width_2 := { popout_coord(2, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_height_2 := { popout_coord(3, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_angle_2 := { popout_coord(4, field:styling.popout_art_2_coordinates or else "", lim:4) }
|
||||
|
||||
module_chop := {
|
||||
split := split_comma(styling.chop_text_box)
|
||||
if length(styling.chop_text_box or else "") > input
|
||||
then to_number_lax(split[input])
|
||||
else 0
|
||||
}
|
||||
chop_top := { module_chop(0) }
|
||||
chop_bottom := { module_chop(1) }
|
||||
chop_right := { module_chop(2) }
|
||||
|
||||
############################################################## Overlay masks
|
||||
foil_mask_base_image := { "foil_mask.png" }
|
||||
foil_mask_added_sections := {
|
||||
output := []
|
||||
pt_field := if face == 1 then card.pt else card["pt_" + face]
|
||||
if pt_field != "" then output := output + ["foil_mask_pt.png"]
|
||||
output
|
||||
}@(face:1)
|
||||
foil_mask_removed_sections := {
|
||||
output := []
|
||||
sh := stamp_shape(field:face)
|
||||
if sh == "round" then output := output + ["foil_mask_round.png"]
|
||||
else if sh == "triangle" then output := output + ["foil_mask_triangle.png"]
|
||||
output
|
||||
}@(face:1)
|
||||
foil_mask_blended_image := {
|
||||
img := foil_mask_base_image(face)
|
||||
if img != "" then (
|
||||
added := foil_mask_added_sections(face)
|
||||
removed := foil_mask_removed_sections(face)
|
||||
len_add := length(added)
|
||||
len_rem := length(removed)
|
||||
if(len_add > 0) then (
|
||||
for i from 0 to len_add-1 do (
|
||||
img := masked_blend(dark:img, light:added[i], mask:added[i]);
|
||||
"dummy return"
|
||||
)
|
||||
)
|
||||
if(len_rem > 0) then (
|
||||
for i from 0 to len_rem-1 do (
|
||||
img := masked_blend(light:img, dark:removed[i], mask:removed[i]);
|
||||
"dummy return"
|
||||
)
|
||||
)
|
||||
)
|
||||
img
|
||||
}@(face:1)
|
||||
############################################################## module styling
|
||||
popout_coord := {
|
||||
split := split_comma(field)
|
||||
if length(split) > lim and split[input] != ""
|
||||
then to_number_lax(split[input])
|
||||
else 0
|
||||
}@(lim:3)
|
||||
popout_left := { popout_coord(0, field:styling.popout_art_coordinates or else "") }
|
||||
popout_top := { popout_coord(1, field:styling.popout_art_coordinates or else "") }
|
||||
popout_width := { popout_coord(2, field:styling.popout_art_coordinates or else "") }
|
||||
popout_height := { popout_coord(3, field:styling.popout_art_coordinates or else "") }
|
||||
popout_angle := { popout_coord(4, field:styling.popout_art_coordinates or else "", lim:4) }
|
||||
popout_left_2 := { popout_coord(0, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_top_2 := { popout_coord(1, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_width_2 := { popout_coord(2, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_height_2 := { popout_coord(3, field:styling.popout_art_2_coordinates or else "") }
|
||||
popout_angle_2 := { popout_coord(4, field:styling.popout_art_2_coordinates or else "", lim:4) }
|
||||
|
||||
module_chop := {
|
||||
split := split_comma(styling.chop_text_box)
|
||||
if length(styling.chop_text_box or else "") > input
|
||||
then to_number_lax(split[input])
|
||||
else 0
|
||||
}
|
||||
chop_top := { module_chop(0) }
|
||||
chop_bottom := { module_chop(1) }
|
||||
chop_right := { module_chop(2) }
|
||||
|
||||
############################################################## Custom corner symbols
|
||||
custom_symbol_1 := {
|
||||
@@ -4187,6 +4360,20 @@ swap_fonts_body_default := [
|
||||
vertical: {0},
|
||||
italic: {"MPlantin-Italic"}
|
||||
]
|
||||
swap_fonts_body2_default := [
|
||||
name: {"MPlantin"},
|
||||
size: {13},
|
||||
color: {"black"},
|
||||
vertical: {0},
|
||||
italic: {"MPlantin-Italic"}
|
||||
]
|
||||
swap_fonts_body3_default := [
|
||||
name: {"MPlantin"},
|
||||
size: {13},
|
||||
color: {"black"},
|
||||
vertical: {0},
|
||||
italic: {"MPlantin-Italic"}
|
||||
]
|
||||
swap_fonts_pt_default := [
|
||||
name: {"Beleren Bold"},
|
||||
size: {16},
|
||||
@@ -4194,7 +4381,20 @@ swap_fonts_pt_default := [
|
||||
vertical: {0},
|
||||
italic: {""}
|
||||
]
|
||||
swap_fonts_name_src := { styling.custom_name_font or else "" }
|
||||
swap_fonts_pt2_default := [
|
||||
name: {"Beleren Bold"},
|
||||
size: {16},
|
||||
color: {"black"},
|
||||
vertical: {0},
|
||||
italic: {""}
|
||||
]
|
||||
swap_fonts_pt3_default := [
|
||||
name: {"Beleren Bold"},
|
||||
size: {16},
|
||||
color: {"black"},
|
||||
vertical: {0},
|
||||
italic: {""}
|
||||
]
|
||||
swap_fonts_name_src := { styling.custom_name_font or else "" }
|
||||
swap_fonts_name2_src := { styling.custom_name_2_font or else "" }
|
||||
swap_fonts_name3_src := { styling.custom_name_3_font or else "" }
|
||||
@@ -4202,7 +4402,11 @@ swap_fonts_type_src := { styling.custom_type_font or else "" }
|
||||
swap_fonts_type2_src := { styling.custom_type_2_font or else "" }
|
||||
swap_fonts_type3_src := { styling.custom_type_3_font or else "" }
|
||||
swap_fonts_body_src := { styling.custom_body_font or else "" }
|
||||
swap_fonts_body2_src := { styling.custom_body_2_font or else "" }
|
||||
swap_fonts_body3_src := { styling.custom_body_3_font or else "" }
|
||||
swap_fonts_pt_src := { styling.custom_pt_font or else "" }
|
||||
swap_fonts_pt2_src := { styling.custom_pt_2_font or else "" }
|
||||
swap_fonts_pt3_src := { styling.custom_pt_3_font or else "" }
|
||||
#### specific swap functions
|
||||
name_font := {
|
||||
swap_font_name(
|
||||
@@ -4423,63 +4627,63 @@ body_font_italic := {
|
||||
|
||||
body2_font := {
|
||||
swap_font_name(
|
||||
src: swap_fonts_body_src(),
|
||||
font_name: swap_fonts_body_default.name()
|
||||
src: swap_fonts_body2_src(),
|
||||
font_name: swap_fonts_body2_default.name()
|
||||
)
|
||||
}
|
||||
body2_font_size := {
|
||||
swap_font_size(
|
||||
src: swap_fonts_body_src(),
|
||||
font_size: swap_fonts_body_default.size()
|
||||
src: swap_fonts_body2_src(),
|
||||
font_size: swap_fonts_body2_default.size()
|
||||
)
|
||||
}
|
||||
body2_font_color := {
|
||||
swap_font_color(
|
||||
src: swap_fonts_body_src(),
|
||||
font_color: swap_fonts_body_default.color()
|
||||
src: swap_fonts_body2_src(),
|
||||
font_color: swap_fonts_body2_default.color()
|
||||
)
|
||||
}
|
||||
body2_font_vertical := {
|
||||
swap_font_vertical(
|
||||
src: swap_fonts_body_src(),
|
||||
vertical: swap_fonts_body_default.vertical()
|
||||
src: swap_fonts_body2_src(),
|
||||
vertical: swap_fonts_body2_default.vertical()
|
||||
)
|
||||
}
|
||||
body2_font_italic := {
|
||||
swap_font_italic(
|
||||
src: swap_fonts_body_src(),
|
||||
font_name: swap_fonts_body_default.italic()
|
||||
src: swap_fonts_body2_src(),
|
||||
font_name: swap_fonts_body2_default.italic()
|
||||
)
|
||||
}
|
||||
|
||||
body3_font := {
|
||||
swap_font_name(
|
||||
src: swap_fonts_body_src(),
|
||||
font_name: swap_fonts_body_default.name()
|
||||
src: swap_fonts_body3_src(),
|
||||
font_name: swap_fonts_body3_default.name()
|
||||
)
|
||||
}
|
||||
body3_font_size := {
|
||||
swap_font_size(
|
||||
src: swap_fonts_body_src(),
|
||||
font_size: swap_fonts_body_default.size()
|
||||
src: swap_fonts_body3_src(),
|
||||
font_size: swap_fonts_body3_default.size()
|
||||
)
|
||||
}
|
||||
body3_font_color := {
|
||||
swap_font_color(
|
||||
src: swap_fonts_body_src(),
|
||||
font_color: swap_fonts_body_default.color()
|
||||
src: swap_fonts_body3_src(),
|
||||
font_color: swap_fonts_body3_default.color()
|
||||
)
|
||||
}
|
||||
body3_font_vertical := {
|
||||
swap_font_vertical(
|
||||
src: swap_fonts_body_src(),
|
||||
vertical: swap_fonts_body_default.vertical()
|
||||
src: swap_fonts_body3_src(),
|
||||
vertical: swap_fonts_body3_default.vertical()
|
||||
)
|
||||
}
|
||||
body3_font_italic := {
|
||||
swap_font_italic(
|
||||
src: swap_fonts_body_src(),
|
||||
font_name: swap_fonts_body_default.italic()
|
||||
src: swap_fonts_body3_src(),
|
||||
font_name: swap_fonts_body3_default.italic()
|
||||
)
|
||||
}
|
||||
|
||||
@@ -4516,62 +4720,62 @@ pt_font_italic := {
|
||||
|
||||
pt2_font := {
|
||||
swap_font_name(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt2_src(),
|
||||
font_name: swap_fonts_pt2_default.name()
|
||||
)
|
||||
}
|
||||
pt2_font_size := {
|
||||
swap_font_size(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt2_src(),
|
||||
font_size: swap_fonts_pt2_default.size()
|
||||
)
|
||||
}
|
||||
pt2_font_color := {
|
||||
swap_font_color(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt2_src(),
|
||||
font_color: swap_fonts_pt2_default.color()
|
||||
)
|
||||
}
|
||||
pt2_font_vertical := {
|
||||
swap_font_vertical(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt2_src(),
|
||||
vertical: swap_fonts_pt2_default.vertical()
|
||||
)
|
||||
}
|
||||
pt2_font_italic := {
|
||||
swap_font_italic(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt2_src(),
|
||||
font_name: swap_fonts_pt2_default.italic()
|
||||
)
|
||||
}
|
||||
|
||||
pt3_font := {
|
||||
swap_font_name(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt3_src(),
|
||||
font_name: swap_fonts_pt3_default.name()
|
||||
)
|
||||
}
|
||||
pt3_font_size := {
|
||||
swap_font_size(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt3_src(),
|
||||
font_size: swap_fonts_pt3_default.size()
|
||||
)
|
||||
}
|
||||
pt3_font_color := {
|
||||
swap_font_color(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt3_src(),
|
||||
font_color: swap_fonts_pt3_default.color()
|
||||
)
|
||||
}
|
||||
pt3_font_vertical := {
|
||||
swap_font_vertical(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt3_src(),
|
||||
vertical: swap_fonts_pt3_default.vertical()
|
||||
)
|
||||
}
|
||||
pt3_font_italic := {
|
||||
swap_font_italic(
|
||||
src: swap_fonts_pt_src(),
|
||||
src: swap_fonts_pt3_src(),
|
||||
font_name: swap_fonts_pt3_default.italic()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user