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
162 changes: 81 additions & 81 deletions data/magic-archenemy.mse-style/style
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ init script:
swap_fonts_body_default :=
[
name: {"MPlantin"},
size: {if styling.archenemy_frame == "original" then 21.0 else 23.0},
size: {if styling.frame_type == "original" then 21.0 else 23.0},
color: {"black"},
vertical: {0},
italic: {"MPlantin-Italic"}
]

typeline_offset_left_1 := { if styling.archenemy_frame == "original" then 54 else 48 }
typeline_offset_top_1 := { if styling.archenemy_frame == "original" then 85 else 77 }
typeline_offset_width_1 := { if styling.archenemy_frame == "original" then -101 else -91 }
typeline_character_limit := { if styling.archenemy_frame == "original" then 34 else 30 }
rarity_offset_top_1 := { if styling.archenemy_frame == "original" then 2 else 1 }
rarity_offset_size_1 := { if styling.archenemy_frame == "original" then -3 else 0 }
typeline_offset_left_1 := { if styling.frame_type == "original" then 54 else 48 }
typeline_offset_top_1 := { if styling.frame_type == "original" then 85 else 77 }
typeline_offset_width_1 := { if styling.frame_type == "original" then -101 else -91 }
typeline_character_limit := { if styling.frame_type == "original" then 34 else 30 }
rarity_offset_top_1 := { if styling.frame_type == "original" then 2 else 1 }
rarity_offset_size_1 := { if styling.frame_type == "original" then -3 else 0 }
swap_fonts_type_default :=
[
name: {"Beleren Bold"},
size: { (if styling.archenemy_frame == "original" then 21.0 else 23.0) - max(0, (length(to_text(card.type)) - typeline_character_limit()) / 3) },
size: { (if styling.frame_type == "original" then 21.0 else 23.0) - max(0, (length(to_text(card.type)) - typeline_character_limit()) / 3) },
color: {"black"},
vertical: {0},
italic: {""}
Expand All @@ -72,15 +72,15 @@ init script:
swap_fonts_name_default :=
[
name: {"Beleren Bold"},
size: {if styling.archenemy_frame == "original" then 22 else 27},
size: {if styling.frame_type == "original" then 22 else 27},
color: {"black"},
vertical: {0},
italic: {""}
]

invert_watermark_1 := { false }

illustrator_brush_default := { if styling.archenemy_frame == "original" then "art old" else "art" }
illustrator_brush_default := { if styling.frame_type == "original" then "art old" else "art" }

is_unsorted := { styling.remove_from_autocount }

Expand All @@ -95,25 +95,25 @@ init script:
art_left :=
{
if styling.stretch_art_to_whole_card then 0
else if styling.archenemy_frame == "original" then 42
else if styling.frame_type == "original" then 42
else 33
}
art_top :=
{
if styling.stretch_art_to_whole_card then 0
else if styling.archenemy_frame == "original" then 40
else if styling.frame_type == "original" then 40
else 33
}
art_width :=
{
if styling.stretch_art_to_whole_card then stylesheet.card_width
else if styling.archenemy_frame == "original" then 658
else if styling.frame_type == "original" then 658
else 676
}
art_height :=
{
if styling.stretch_art_to_whole_card then stylesheet.card_height
else if styling.archenemy_frame == "original" then 958
else if styling.frame_type == "original" then 958
else 911
}

Expand All @@ -124,8 +124,8 @@ init script:

frame_type :=
{
if styling.archenemy_frame == "original" then "original/"
else "bolas/"
if styling.frame_type == "original" then "original/"
else "bolas/"
}

illustrator_brush_width := { (if card.illustrator_brush == "art old" then 30 else if contains(card.illustrator_brush, match: "wide") then 15 else 12) * 744/375 }
Expand All @@ -134,6 +134,13 @@ init script:

############################################################## Extra style options

styling field:
type: choice
name: frame type
description: What version of the frame should be used?
choice: original
choice: bolas

styling field:
type: text
name: popout art coordinates
Expand All @@ -144,13 +151,6 @@ styling field:
description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects.
initial: no

styling field:
type: choice
name: archenemy frame
description: The frame of the Scheme card.
choice: original
choice: bolas

include file: /magic-modules.mse-include/texts/styling_fields

include file: /magic-modules.mse-include/watermarks/styling_fields
Expand Down Expand Up @@ -202,20 +202,20 @@ card style:
name:
left:
script:
if styling.archenemy_frame == "original" then 119
else 137
if styling.frame_type == "original" then 119
else 137
top:
script:
if styling.archenemy_frame == "original" then 72
else 72
if styling.frame_type == "original" then 72
else 72
width:
script:
if styling.archenemy_frame == "original" then 508 - (if card_style.casting_cost.content_width > 0 then card_style.casting_cost.content_width+10 else 0)
else 472 - (if card_style.casting_cost.content_width > 0 then card_style.casting_cost.content_width+10 else 0)
if styling.frame_type == "original" then 508 - (if card_style.casting_cost.content_width > 0 then card_style.casting_cost.content_width+10 else 0)
else 472 - (if card_style.casting_cost.content_width > 0 then card_style.casting_cost.content_width+10 else 0)
height:
script:
if styling.archenemy_frame == "original" then 31
else 42
if styling.frame_type == "original" then 31
else 42
z index: 900
alignment: { if card.casting_cost != "" then "middle left shrink-overflow" else "middle center shrink-overflow" }
font:
Expand All @@ -231,19 +231,19 @@ card style:
casting cost:
right:
script:
if styling.archenemy_frame == "original" then 626
else 608
if styling.frame_type == "original" then 626
else 608
top:
script:
if styling.archenemy_frame == "original" then 72
else 71
if styling.frame_type == "original" then 72
else 71
width:
script:
max(card_style.casting_cost.content_width, 30)
height:
script:
if styling.archenemy_frame == "original" then 31
else 42
if styling.frame_type == "original" then 31
else 42
z index: 920
alignment: middle right shrink-overflow
always symbol: true
Expand All @@ -258,20 +258,20 @@ card style:
alias:
left:
script:
if styling.archenemy_frame == "original" then 188
else 192
if styling.frame_type == "original" then 188
else 192
top:
script:
if styling.archenemy_frame == "original" then 113
else 123
if styling.frame_type == "original" then 113
else 123
width:
script:
if styling.archenemy_frame == "original" then 368
else 360
if styling.frame_type == "original" then 368
else 360
height:
script:
if styling.archenemy_frame == "original" then 21
else 21
if styling.frame_type == "original" then 21
else 21
alignment: center middle shrink-overflow
z index: 900
font:
Expand All @@ -281,7 +281,7 @@ card style:
weight: bold
color:
script:
if styling.archenemy_frame == "original" then "black"
if styling.frame_type == "original" then "black"
else "black"
############################# Image
image:
Expand All @@ -301,20 +301,20 @@ card style:
text:
left:
script:
if styling.archenemy_frame == "original" then 109
else 113
if styling.frame_type == "original" then 109
else 113
top:
script:
if styling.archenemy_frame == "original" then 731
else 730
if styling.frame_type == "original" then 731
else 730
width:
script:
if styling.archenemy_frame == "original" then 526
else 518
if styling.frame_type == "original" then 526
else 518
height:
script:
if styling.archenemy_frame == "original" then 206
else 196
if styling.frame_type == "original" then 206
else 196
z index: 900
line height hard: 1.2
line height line: 1.5
Expand Down Expand Up @@ -344,20 +344,20 @@ card style:
pt:
left:
script:
if styling.archenemy_frame == "original" then 548
else 595
if styling.frame_type == "original" then 548
else 595
top:
script:
if styling.archenemy_frame == "original" then 906
else 912
if styling.frame_type == "original" then 906
else 912
width:
script:
if styling.archenemy_frame == "original" then 99
else 87
if styling.frame_type == "original" then 99
else 87
height:
script:
if styling.archenemy_frame == "original" then 39
else 42
if styling.frame_type == "original" then 39
else 42
z index: 900
alignment: center middle shrink-overflow
font:
Expand All @@ -369,33 +369,33 @@ card style:
illustrator:
left:
script:
if styling.archenemy_frame == "original"
if styling.frame_type == "original"
or trim(to_text(card.card_code + card.set_code)) == ""
then max(141,378 - (card_style.illustrator_brush.width + card_style.illustrator.content_width + 6)/2) + illustrator_brush_width()
else 408 + illustrator_brush_width()
top: { if styling.archenemy_frame == "original" then 956 else 967 }
top: { if styling.frame_type == "original" then 956 else 967 }
right: 609
height: 18
z index: 900
alignment: middle left shrink-overflow
font:
name:
script:
if styling.archenemy_frame == "original" then "Beleren Bold"
if styling.frame_type == "original" then "Beleren Bold"
else "Beleren Small Caps"
size:
script:
if styling.archenemy_frame == "original" then 16
if styling.frame_type == "original" then 16
else 18
color: { styling.copyright_text_color }
illustrator brush:
left:
script:
if styling.archenemy_frame == "original"
if styling.frame_type == "original"
or trim(to_text(card.card_code + card.set_code)) == ""
then max(135,372 - (card_style.illustrator_brush.width + card_style.illustrator.content_width + 6)/2)
else 402
top: { if styling.archenemy_frame == "original" then 960 else 971 }
top: { if styling.frame_type == "original" then 960 else 971 }
width: { illustrator_brush_width() }
height: { 7 * 1039/523 }
popup style: in place
Expand All @@ -410,7 +410,7 @@ card style:
card code:
left: { 202 + card_style.set_code.content_width }
top: 967
width: { if styling.archenemy_frame == "original" then 0 else max(90, card_style.card_code.content_width) }
width: { if styling.frame_type == "original" then 0 else max(90, card_style.card_code.content_width) }
height: 20
z index: 900
alignment: middle left
Expand All @@ -421,7 +421,7 @@ card style:
set code:
left: 194
top: 967
width: { if styling.archenemy_frame == "original" then 0 else max(30, card_style.set_code.content_width) }
width: { if styling.frame_type == "original" then 0 else max(30, card_style.set_code.content_width) }
height: 20
z index: 900
alignment: middle left
Expand All @@ -432,28 +432,28 @@ card style:
copyright:
left:
script:
if styling.archenemy_frame == "original" then 135
else 135
if styling.frame_type == "original" then 135
else 135
top:
script:
if styling.archenemy_frame == "original" then 976
else 991
if styling.frame_type == "original" then 976
else 991
right:
script:
if styling.archenemy_frame == "original" then 609
else 609
if styling.frame_type == "original" then 609
else 609
height:
script:
if styling.archenemy_frame == "original" then 16
else 18
if styling.frame_type == "original" then 16
else 18
z index: 900
alignment: top center shrink-overflow
font:
name: MPlantin
color: { styling.copyright_text_color }
size:
script:
if styling.archenemy_frame == "original" then 12
if styling.frame_type == "original" then 12
else 14
############################################################## Extra card fields

Expand Down Expand Up @@ -490,7 +490,7 @@ extra card field:
description: The frame of the Scheme card.
show statistics: false
editable: false
script: styling.archenemy_frame
script: styling.frame_type

extra card style:
foil layer:
Expand Down Expand Up @@ -526,7 +526,7 @@ extra card style:
width: { stylesheet.card_width }
height: { stylesheet.card_height }
z index: 910
visible: { card.pt != "" and styling.archenemy_frame == "original" }
visible: { card.pt != "" and styling.frame_type == "original" }
render style: image
image: original/pt_spikes.png
############################# Frame
Expand Down
Loading