Gen modules integration (#54)
genevensis frames magic-modules integration
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
@@ -15,6 +15,9 @@ depends on:
|
||||
depends on:
|
||||
package: magic-watermarks.mse-include
|
||||
version: 2001-01-01
|
||||
depends on:
|
||||
package: magic-modules.mse-include
|
||||
version: 2024-05-20
|
||||
depends on:
|
||||
package: magic-mana-large.mse-symbol-font
|
||||
version: 2001-01-01
|
||||
@@ -39,6 +42,9 @@ card dpi: 300
|
||||
############################################################## Extra scripts
|
||||
init script:
|
||||
card_shape := { "counter" }
|
||||
|
||||
corners_default := { "diagonal" }
|
||||
|
||||
faces_coordinates := {
|
||||
[
|
||||
[
|
||||
@@ -49,11 +55,16 @@ init script:
|
||||
]
|
||||
]
|
||||
}
|
||||
guild_mana := { styling.use_guild_mana_symbols }
|
||||
|
||||
ancestral_mana := { false }
|
||||
|
||||
mana_t := { "new" }
|
||||
swap_fonts_name_src := { styling.font }
|
||||
swap_fonts_name_default :=
|
||||
[
|
||||
name: {"Beleren Bold"},
|
||||
size: {60},
|
||||
color: {"black"},
|
||||
vertical: {0},
|
||||
italic: {""}
|
||||
]
|
||||
|
||||
mana_sort := sort_text@(order: "\\?XYZI[0123456789]VLHFDSCAIEP(WUBRG)")
|
||||
mana_sort_wedge := sort_text@(order: "\\?XYZI[0123456789]VLHFDSCAIEP(WBGUR)")
|
||||
@@ -65,12 +76,6 @@ init script:
|
||||
replace: {sort_text(order:"in_place(P(WUBRG))")}
|
||||
)
|
||||
|
||||
shrink_text :=
|
||||
{
|
||||
if styling.shrink_text == "-" then 0
|
||||
else max(-80, min(59, to_int(styling.shrink_text))) or else 0
|
||||
}
|
||||
|
||||
alignment_text :=
|
||||
{
|
||||
if styling.text_alignment == "left" then "left middle shrink-overflow"
|
||||
@@ -218,6 +223,31 @@ init script:
|
||||
name := symbol_map[styling.symbol] or else ""
|
||||
image(name, side: "left")
|
||||
}
|
||||
|
||||
corners_mask :=
|
||||
{
|
||||
shape := card.corners
|
||||
shape := if shape == "rounded and antialiased" then "rounded_antialiased"
|
||||
else if shape == "rounded" then "rounded"
|
||||
else "diagonal"
|
||||
top_left := crop("corner_mask_" + shape + ".png", height:face_coordinates_map(1).height, width:face_coordinates_map(1).width, offset_x:0, offset_y:0)
|
||||
top_right := flip_horizontal(top_left)
|
||||
bottom_left := flip_vertical(top_left)
|
||||
bottom_right := flip_vertical(top_right)
|
||||
combine_blend(
|
||||
combine: "add",
|
||||
image1: top_left,
|
||||
image2: combine_blend(
|
||||
combine: "add",
|
||||
image1: top_right,
|
||||
image2: combine_blend(
|
||||
combine: "add",
|
||||
image1: bottom_left,
|
||||
image2: bottom_right
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
############################################################## Extra style options
|
||||
styling field:
|
||||
@@ -237,14 +267,6 @@ styling field:
|
||||
# localized description:
|
||||
# fr: Augmenter la hauteur en ajoutant une ligne de texte.
|
||||
initial: no
|
||||
styling field:
|
||||
type: text
|
||||
name: shrink text
|
||||
description: Reduces the text's font size by this many points.
|
||||
# localized caption:
|
||||
# fr: Rapetisser le texte
|
||||
# localized description:
|
||||
# fr: Réduire la taille de la police du texte de N points.
|
||||
styling field:
|
||||
type: choice
|
||||
name: text alignment
|
||||
@@ -376,6 +398,9 @@ styling style:
|
||||
no: /magic-mana-genevensis-large.mse-symbol-font/mana_bi_wu.png
|
||||
|
||||
############################################################## Card fields
|
||||
|
||||
include file: /magic-modules.mse-include/corners/card_fields
|
||||
|
||||
card style:
|
||||
############################# Background
|
||||
card color:
|
||||
@@ -390,32 +415,34 @@ card style:
|
||||
############################# Text box
|
||||
name:
|
||||
left: { if has_symbol() then 115 else 64 }
|
||||
top: 33
|
||||
top: { 33 + name_font_vertical() }
|
||||
width: { ( if has_symbol() then 241 else 292 ) - ( if styling.increase_height then -100 else 0 ) - ( -increased_width() ) }
|
||||
height: { if styling.increase_height then 94 else 86 }
|
||||
alignment: { alignment_text() }
|
||||
z index: 20
|
||||
font:
|
||||
name: { if styling.font == "" then "Beleren Bold" else styling.font }
|
||||
size: { 60 - shrink_text() }
|
||||
color: black
|
||||
name: { name_font() }
|
||||
italic name: { name_font_italic() }
|
||||
size: { name_font_size() }
|
||||
color: { name_font_color() }
|
||||
symbol font:
|
||||
name: { styling.mana_symbols }
|
||||
size: { 60 - shrink_text() }
|
||||
size: { name_font_size() }
|
||||
name 2:
|
||||
left: { if has_symbol() then 115 else 64 }
|
||||
top: 127
|
||||
top: { 127 + name_font_vertical() }
|
||||
width: { ( if has_symbol() then 241 else 292 ) - ( if styling.increase_height then -100 else 0 ) - ( -increased_width() ) }
|
||||
height: { if styling.increase_height then 94 else 0 }
|
||||
alignment: { alignment_text() }
|
||||
z index: 20
|
||||
font:
|
||||
name: { if styling.font == "" then "Beleren Bold" else styling.font }
|
||||
size: { 60 - shrink_text() }
|
||||
color: black
|
||||
name: { name_font() }
|
||||
italic name: { name_font_italic() }
|
||||
size: { name_font_size() }
|
||||
color: { name_font_color() }
|
||||
symbol font:
|
||||
name: { styling.mana_symbols }
|
||||
size: { 60 - shrink_text() }
|
||||
size: { name_font_size() }
|
||||
|
||||
############################################################## Extra card fields
|
||||
extra card field:
|
||||
|
||||
Reference in New Issue
Block a user