[274/274] magic-modules rollout (#51)
Add Magic-Modules support to all frames
BIN
data/magic-modules.mse-include/crowns/375/acrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/bcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/acrown.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/bcrown.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/ccrown.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/gcrown.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/mcrown.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/rcrown.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/ucrown.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
data/magic-modules.mse-include/crowns/375/borderless/wcrown.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
data/magic-modules.mse-include/crowns/375/ccrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/acrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/bcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/ccrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/gcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/mcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/rcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/ucrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/companion/wcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/gcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/hybrid_blend_crown.png
Normal file
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/mcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/acrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/bcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/ccrown.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/gcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/mcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/rcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/ucrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/nyx/wcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/rcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/acrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/bcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/ccrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/gcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/mcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/acrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/bcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/ccrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/gcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/mcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
|
After Width: | Height: | Size: 771 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/rcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/ucrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/nyx/wcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/rcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/ucrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/shifted/wcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/ucrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/wcrown.png
Normal file
|
After Width: | Height: | Size: 768 KiB |
BIN
data/magic-modules.mse-include/crowns/375/xcrown.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
16
data/magic-modules.mse-include/crowns/card_fields
Normal file
@@ -0,0 +1,16 @@
|
||||
extra card field:
|
||||
type: choice
|
||||
name: crown
|
||||
script: card.card_color
|
||||
save value: false
|
||||
editable: false
|
||||
extra card style:
|
||||
crown:
|
||||
left: { 0 + face_coordinates_map(1).left + crown_offset_left_1() }
|
||||
top: { 0 + face_coordinates_map(1).top + crown_offset_top_1() }
|
||||
width: { face_coordinates_map(1).width }
|
||||
height: { face_coordinates_map(1).height }
|
||||
render style: image
|
||||
image: { module_crown() }
|
||||
z index: 800
|
||||
visible: { not crown_disabled_1() }
|
||||
17
data/magic-modules.mse-include/crowns/card_fields_dfc
Normal file
@@ -0,0 +1,17 @@
|
||||
include file: /magic-modules.mse-include/crowns/card_fields
|
||||
extra card field:
|
||||
type: choice
|
||||
name: crown 2
|
||||
script: card.card_color_2
|
||||
save value: false
|
||||
editable: false
|
||||
extra card style:
|
||||
crown 2:
|
||||
left: { 0 + face_coordinates_map(2).left + crown_offset_left_2() }
|
||||
top: { 0 + face_coordinates_map(2).top + crown_offset_top_2() }
|
||||
width: { face_coordinates_map(2).width }
|
||||
height: { face_coordinates_map(2).height }
|
||||
render style: image
|
||||
image: { module_crown() }
|
||||
z index: 800
|
||||
visible: { not crown_disabled_2() }
|
||||
17
data/magic-modules.mse-include/crowns/card_fields_tfc
Normal file
@@ -0,0 +1,17 @@
|
||||
include file: /magic-modules.mse-include/crowns/card_fields_dfc
|
||||
extra card field:
|
||||
type: choice
|
||||
name: crown 3
|
||||
script: card.card_color_3
|
||||
save value: false
|
||||
editable: false
|
||||
extra card style:
|
||||
crown 3:
|
||||
left: { 0 + face_coordinates_map(3).left + crown_offset_left_3() }
|
||||
top: { 0 + face_coordinates_map(3).top + crown_offset_top_3() }
|
||||
width: { face_coordinates_map(3).width }
|
||||
height: { face_coordinates_map(3).height }
|
||||
render style: image
|
||||
image: { module_crown() }
|
||||
z index: 800
|
||||
visible: { not crown_disabled_3() }
|
||||
36
data/magic-modules.mse-include/crowns/init_script
Normal file
@@ -0,0 +1,36 @@
|
||||
crowns_folder := {"/magic-modules.mse-include/crowns/375/"}
|
||||
module_legend_crown_template := { crowns_folder() + input + "crown.png" }
|
||||
module_borderless_crown_template := { crowns_folder() + "borderless/" + input + "crown.png" }
|
||||
module_nyx_crown_template := { crowns_folder() + "nyx/" + input + "crown.png" }
|
||||
module_companion_crown_template := { crowns_folder() + "companion/" + input + "crown.png" }
|
||||
module_custom_crown_template := {
|
||||
"/magic-mainframe-extras.mse-include/"
|
||||
+ styling.custom_crown_location
|
||||
+ input
|
||||
+ "crown.png"
|
||||
}
|
||||
|
||||
module_crown_template := {
|
||||
crown_shape := styling.legend_crown or else crown_type
|
||||
if override != "" then crown_shape := override
|
||||
case crown_shape of
|
||||
"borderless": module_borderless_crown_template(),
|
||||
"nyx": module_nyx_crown_template(),
|
||||
"companion": module_companion_crown_template(),
|
||||
"custom": module_custom_crown_template(),
|
||||
else: module_legend_crown_template();
|
||||
}@(crown_type:"normal", override:"")
|
||||
|
||||
module_crown := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder()) }
|
||||
module_crown_2 := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder(), blend_type:"crown") }
|
||||
module_crown_3 := { color_background(type:"crown", base_hybrid:card_hybrid, folder:crowns_folder(), blend_type:"crown") }
|
||||
|
||||
crown_disabled_1 := { not is_legend(face:1) }
|
||||
crown_offset_left_1 := { 0 }
|
||||
crown_offset_top_1 := { 0 }
|
||||
crown_disabled_2 := { not is_legend(face:2) }
|
||||
crown_offset_left_2 := { 0 }
|
||||
crown_offset_top_2 := { 0 }
|
||||
crown_disabled_3 := { not is_legend(face:3) }
|
||||
crown_offset_left_3 := { 0 }
|
||||
crown_offset_top_3 := { 0 }
|
||||
34
data/magic-modules.mse-include/crowns/readme.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
#### 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, indented once, at the top of the init script section:
|
||||
include file: /magic-modules.mse-include/crowns/init_script
|
||||
#### Add this, unindented in the styling fields section:
|
||||
include file: /magic-modules.mse-include/crowns/styling_fields
|
||||
#### And 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
|
||||
|
||||
#### Finally, the template script must be adjusted like so:
|
||||
|
||||
template := {
|
||||
if type_name(harder_script[type] or else nil) != "nothing"
|
||||
then harder_script[type](input, land:false)
|
||||
else template_prefix[type] + input + template_suffix[type]
|
||||
}
|
||||
land_template := {
|
||||
if type_name(harder_script[type] or else nil) != "nothing"
|
||||
then harder_script[type](input, land:true)
|
||||
else template_prefix[type] + input + (if input == "a" then "" else "l") + template_suffix[type]
|
||||
}
|
||||
|
||||
harder_script := [
|
||||
crown: module_crown_template
|
||||
]
|
||||
|
||||
#### Optionally, the crowns folder can be changed. Default is
|
||||
crowns_folder := {"/magic-modules.mse-include/crowns/375/"}
|
||||
12
data/magic-modules.mse-include/crowns/styling_fields
Normal file
@@ -0,0 +1,12 @@
|
||||
styling field:
|
||||
type: choice
|
||||
name: legend crown
|
||||
choice: standard
|
||||
choice: nyx
|
||||
choice: companion
|
||||
choice: custom
|
||||
description: The type of legend crown to use for this card.
|
||||
styling field:
|
||||
type: text
|
||||
name: custom crown location
|
||||
description: Location of custom legend crown images in magic-mainframe-extras
|
||||