Commit fa29cfb3 authored by twanvl's avatar twanvl

New card color system, based on a multiple choice field. Renamed some image...

New card color system, based on a multiple choice field. Renamed some image files to be more consistent.
parent f3c8f982
data/magic-new.mse-style/hybrid_blend_pt.png

260 Bytes | W: | H:

data/magic-new.mse-style/hybrid_blend_pt.png

300 Bytes | W: | H:

data/magic-new.mse-style/hybrid_blend_pt.png
data/magic-new.mse-style/hybrid_blend_pt.png
data/magic-new.mse-style/hybrid_blend_pt.png
data/magic-new.mse-style/hybrid_blend_pt.png
  • 2-up
  • Swipe
  • Onion skin
mse version: 0.3.2
mse version: 0.3.4
game: magic
short name: Modern style
full name: After 8th edition
......@@ -20,8 +20,7 @@ card dpi: 150
############################################################## Extra scripts
init script:
# Load blend scripts for hybrids/multicolors
include file: magic-blends.mse-include/blend-scripts
# Load scripts for image box
include file: magic-default-image.mse-include/scripts
# Should hybrids have a grey name?
......@@ -35,8 +34,8 @@ init script:
else "a"
) else input
}
card_template := { artifact_template() + "card.jpg" }
pt_template := { artifact_template() + "pt.jpg" }
template := { artifact_template() + "{type}.jpg" }
land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" }
# Use the normal tap symbol
mana_t := {
......@@ -49,11 +48,11 @@ init script:
guild_mana := { styling.use_guild_mana_symbols }
# Does the card have a color that requires a white font for copyright/artist?
white_font_colors := filter_rule(match:"^(hybrid 2 color )?(hybrid 3 color [^/]*/[^/]*/ )?(hybrid vertical [^/]*/ )?(black|land|hybrid 4 color white / blue / black / red|hybrid 2 color overlay blue / black|hybrid 2 color overlay black / red|hybrid 2 color overlay black / green)")
font_color := {
if white_font_colors(input: card.card_color) != "" then rgb(255,255,255)
else rgb(0,0,0)
}
#white_font_colors := filter_rule(match:"^(hybrid 2 color )?(hybrid 3 color [^/]*/[^/]*/ )?(hybrid vertical [^/]*/ )?(black|land|hybrid 4 color white / blue / black / red|hybrid 2 color overlay blue / black|hybrid 2 color overlay black / red|hybrid 2 color overlay black / green)")
#font_color := {
# if white_font_colors(input: card.card_color) != "" then rgb(255,255,255)
# else rgb(0,0,0)
#}
############################################################## Extra style options
......@@ -143,13 +142,13 @@ card style:
z index: -2
render style: image
popup style: in place
include file: magic-blends.mse-include/card-backgrounds
image: { card_background() }
############################# Name line
name:
left: { if card.card_symbol=="none" then 32 else 51 }
top : 30
width: { if card.card_symbol=="none" then 246 else 227 }
right: 278
height: 23
alignment: bottom shrink-overflow
padding bottom: 0
......@@ -244,7 +243,8 @@ card style:
script:
if styling.center_short_text and
not contains(match:"\n", card.rule_text) and
card.flavor_text == "<i-flavor></i-flavor>"
card.flavor_text == "<i-flavor></i-flavor>" and
card_style.text.content_lines <= 2
then "middle center"
else "middle left"
z index: 2
......@@ -294,7 +294,7 @@ card style:
name: Matrix
size: 10
weight: bold
color: { font_color() }
color: { font_color(card.card_color) }
copyright line:
left: 30
......@@ -305,7 +305,7 @@ card style:
font:
name: MPlantin
size: 6.5
color: { font_color() }
color: { font_color(card.card_color) }
############################################################## Extra card fields
......@@ -324,4 +324,4 @@ extra card style:
z index: 1
visible: { card.pt != "" }
render style: image
include file: magic-blends.mse-include/card-ptboxes
image: { card_ptbox() }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment