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:
4
data/magic-modules.mse-include/namelines/card_fields
Normal file
4
data/magic-modules.mse-include/namelines/card_fields
Normal file
@@ -0,0 +1,4 @@
|
||||
include file: /magic-modules.mse-include/symbols/card_fields
|
||||
include file: /magic-modules.mse-include/card-symbols/card_fields
|
||||
include file: /magic-modules.mse-include/casting-costs/card_fields
|
||||
include file: /magic-modules.mse-include/names/card_fields
|
||||
4
data/magic-modules.mse-include/namelines/card_fields_dfc
Normal file
4
data/magic-modules.mse-include/namelines/card_fields_dfc
Normal file
@@ -0,0 +1,4 @@
|
||||
include file: /magic-modules.mse-include/symbols/card_fields_dfc
|
||||
include file: /magic-modules.mse-include/card-symbols/card_fields_dfc
|
||||
include file: /magic-modules.mse-include/casting-costs/card_fields_dfc
|
||||
include file: /magic-modules.mse-include/names/card_fields_dfc
|
||||
4
data/magic-modules.mse-include/namelines/card_fields_tfc
Normal file
4
data/magic-modules.mse-include/namelines/card_fields_tfc
Normal file
@@ -0,0 +1,4 @@
|
||||
include file: /magic-modules.mse-include/symbols/card_fields_tfc
|
||||
include file: /magic-modules.mse-include/card-symbols/card_fields_tfc
|
||||
include file: /magic-modules.mse-include/casting-costs/card_fields_tfc
|
||||
include file: /magic-modules.mse-include/names/card_fields_tfc
|
||||
72
data/magic-modules.mse-include/namelines/readme.txt
Normal file
72
data/magic-modules.mse-include/namelines/readme.txt
Normal file
@@ -0,0 +1,72 @@
|
||||
#### 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/namelines/card_fields
|
||||
#### For DFC or TFC templates, instead override the faces_coordinates function, and use:
|
||||
include file: /magic-modules.mse-include/namelines/card_fields_dfc
|
||||
include file: /magic-modules.mse-include/namelines/card_fields_tfc
|
||||
|
||||
#### Customization
|
||||
#### The transform 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 define which face of the card the nameline should snap to,
|
||||
#### by defining the following function in the init script:
|
||||
nameline_face_1 := { 1 }
|
||||
|
||||
#### You can also adjust global alignment by defining the following functions, again in the init script,
|
||||
#### which must return an int corresponding to the number of pixels you want to shift the nameline by:
|
||||
|
||||
#### To shift the entire nameline up/down (name + casting cost + transformation symbol):
|
||||
nameline_offset_top_1 := { 0 }
|
||||
|
||||
#### To shift the entire nameline left/right:
|
||||
nameline_offset_left_1 := { 0 }
|
||||
|
||||
#### To increase/decrease the width of the entire nameline (this WILL NOT change the size of the transformation symbol):
|
||||
nameline_offset_width_1 := { 0 }
|
||||
|
||||
#### To increase/decrease the height of the entire nameline (this WILL change the size of the transformation symbol):
|
||||
nameline_offset_height_1 := { 0 }
|
||||
|
||||
#### You can also adjust each of the components individually:
|
||||
name_offset_top_1 := { 0 }
|
||||
name_offset_left_1 := { 0 }
|
||||
name_offset_right_1 := { 0 }
|
||||
name_offset_height_1 := { 0 }
|
||||
|
||||
casting_cost_offset_top_1 := { 0 }
|
||||
casting_cost_offset_left_1 := { 0 }
|
||||
casting_cost_offset_width_1 := { 0 }
|
||||
casting_cost_offset_height_1 := { 0 }
|
||||
|
||||
transform_symbol_disabled_1 := { true }
|
||||
transform_symbol_mirrored_1 := { true }
|
||||
transform_symbol_offset_top_1 := { 0 }
|
||||
transform_symbol_offset_left_1 := { 0 }
|
||||
transform_symbol_offset_width_1 := { 0 }
|
||||
transform_symbol_offset_height_1 := { 0 }
|
||||
|
||||
#### You can increase/decrease the amount by which the name shifts left
|
||||
#### when a transformation symbol is present on the card:
|
||||
name_transform_symbol_offset_left_1 := { 0 }
|
||||
|
||||
#### For DFC or TFC templates, use:
|
||||
nameline_offset_top_2 := { 0 }
|
||||
nameline_offset_left_2 := { 0 }
|
||||
nameline_offset_width_2 := { 0 }
|
||||
nameline_offset_height_2 := { 0 }
|
||||
nameline_offset_top_3 := { 0 }
|
||||
nameline_offset_left_3 := { 0 }
|
||||
nameline_offset_width_3 := { 0 }
|
||||
nameline_offset_height_3 := { 0 }
|
||||
etc...
|
||||
|
||||
Reference in New Issue
Block a user