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/corners/1039x744 diagonal.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
BIN
data/magic-modules.mse-include/corners/1039x744 rounded.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
data/magic-modules.mse-include/corners/1046x750 diagonal.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 10 KiB |
BIN
data/magic-modules.mse-include/corners/1046x750 rounded.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
data/magic-modules.mse-include/corners/375x523 diagonal.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
BIN
data/magic-modules.mse-include/corners/375x523 rounded.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
data/magic-modules.mse-include/corners/523x375 diagonal.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
BIN
data/magic-modules.mse-include/corners/523x375 rounded.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
data/magic-modules.mse-include/corners/646x902 diagonal.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
BIN
data/magic-modules.mse-include/corners/646x902 rounded.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
data/magic-modules.mse-include/corners/744x1039 diagonal.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
BIN
data/magic-modules.mse-include/corners/744x1039 rounded.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
data/magic-modules.mse-include/corners/750x1046 diagonal.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
BIN
data/magic-modules.mse-include/corners/750x1046 rounded.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
data/magic-modules.mse-include/corners/902x646 diagonal.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
BIN
data/magic-modules.mse-include/corners/902x646 rounded.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
13
data/magic-modules.mse-include/corners/card_fields
Normal file
@@ -0,0 +1,13 @@
|
||||
card style:
|
||||
corners:
|
||||
left: { face_coordinates_map(1).left }
|
||||
top: { face_coordinates_map(1).top }
|
||||
width: { face_coordinates_map(1).width }
|
||||
height: { face_coordinates_map(1).height }
|
||||
visible: { not corners_disabled_1() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/corners/menu_choice_images
|
||||
render style: image
|
||||
image: { corners_image(field: 1) }
|
||||
mask: { corners_mask(field: 1, face: 1) }
|
||||
z index: 1100
|
||||
14
data/magic-modules.mse-include/corners/card_fields_dfc
Normal file
@@ -0,0 +1,14 @@
|
||||
include file: /magic-modules.mse-include/corners/card_fields
|
||||
card style:
|
||||
corners 2:
|
||||
left: { face_coordinates_map(2).left }
|
||||
top: { face_coordinates_map(2).top }
|
||||
width: { face_coordinates_map(2).width }
|
||||
height: { face_coordinates_map(2).height }
|
||||
visible: { not corners_disabled_2() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/corners/menu_choice_images
|
||||
render style: image
|
||||
image: { corners_image(field: 2) }
|
||||
mask: { corners_mask(field: 2, face: 2) }
|
||||
z index: 1100
|
||||
14
data/magic-modules.mse-include/corners/card_fields_tfc
Normal file
@@ -0,0 +1,14 @@
|
||||
include file: /magic-modules.mse-include/corners/card_fields_dfc
|
||||
card style:
|
||||
corners 3:
|
||||
left: { face_coordinates_map(3).left }
|
||||
top: { face_coordinates_map(3).top }
|
||||
width: { face_coordinates_map(3).width }
|
||||
height: { face_coordinates_map(3).height }
|
||||
visible: { not corners_disabled_3() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/corners/menu_choice_images
|
||||
render style: image
|
||||
image: { corners_image(field: 3) }
|
||||
mask: { corners_mask(field: 3, face: 3) }
|
||||
z index: 1100
|
||||
5
data/magic-modules.mse-include/corners/choices
Normal file
@@ -0,0 +1,5 @@
|
||||
choice: rounded and antialiased
|
||||
choice: rounded
|
||||
choice: diagonal
|
||||
choice: none
|
||||
choice: invisible
|
||||
BIN
data/magic-modules.mse-include/corners/color.png
Normal file
|
After Width: | Height: | Size: 539 B |
BIN
data/magic-modules.mse-include/corners/invisible.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
10
data/magic-modules.mse-include/corners/readme.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
#### 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/corners/card_fields
|
||||
#### For DFC or TFC templates, instead override the faces_coordinates function, and use:
|
||||
include file: /magic-modules.mse-include/corners/card_fields_dfc
|
||||
include file: /magic-modules.mse-include/corners/card_fields_tfc
|
||||