[274/274] magic-modules rollout (#51)

Add Magic-Modules support to all frames
This commit is contained in:
cajun
2024-09-10 22:21:23 -05:00
committed by GitHub
parent 65bfc8fcd6
commit 6d617985ce
5491 changed files with 37088 additions and 66467 deletions

View File

@@ -87,6 +87,16 @@ styling field:
name: black names
description: Uses a black font for the card name.
initial: no
styling field:
type: boolean
name: hide name
description: Hide the name and name background.
initial: no
styling field:
type: boolean
name: show type and text
description: Shows the text and typeline for editing
initial: no
styling field:
type: boolean
name: remove from autocount
@@ -179,7 +189,7 @@ card style:
popup style: in place
image: { card_background() }
mask: { if is_stamped() then "frame_mask_rare.png" else "frame_mask.png" }
mask: { "frame_mask" + (if styling.name_background then "" else "_no_top") + ".png" }
mask: { "frame_mask" + (if styling.name_background and not styling.hide_name then "" else "_no_top") + ".png" }
############################# Name line
name:
left: 60
@@ -192,7 +202,7 @@ card style:
font:
name: Beleren Bold
size: 15
color: { if styling.black_names then "black" else "white" }
color: { if styling.hide_name then rgba(0,0,0,0) else if styling.black_names then "black" else "white" }
############################# Image
image:
left: 0
@@ -202,6 +212,53 @@ card style:
z index: 100
default: {default_image(card.card_color)}
mask: image_mask.png
############################ Text/type, normally hidden
type:
left: { if has_identity() then "52" else "32" }
top: 296
width: { if styling.show_type_and_text then 300 else 0 }
height: 20
alignment: top shrink-overflow
z index: 900
padding top: 2
font:
name: Beleren Bold
size: 13
color: white
separator color: red
############################# Text box
text:
left: 29
top: 327
width: { if styling.show_type_and_text then 314 else 0 }
height: 154
font:
name: MPlantin
italic name: MPlantin-Italic
size: 14
scale down to: 6
color: white
symbol font:
name: { styling.text_box_mana_symbols }
size: 14
alignment:
script:
if (styling.center_text == "short text only" and
not contains(match:"\n", card.rule_text) and
card.flavor_text == "<i-flavor></i-flavor>" and
card_style.text.content_lines <= 2) or
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 900
padding left: 6
padding right: 4
line height hard: 1.2
line height line: 1.5
line height soft: 0.9
line height hard max: 1.3
line height line max: 1.6
############################################################## Extra card fields
extra card field:
type: choice
@@ -239,4 +296,5 @@ extra card style:
height: 35
render style: image
z index: 840
image: {if stamp_shape() == "triangle" then card_stamp_triangle() else card_stamp() }
image: {if stamp_shape() == "triangle" then card_stamp_triangle() else card_stamp() }
visible: { is_stamped() }