Files
magic-set-editor-fork/data/magic-piet.mse-style/style
2024-10-01 08:42:16 -05:00

328 lines
8.2 KiB
Plaintext

mse version: 2.0.0
game: magic
short name: Piet
full name: Piet's Custom Style
installer group: magic/piet style
icon: card-sample.png
position hint: 839
version: 2024-05-30
depends on:
package: magic.mse-game
version: 2008-06-02
depends on:
package: magic-modules.mse-include
version: 2024-10-01
depends on:
package: magic-mana-small.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-mana-large.mse-symbol-font
version: 2007-09-23
depends on:
package: magic-future-common.mse-include
version: 2008-05-21
card width: 375
card height: 523
card dpi: 150
############################################################## Extra scripts
init script:
# Use the normal tap symbol
mana_t := {
if styling.tap_symbol == "old" then "old"
else if styling.tap_symbol == "diagonal T" then "older"
else "new"
}
# Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols }
# There's no colorless frame and no colored lands.
template := { (if input == "c" then "a" else input) + "card.jpg" }
land_template := { if input == "a" or input == "c" then "clcard.jpg" else scripted_lands() }
scripted_lands := { masked_blend(light: (input + "card.jpg"), dark: "clcard.jpg", mask: "land_mask.png") }
# Only white cards use a black font
font_colors_white := { input != "w" }
font_color := { if font_white() then "white" else "black" }
inverted_font_color := { if font_white() then "black" else "white" }
watermark_include := "/magic-modules.mse-include/watermarks"
############################################################## Set info fields
############################################################## Extra style options
styling field:
type: text
name: left
styling field:
type: text
name: top
styling field:
type: text
name: width
styling field:
type: text
name: height
styling field:
type: boolean
name: use guild mana symbols
description: Use the Ravnica guild symbols instead of the official half/half circles for hybrid mana.
initial: no
styling field:
type: package choice
name: text box mana symbols
match: magic-mana-*.mse-symbol-font
initial: magic-mana-small.mse-symbol-font
styling field:
type: choice
name: tap symbol
description: What tap and untap symbols should be used on cards?
initial: old
choice: modern
choice: old
choice: diagonal T
styling field:
type: choice
name: center text
description: When to center text (short text only means only on one-line cards with no flavor text)
choice: always
choice: short text only
choice: never
initial: never
styling field:
type: package choice
name: overlay
description: Should there be an overlay applied, such as foil?
match: magic-overlay-*.mse-include
required: false
styling style:
use guild mana symbols:
choice images:
yes: /magic-mana-small.mse-symbol-font/mana_guild_rg.png
no: /magic-mana-small.mse-symbol-font/mana_rg.png
tap symbol:
render style: both
choice images:
modern: /magic-mana-small.mse-symbol-font/mana_t.png
old: /magic-mana-small.mse-symbol-font/mana_t_old.png
diagonal T: /magic-mana-small.mse-symbol-font/mana_t_older.png
center text:
render style: both
choice images:
always: /magic.mse-game/icons/center-all-text.png
short text only: /magic.mse-game/icons/center-short-text.png
never: /magic.mse-game/icons/center-no-text.png
############################################################## Card fields
include file: /magic-modules.mse-include/corners/card_fields
include file: /magic-modules.mse-include/information/the_list_old
card style:
############################# Background stuff
card color:
left: 0
top: 0
width: 375
height: 523
z index: 0
render style: image
popup style: in place
image: { card_background() }
############################# Name line
name:
left: { if card.card_symbol == "none" then 60 else 70 }
left: 60
top: 18
right: { 341 - card_style.casting_cost.content_width }
height: 24
alignment: bottom shrink-overflow
padding bottom: 0
z index: 1
font:
name: Matrix
size: 17
weight: bold
color: black
casting cost:
right: 346
top: 20
width: { max(30, card_style.casting_cost.content_width) + 5 }
height: 24
alignment: middle right
symbol font:
name: magic-mana-large
size: 15
alignment: middle right
always symbol: true
z index: 2
padding top: 0
type symbol:
left: 29.5
top: 22
width: 19
height: 19
z index: 5
render style: image
alignment: middle center
choice images:
artifact: /magic-future-common.mse-include/artifact_black.png
creature: /magic-future-common.mse-include/creature_black.png
enchantment: /magic-future-common.mse-include/enchantment_black.png
instant: /magic-future-common.mse-include/instant_black.png
land: /magic-future-common.mse-include/land_black.png
multitype: /magic-future-common.mse-include/multitype_black.png
sorcery: /magic-future-common.mse-include/sorcery_black.png
planeswalker: /magic-future-common.mse-include/planeswalker_black.png
card symbol:
left: 49
top: 20
height: 21
width: 23
z index: 5
render style: image
image: { card_symbol_image(face: 1) }
############################# Image
image:
left: 14
top: 60
width: 347
height: 235
z index: 1
mask: image_mask.png
############################# Card type
type:
left: 30
top: 310
width: { 310 - max(22,card_style.rarity.content_width) }
height: 20
alignment: middle shrink-overflow
z index: 1
padding top: 2
font:
name: Matrix
size: 14
color: black
separator color: red
rarity:
left: 300
top: 310
width: 44
height: 22
z index: 2
alignment: middle right
render style: image
include file: /magic-modules.mse-include/rarities/choice_images
############################# Text box
text:
left: 39
top: 352
width: 295
height: 130
mask: { if has_pt() then "text_mask.png" else nil }
font:
name: MPlantin
italic name: MPlantin-Italic
size: 14
scale down to: 6
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: 14
alignment:
script:
if (styling.center_text == "short text only" and
not contains(match:"\n", card.rule_text) and
card.flavor_text == "<i-flavor></i-flavor>" and
card_style.text.content_lines <= 2) or
styling.center_text == "always"
then "middle center"
else "middle left"
z index: 2
padding left: 6
padding top: 2
padding right: 4
padding bottom: 0
line height hard: 1.2
line height line: 1.5
line height soft: 0.9
watermark:
left: 29
top: 352
width: 315
height: 130
z index: 1
render style: image
alignment: middle center
include file: /magic.mse-game/watermarks/menu_choice_images
image: { watermark_image_1() }
############################# PT
pt:
z index: 2
left: 282
top: 455
width: 47
height: 27
alignment: right middle
font:
name: ModMatrix
size: 17
color: black
separator color: red
############################# Card sorting / numbering
############################# Copyright stuff
illustrator:
left: 63
bottom: 508
width: 287
height: 16
z index: 6
alignment: middle center
font:
name: Matrix
size: 10
weight: bold
color: { font_color(card.card_color) }
shadow color: { inverted_font_color(card.card_color) }
shadow displacement x: 0
shadow displacement y: 0
shadow blur: 1
copyright line:
left: 40
top: 509
width: 297
height: 12
z index: 1
alignment: middle center
font:
name: MPlantin
size: 6.5
color: white
############################################################## Extra card fields
extra card field:
type: choice
name: paintbrush
script: font_color(card.card_color)
editable: false
save value: false
extra card field:
type: choice
name: foil layer
choice: foil
save value: false
editable: false
extra card style:
paintbrush:
right: { 206 + card_style.illustrator.content_width * -0.5 }
top: 494
width: 30
height: 12
z index: 6
render style: image
choice images:
white: paintbrush_white.png
black: paintbrush_black.png
foil layer:
left: 0
top : 0
width: 375
height: 523
z index: 1050
render style: image
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}