Skip to content
Open
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
57 changes: 57 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,63 @@ pt_hybrid := [
overlay: overlay_hybrid
]

#### Blend an element that only occupies a small portion of the card, like a pt box,
#### so that its color matches that of the card behind it.
cropped_linear_blend := {
uncropped_linear_blend := linear_blend
linear_blend := {
uncropped_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]()
}
cropped_card_hybrid := [
radial: [
0: cropped_linear_blend
1: cropped_linear_blend
2: cropped_linear_blend
3: cropped_linear_blend
4: cropped_linear_blend
5: cropped_linear_blend
6: cropped_linear_blend
7: cropped_linear_blend
]
horizontal: [
0: cropped_linear_blend
1: cropped_linear_blend
2: cropped_linear_blend
3: cropped_linear_blend
4: cropped_linear_blend
5: cropped_linear_blend
6: cropped_linear_blend
7: cropped_linear_blend
]
vertical: [
0: cropped_linear_blend
1: cropped_linear_blend
2: cropped_linear_blend
3: cropped_linear_blend
4: cropped_linear_blend
5: cropped_linear_blend
6: cropped_linear_blend
7: cropped_linear_blend
]
overlay: [
0: cropped_linear_blend
1: cropped_linear_blend
2: cropped_linear_blend
3: cropped_linear_blend
4: cropped_linear_blend
5: cropped_linear_blend
6: cropped_linear_blend
7: cropped_linear_blend
]
]


########################################################################
# P/T boxes of flip cards
Expand Down
12 changes: 6 additions & 6 deletions data/magic-m15-altered.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ init script:
}
crown_img := {
img := crown_main()
if card.transformation != "none" then
if not transform_symbol_is_empty(card.transformation) then
img := set_mask(image:img, mask:"nodes/mask.png")
if is_borderless() and is_frameless() and is_miracle() then
img := set_mask(image:img, mask:"frame_masks/crown_miracle_borderless.png")
Expand Down Expand Up @@ -1373,13 +1373,13 @@ card style:
script:
if center_map()
then 55
else if is_map() and card.transformation != "none"
else if is_map() and not transform_symbol_is_empty(card.transformation)
then 65
else if is_map()
then 60
else if card.transformation != "none" and card.card_symbol != "none"
else if card.card_symbol != "none" and not transform_symbol_is_empty(card.transformation)
then 78
else if card.transformation != "none"
else if not transform_symbol_is_empty(card.transformation)
then 58
else if card.card_symbol != "none"
then 50
Expand Down Expand Up @@ -2539,7 +2539,7 @@ extra card style:
render style: image
image: { season_background() }
visible: { is_season() }
mask: { if card.transformation != "none" then "nodes/mask.png" else "" }
mask: { if not transform_symbol_is_empty(card.transformation) then "nodes/mask.png" else "" }
mutbar:
z index: 730
left: 28
Expand All @@ -2564,7 +2564,7 @@ extra card style:
z index: 610
render style: image
image: { node_img() }
visible: {not is_map() and not is_clear() and card.transformation != "none"}
visible: {not is_map() and not is_clear() and not transform_symbol_is_empty(card.transformation)}
crown:
left: 0
top: {if is_devoid() then 1 else 0}
Expand Down
8 changes: 4 additions & 4 deletions data/magic-m15-mainframe-battles.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ init script:
is_spillover := { styling.image_style == "spillover" }

has_left_symbol := {
styling.transform_symbol_side == "left" and card.transformation != "none"
styling.transform_symbol_side == "left" and not transform_symbol_is_empty(card.transformation)
}
has_right_symbol := {
styling.transform_symbol_side == "right" and card.transformation != "none"
styling.transform_symbol_side == "right" and not transform_symbol_is_empty(card.transformation)
}
transform_symbol_offset_left_1 := {
if styling.transform_symbol_side == "right" then 401
Expand Down Expand Up @@ -333,7 +333,7 @@ card style:
name:
left: { if has_left_symbol() then 97 else 67 }
top: { 21 + name_font_vertical()}
width: { 410 - max(15,card_style.casting_cost.content_width) - (if card.transformation != "none" then 35 else 0) }
width: { 410 - max(15,card_style.casting_cost.content_width) - (if not transform_symbol_is_empty(card.transformation) then 35 else 0) }
height: 22
alignment: bottom shrink-overflow
padding bottom: -2
Expand Down Expand Up @@ -607,7 +607,7 @@ extra card style:
z index: 210
render style: image
image: { namebar_background() }
mask: { if card.transformation == "none" then "" else template_prefix["namebar"] + styling.transform_symbol_side + "_symbol.png" }
mask: { if transform_symbol_is_empty(card.transformation) then "" else template_prefix["namebar"] + styling.transform_symbol_side + "_symbol.png" }
notch:
left: 0
top: 0
Expand Down
18 changes: 16 additions & 2 deletions data/magic-m15-showcase-avatar-elemental.mse-style/style
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mse version: 2.5.6
mse version: 2.6.0
game: magic
short name: Elemental
full name: Avatar Showcase
Expand Down Expand Up @@ -64,7 +64,21 @@ init script:
italic: {""}
]

transform_symbol_disabled_1 := { true }
transform_symbol_offset_left_1 := { 5 }
transform_symbol_offset_top_1 := { 1 }

transform_symbol_image_folder := { "/magic-m15-showcase-avatar-elemental.mse-style/transform/" }
transform_symbol_default_background := { "colored" }
transform_symbol_default_rim := { "none" }
transform_symbol_default_icon := { "colored" }
transform_symbol_default_rim_bevel := { true }
transform_symbol_default_icon_bevel := { true }

card_symbol_offset_left_1 := { 4 }
card_symbol_offset_top_1 := { 2 }

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
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.
13 changes: 11 additions & 2 deletions data/magic-m15-showcase-bloomburrow-woodland.mse-style/style
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mse version: 2.1.2
mse version: 2.6.0
game: magic
short name: Woodland
full name: Bloomburrow Showcase
Expand Down Expand Up @@ -60,7 +60,16 @@ init script:
italic: {""}
]

transform_symbol_disabled_1 := { true }
transform_symbol_offset_left_1 := { 6 }
transform_symbol_offset_top_1 := { -1 }
transform_symbol_image_folder := { "/magic-m15-showcase-bloomburrow-woodland.mse-style/transform/" }
transform_symbol_modal_uses_normal_background := { true }
transform_symbol_default_background := { "colored" }
transform_symbol_default_rim := { "none" }
transform_symbol_default_icon := { "colored" }

name_transform_symbol_offset_left_1 := { -4 }

swap_fonts_name_default :=
[
name: {"Beleren Bold"},
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.
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/acard.png
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.
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/ccard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/gcard.png
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/mcard.png
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/ucard.png
Binary file modified data/magic-m15-showcase-ixalan-caverns.mse-style/card/wcard.png
20 changes: 17 additions & 3 deletions data/magic-m15-showcase-ixalan-caverns.mse-style/style
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mse version: 2.1.2
mse version: 2.6.0
game: magic
short name: Caverns
full name: Ixalan Showcase
Expand Down Expand Up @@ -64,9 +64,24 @@ init script:
italic: {""}
]

transform_symbol_disabled_1 := { true }
transform_symbol_offset_left_1 := { if transform_symbol_is_mirrored() then 2 else 4 }
transform_symbol_offset_top_1 := { 0 }

transform_symbol_image_folder := { "/magic-m15-showcase-ixalan-caverns.mse-style/transform/" }
transform_symbol_default_background := { "colored" }
transform_symbol_default_rim := { "none" }
transform_symbol_default_icon := { "colored" }
transform_symbol_default_rim_bevel := { true }
transform_symbol_default_icon_bevel := { true }
transform_symbol_default_icon_shadow := { true }
transform_symbol_icon_offset_left := { if transform_symbol_is_mirrored() then -1 else 0 }
transform_symbol_icon_offset_width := { if chosen(card.transformation, choice: "front triangle") or chosen(card.transformation, choice: "back triangle") then 14 else 4 }
transform_symbol_icon_offset_height := { if chosen(card.transformation, choice: "front triangle") or chosen(card.transformation, choice: "back triangle") then 14 else 4 }
transform_symbol_modal_uses_normal_background := { true }

nameline_offset_width_1 := { 2 }
nameline_offset_left_1 := { -1 }
casting_cost_offset_top_1 := { 1 }
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
Expand Down Expand Up @@ -106,7 +121,6 @@ init script:
is_promo := { styling.promo }

is_unsorted := { styling.remove_from_autocount }


is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and lang_setting("is_legendary")(card.super_type)) }

Expand Down
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...
14 changes: 3 additions & 11 deletions data/magic-modules.mse-include/namelines/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ 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 :=
{
stylesheet ## reload script when template changes
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 }
Expand Down Expand Up @@ -50,7 +41,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 +51,9 @@ transform_symbol_offset_height_1 := { 0 }
name_card_symbol_offset_left_1 := { 0 }
name_transform_symbol_offset_left_1 := { 0 }

#### For more in depth documentation about the transformation symbol, see this file:
/magic-modules.mse-include/symbols/readme.txt

#### For DFC or TFC templates, use:
nameline_offset_top_2 := { 0 }
nameline_offset_left_2 := { 0 }
Expand All @@ -71,4 +64,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...
Diff not rendered.
Binary file removed data/magic-modules.mse-include/symbols/artifact.png
Diff not rendered.
Diff not rendered.
Binary file removed data/magic-modules.mse-include/symbols/battle.png
Diff not rendered.
Binary file modified data/magic-modules.mse-include/symbols/blank.png
Loading