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.
BIN
data/magic-modules.mse-include/symbols/aetherprint.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
data/magic-modules.mse-include/symbols/artifact.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
data/magic-modules.mse-include/symbols/back triangle.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
data/magic-modules.mse-include/symbols/battle.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
data/magic-modules.mse-include/symbols/blank.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
12
data/magic-modules.mse-include/symbols/card_fields
Normal 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
|
||||
13
data/magic-modules.mse-include/symbols/card_fields_dfc
Normal 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
|
||||
13
data/magic-modules.mse-include/symbols/card_fields_tfc
Normal 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
|
||||
87
data/magic-modules.mse-include/symbols/choices
Normal 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
|
||||
BIN
data/magic-modules.mse-include/symbols/closed fan.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
data/magic-modules.mse-include/symbols/comedy.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
data/magic-modules.mse-include/symbols/compass.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
data/magic-modules.mse-include/symbols/conspiracy.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
data/magic-modules.mse-include/symbols/creature.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
data/magic-modules.mse-include/symbols/day.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
data/magic-modules.mse-include/symbols/dungeon.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
data/magic-modules.mse-include/symbols/eldrazi.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
data/magic-modules.mse-include/symbols/enchantment.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
data/magic-modules.mse-include/symbols/front triangle.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
data/magic-modules.mse-include/symbols/hero.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
data/magic-modules.mse-include/symbols/instant.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
data/magic-modules.mse-include/symbols/land.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
data/magic-modules.mse-include/symbols/lesson.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
data/magic-modules.mse-include/symbols/meld.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/artifact.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/black.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/blue.png
Normal file
|
After Width: | Height: | Size: 99 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/colorless.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/green.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/multicolor.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/red.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
data/magic-modules.mse-include/symbols/modalback/white.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 93 KiB |
BIN
data/magic-modules.mse-include/symbols/modalbackflipped/blue.png
Normal file
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 109 KiB |
BIN
data/magic-modules.mse-include/symbols/modalbackflipped/red.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 112 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/artifact.png
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/black.png
Normal file
|
After Width: | Height: | Size: 119 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/blue.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/colorless.png
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/green.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/multicolor.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/red.png
Normal file
|
After Width: | Height: | Size: 121 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfront/white.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 116 KiB |
BIN
data/magic-modules.mse-include/symbols/modalfrontflipped/red.png
Normal file
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 101 KiB |
BIN
data/magic-modules.mse-include/symbols/moon.png
Normal file
|
After Width: | Height: | Size: 229 KiB |
BIN
data/magic-modules.mse-include/symbols/multitype.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
data/magic-modules.mse-include/symbols/night.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
data/magic-modules.mse-include/symbols/open fan.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
data/magic-modules.mse-include/symbols/phenomenon.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
data/magic-modules.mse-include/symbols/plane.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
data/magic-modules.mse-include/symbols/planeswalker.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
60
data/magic-modules.mse-include/symbols/readme.txt
Normal 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 }
|
||||
BIN
data/magic-modules.mse-include/symbols/scheme.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
data/magic-modules.mse-include/symbols/sorcery.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/artifact.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/black.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/blue.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/colorless.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/green.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/multicolor.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/red.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
data/magic-modules.mse-include/symbols/sparker/white.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
data/magic-modules.mse-include/symbols/specialized.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
data/magic-modules.mse-include/symbols/structure.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
data/magic-modules.mse-include/symbols/tragedy.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
data/magic-modules.mse-include/symbols/vanguard.png
Normal file
|
After Width: | Height: | Size: 38 KiB |