card_fields rewrite and magic-modules.mse-include (#21)

Overhauls the card_fields file to allow for template designers more freedom in manipulating data.

Adds magic-modules.mse-include, a large scale include file for building templates in a standardized way. Applying this to existing frames will be coming in future updates.
This commit is contained in:
GenevensiS
2024-05-25 00:57:47 +02:00
committed by GitHub
parent 44b059e2f7
commit fd4b8e4c89
1195 changed files with 13325 additions and 3633 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,12 @@
card style:
transformation:
left: { transform_symbol_left_1() + nameline_offset_left_1() }
top: { transform_symbol_top_1() + nameline_offset_top_1() }
width: { transform_symbol_width_1() + nameline_offset_height_1() }
height: { if transform_symbol_disabled_1() then 0 else transform_symbol_height_1() + nameline_offset_height_1() }
visible: { not transform_symbol_disabled_1() }
popup style: in place
include file: /magic.mse-game/symbols/menu_choice_images
render style: image
image: { transform_symbol_image(face: 1) }
z index: 620

View File

@@ -0,0 +1,13 @@
include file: /magic-modules.mse-include/symbols/card_fields
card style:
transformation 2:
left: { transform_symbol_left_2() + nameline_offset_left_2() }
top: { transform_symbol_top_2() + nameline_offset_top_2() }
width: { transform_symbol_width_2() + nameline_offset_height_2() }
height: { if transform_symbol_disabled_2() then 0 else transform_symbol_height_2() + nameline_offset_height_2() }
visible: { not transform_symbol_disabled_2() }
popup style: in place
include file: /magic.mse-game/symbols/menu_choice_images
render style: image
image: { transform_symbol_image(face: 2) }
z index: 620

View File

@@ -0,0 +1,13 @@
include file: /magic-modules.mse-include/symbols/card_fields_dfc
card style:
transformation 3:
left: { transform_symbol_left_3() + nameline_offset_left_3() }
top: { transform_symbol_top_3() + nameline_offset_top_3() }
width: { transform_symbol_width_3() + nameline_offset_height_3() }
height: { if transform_symbol_disabled_3() then 0 else transform_symbol_height_3() + nameline_offset_height_3() }
visible: { not transform_symbol_disabled_3() }
popup style: in place
include file: /magic.mse-game/symbols/menu_choice_images
render style: image
image: { transform_symbol_image(face: 3) }
z index: 620

View File

@@ -0,0 +1,87 @@
choice: front triangle
choice: day
choice: moon
choice: closed fan
choice: meld
choice: sparker
choice:
name: sparker (colored)
choice: default
choice: white
choice: blue
choice: black
choice: red
choice: green
choice: multicolor
choice: colorless
choice: artifact
line below: true
choice: back triangle
choice: night
choice: eldrazi
choice: compass
choice: open fan
choice: specialized
choice:
name: aetherprint
line below: true
choice: none
choice: lesson
choice:
name: custom symbol
choice: one
choice: two
choice: three
choice: four
choice:
name: extra
choice: comedy
choice: tragedy
line below: true
choice:
name: modal front
choice: default
choice: white
choice: blue
choice: black
choice: red
choice: green
choice: multicolor
choice: colorless
choice: artifact
choice:
name: modal back
line below: true
choice: default
choice: white
choice: blue
choice: black
choice: red
choice: green
choice: multicolor
choice: colorless
choice: artifact
choice: multitype
choice: artifact
choice: battle
choice: creature
choice: enchantment
choice: fortress
choice: instant
choice: land
choice: planeswalker
choice: sorcery
choice:
name: non standard
line below: true
choice: conspiracy
choice: dungeon
choice: emblem
choice: hero
choice: phenomenon
choice: plane
choice: scheme
choice: vanguard
line below: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1,60 @@
#### Consider using the Namelines module instead of this one
#### To use this include in a template, add the following in the template headers:
depends on:
package: magic-modules.mse-include
version: 2024-05-20
#### Also add this, unindented, before the card style section:
include file: /magic-modules.mse-include/symbols/card_fields
#### For DFC or TFC templates, instead override the faces_coordinates function, and use:
include file: /magic-modules.mse-include/symbols/card_fields_dfc
include file: /magic-modules.mse-include/symbols/card_fields_tfc
#### Default Field Placement (@375x523, w=1 h=1)
transformation:
left: 13w, 319 mirrored
top: 19h
width: 43w
height: 43h
#### Customization
#### The symbols default to "none", defaults can be changed with
transform_symbol_default :=
{
if margin_code == "transform1" then "front triangle"
else if margin_code == "transform2" then "back triangle"
else "eldrazi"
}
#### Optionally, you can adjust global alignment by defining the following functions in the init script,
#### which must return an int corresponding to the number of pixels you want to shift things by:
#### To shift everything up/down:
transform_symbol_offset_top_1 := { 0 }
#### To shift everything left/right:
transform_symbol_offset_left_1 := { 0 }
#### To increase/decrease the size:
transform_symbol_offset_width_1 := { 0 }
transform_symbol_offset_height_1 := { 0 }
#### To move the symbol to the right of the card:
transform_symbol_mirrored_1 := { true }
#### For the other faces on DFCs use:
transform_symbol_offset_top_2 := { 0 }
transform_symbol_offset_left_2 := { 0 }
transform_symbol_offset_width_2 := { 0 }
transform_symbol_offset_height_2 := { 0 }
transform_symbol_offset_mirrored_2 := { 0 }
transform_symbol_offset_top_3 := { 0 }
transform_symbol_offset_left_3 := { 0 }
transform_symbol_offset_width_3 := { 0 }
transform_symbol_offset_height_3 := { 0 }
transform_symbol_offset_mirrored_3 := { 0 }
#### You can disable the symbols on some of the faces,
#### by adding the following functions in the init script:
transform_symbol_disabled_1 := { true }
transform_symbol_disabled_2 := { true }
transform_symbol_disabled_3 := { true }

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB