Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions data/magic-blends.mse-include/new-blends
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,59 @@ pt_hybrid := [
overlay: overlay_hybrid
]

moving_pt_linear_blend := {
normal_linear_blend := linear_blend
linear_blend := { normal_linear_blend(
x1: (x1 - offset_x/face_width) * face_width/width,
x2: (x2 - offset_x/face_width) * face_width/width,
y1: (y1 - offset_y/face_height) * face_height/height,
y2: (y2 - offset_y/face_height) * face_height/height
)}
card_hybrid[shape][color_count]()
}
moving_pt_hybrid := [
radial: [
0: moving_pt_linear_blend
1: moving_pt_linear_blend
2: moving_pt_linear_blend
3: moving_pt_linear_blend
4: moving_pt_linear_blend
5: moving_pt_linear_blend
6: moving_pt_linear_blend
7: moving_pt_linear_blend
]
horizontal: [
0: moving_pt_linear_blend
1: moving_pt_linear_blend
2: moving_pt_linear_blend
3: moving_pt_linear_blend
4: moving_pt_linear_blend
5: moving_pt_linear_blend
6: moving_pt_linear_blend
7: moving_pt_linear_blend
]
vertical: [
0: moving_pt_linear_blend
1: moving_pt_linear_blend
2: moving_pt_linear_blend
3: moving_pt_linear_blend
4: moving_pt_linear_blend
5: moving_pt_linear_blend
6: moving_pt_linear_blend
7: moving_pt_linear_blend
]
overlay: [
0: moving_pt_linear_blend
1: moving_pt_linear_blend
2: moving_pt_linear_blend
3: moving_pt_linear_blend
4: moving_pt_linear_blend
5: moving_pt_linear_blend
6: moving_pt_linear_blend
7: moving_pt_linear_blend
]
]


########################################################################
# P/T boxes of flip cards
Expand Down
22 changes: 21 additions & 1 deletion data/magic-m15-showcase-avatar-elemental.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ init script:
italic: {""}
]

transform_symbol_disabled_1 := { true }
transform_symbol_offset_left_1 := { 6 }
transform_symbol_offset_top_1 := { 2 }
transform_symbol_image_folder := { "/magic-m15-showcase-avatar-elemental.mse-style/transform/" }
name_transform_symbol_offset_left_1 := { -12 }
casting_cost_transform_symbol_offset_left_1 := { 5 }
casting_cost_offset_top_1 := { 1 }
casting_cost_offset_left_1 := { 1 }
swap_fonts_name_default :=
Expand Down Expand Up @@ -360,6 +364,13 @@ extra card field:
editable: false
save value: false
show statistics: false
extra card field:
type: choice
name: transform box
editable: false
save value: false
show statistics: false
choice: transform box
extra card field:
type: choice
name: symbol
Expand Down Expand Up @@ -395,6 +406,15 @@ extra card style:
else if color == "land" and count > 1 then template("c", type: "pt")
else if color == "hybrid" and count == 2 then masked_blend(mask: "special_blend_pt.png", dark: template(pure.0, type: "pt"), light: template(pure.1, type: "pt"))
else color_blend(type: "pt"))
transform box:
left: { if transform_symbol_mirrored_1() then 628 else 31 }
top: 39
width: 85
height: 85
z index: 190
visible: { card.transformation != "none" }
render style: image
image: { if transform_symbol_mirrored_1() then flip_image("transform/background.png", horizontal: true) else "transform/background.png" }
crown:
left: 0
top: 0
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions data/magic-modules.mse-include/card-symbols/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Consider using the Namelines module instead of this one
#### Consider using the Namelines module instead of this one.
#### It encompasses transformation symbols, card symbols, names and casting costs, all at once.

#### To use this include in a template, add the following in the template headers:
depends on:
Expand All @@ -11,12 +12,16 @@ include file: /magic-modules.mse-include/card-symbols/card_fields
include file: /magic-modules.mse-include/card-symbols/card_fields_dfc
include file: /magic-modules.mse-include/card-symbols/card_fields_tfc

#### Default Field Placement (@375x523, w=1 h=1)
#### Default Field Placement
#### For 375x523 templates, w = h = 1
#### For 750x1046 templates, w = h = 2
#### etc...
card symbol:
left: (8, +18 if used, +28 with transform symbol)w
top: 21h
width: 23w
height: 21h

#### Customization
#### 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:
Expand All @@ -40,6 +45,7 @@ card_symbol_offset_top_3 := { 0 }
card_symbol_offset_left_3 := { 0 }
card_symbol_offset_width_3 := { 0 }
card_symbol_offset_height_3 := { 0 }
etc...

#### You can disable the symbols on some of the faces,
#### by adding the following functions in the init script:
Expand Down
14 changes: 12 additions & 2 deletions data/magic-modules.mse-include/casting-costs/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Consider using the Namelines module instead of this one.
#### It encompasses transformation symbols, card symbols, names and casting costs, all at once.

#### To use this include in a template, add the following in the template headers:
depends on:
Expand All @@ -16,12 +17,16 @@ include file: /magic-modules.mse-include/casting-costs/card_fields_tfc
#### This adds a package option to select an alternate mana font for the casting cost.
include file: /magic-modules.mse-include/casting-costs/styling_fields

#### Default Field Placement (@375x523, w=1 h=1)
#### Default Field Placement
#### For 375x523 templates, w = h = 1
#### For 750x1046 templates, w = h = 2
#### etc...
casting cost:
right: 346w
top: 27h
width: min(30w, content) + 5w
height: 21h

#### Customization
#### Optionally, you can define which face of the card the casting cost should snap to,
#### by defining the following function in the init script:
Expand All @@ -40,6 +45,10 @@ casting_cost_offset_left_1 := { 0 }
casting_cost_offset_width_1 := { 0 }
casting_cost_offset_height_1 := { 0 }

#### When there is a transformation symbol on the right of the card,
#### the casting cost needs to shift. To adjust by how much:
casting_cost_transform_symbol_offset_left_1 := { 0 }

#### For DFC or TFC templates, use:
casting_cost_offset_top_2 := { 0 }
casting_cost_offset_left_2 := { 0 }
Expand All @@ -48,4 +57,5 @@ casting_cost_offset_height_2 := { 0 }
casting_cost_offset_top_3 := { 0 }
casting_cost_offset_left_3 := { 0 }
casting_cost_offset_width_3 := { 0 }
casting_cost_offset_height_3 := { 0 }
casting_cost_offset_height_3 := { 0 }
etc...
16 changes: 14 additions & 2 deletions data/magic-modules.mse-include/namelines/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ 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 }
Expand All @@ -61,6 +60,20 @@ transform_symbol_offset_height_1 := { 0 }
name_card_symbol_offset_left_1 := { 0 }
name_transform_symbol_offset_left_1 := { 0 }

#### By default, the transformation symbol moves to the right when the card is a back face
#### (that is, when it is linked to a front face). To override this behavior:
transform_symbol_mirrored_1 := { get_front_face(card) != nil }

#### When the transformation symbol is on the right of the card,
#### the casting cost needs to shift instead. To adjust that:
casting_cost_transform_symbol_offset_left_1 := { 0 }

#### To change the folder from which the transformation symbol images are taken:
#### You must write the path of the folder starting from the data folder
#### The image files must have the same names as the ones in the default folder (/magic-modules.mse-include/symbols/)
#### You can omit some images and it will use the default ones instead
transform_symbol_image_folder := { "/magic-modules.mse-include/symbols/" }

#### For DFC or TFC templates, use:
nameline_offset_top_2 := { 0 }
nameline_offset_left_2 := { 0 }
Expand All @@ -71,4 +84,3 @@ nameline_offset_left_3 := { 0 }
nameline_offset_width_3 := { 0 }
nameline_offset_height_3 := { 0 }
etc...

20 changes: 16 additions & 4 deletions data/magic-modules.mse-include/names/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Consider using the Namelines module instead of this one
#### Consider using the Namelines module instead of this one.
#### It encompasses transformation symbols, card symbols, names and casting costs, all at once.

#### To use this include in a template, add the following in the template headers:
depends on:
Expand All @@ -11,12 +12,16 @@ include file: /magic-modules.mse-include/names/card_fields
include file: /magic-modules.mse-include/names/card_fields_dfc
include file: /magic-modules.mse-include/names/card_fields_tfc

#### Default Field Placement (@375x523, w=1 h=1)
#### Default Field Placement
#### For 375x523 templates, w = h = 1
#### For 750x1046 templates, w = h = 2
#### etc...
name:
left: 32w + symbols_width
top: 27h
right: 341w - casting_cost
height: 26h

#### Customization
#### Optionally, you can define which face of the card the name should snap to,
#### by defining the following function in the init script:
Expand All @@ -37,10 +42,17 @@ name_offset_right_1 := { 0 }
#### To increase/decrease the height of the name:
name_offset_height_1 := { 0 }

#### When there is a transformation symbol on the left of the card,
#### the name needs to shift. To adjust by how much:
name_transform_symbol_offset_left_1 := { 0 }

#### For DFC or TFC templates, use:
name_offset_top_2 := { 0 }
name_offset_left_2 := { 0 }
name_offset_size_2 := { 0 }
name_offset_right_2 := { 0 }
name_offset_height_2 := { 0 }
name_offset_top_3 := { 0 }
name_offset_left_3 := { 0 }
name_offset_size_3 := { 0 }
name_offset_right_3 := { 0 }
name_offset_height_3 := { 0 }
etc...
32 changes: 25 additions & 7 deletions data/magic-modules.mse-include/symbols/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Consider using the Namelines module instead of this one
#### Consider using the Namelines module instead of this one.
#### It encompasses transformation symbols, card symbols, names and casting costs, all at once.

#### To use this include in a template, add the following in the template headers:
depends on:
Expand All @@ -11,12 +12,16 @@ include file: /magic-modules.mse-include/symbols/card_fields
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)
#### Default Field Placement
#### For 375x523 templates, w = h = 1
#### For 750x1046 templates, w = h = 2
#### etc...
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 :=
Expand All @@ -39,23 +44,36 @@ transform_symbol_offset_left_1 := { 0 }
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 }
#### By default, the symbol moves to the right when the card is a back face
#### (that is, when it is linked to a front face). To override this behavior:
transform_symbol_mirrored_1 := { get_front_face(card) != nil }

#### When the symbol is on the right of the card, transform_symbol_offset_left_1's effect if flipped
#### When the symbol is on the right of the card, transform_symbol_offset_left_1's effect is flipped
#### (Positive numbers will shift to the left)

#### When a symbol is present on the card, the name or casting cost need to move.
#### You can increase/decrease the amount by which they do:
name_transform_symbol_offset_left_1 := { 0 }
casting_cost_transform_symbol_offset_left_1 := { 0 }

#### To change the folder from which the symbol images are taken:
#### You must write the path of the folder starting from the data folder
#### The image files must have the same names as the ones in the default folder (/magic-modules.mse-include/symbols/)
#### You can omit some images and it will use the default ones instead
transform_symbol_image_folder := { "/magic-modules.mse-include/symbols/" }

#### 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_mirrored_2 := { true }
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 }
transform_symbol_mirrored_3 := { true }
etc...

#### You can disable the symbols on some of the faces,
#### by adding the following functions in the init script:
Expand Down
Loading