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 game: magic
short name: Modern style short name: Modern style
full name: After 8th edition full name: After 8th edition
...@@ -20,8 +20,7 @@ card dpi: 150 ...@@ -20,8 +20,7 @@ card dpi: 150
############################################################## Extra scripts ############################################################## Extra scripts
init script: init script:
# Load blend scripts for hybrids/multicolors # Load scripts for image box
include file: magic-blends.mse-include/blend-scripts
include file: magic-default-image.mse-include/scripts include file: magic-default-image.mse-include/scripts
# Should hybrids have a grey name? # Should hybrids have a grey name?
...@@ -35,8 +34,8 @@ init script: ...@@ -35,8 +34,8 @@ init script:
else "a" else "a"
) else input ) else input
} }
card_template := { artifact_template() + "card.jpg" } template := { artifact_template() + "{type}.jpg" }
pt_template := { artifact_template() + "pt.jpg" } land_template := { (if input == "a" then "c" else input) + "l{type}.jpg" }
# Use the normal tap symbol # Use the normal tap symbol
mana_t := { mana_t := {
...@@ -49,11 +48,11 @@ init script: ...@@ -49,11 +48,11 @@ init script:
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
# Does the card have a color that requires a white font for copyright/artist? # 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)") #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 := { #font_color := {
if white_font_colors(input: card.card_color) != "" then rgb(255,255,255) # if white_font_colors(input: card.card_color) != "" then rgb(255,255,255)
else rgb(0,0,0) # else rgb(0,0,0)
} #}
############################################################## Extra style options ############################################################## Extra style options
...@@ -143,13 +142,13 @@ card style: ...@@ -143,13 +142,13 @@ card style:
z index: -2 z index: -2
render style: image render style: image
popup style: in place popup style: in place
include file: magic-blends.mse-include/card-backgrounds image: { card_background() }
############################# Name line ############################# Name line
name: name:
left: { if card.card_symbol=="none" then 32 else 51 } left: { if card.card_symbol=="none" then 32 else 51 }
top : 30 top : 30
width: { if card.card_symbol=="none" then 246 else 227 } right: 278
height: 23 height: 23
alignment: bottom shrink-overflow alignment: bottom shrink-overflow
padding bottom: 0 padding bottom: 0
...@@ -244,7 +243,8 @@ card style: ...@@ -244,7 +243,8 @@ card style:
script: script:
if styling.center_short_text and if styling.center_short_text and
not contains(match:"\n", card.rule_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" then "middle center"
else "middle left" else "middle left"
z index: 2 z index: 2
...@@ -294,7 +294,7 @@ card style: ...@@ -294,7 +294,7 @@ card style:
name: Matrix name: Matrix
size: 10 size: 10
weight: bold weight: bold
color: { font_color() } color: { font_color(card.card_color) }
copyright line: copyright line:
left: 30 left: 30
...@@ -305,7 +305,7 @@ card style: ...@@ -305,7 +305,7 @@ card style:
font: font:
name: MPlantin name: MPlantin
size: 6.5 size: 6.5
color: { font_color() } color: { font_color(card.card_color) }
############################################################## Extra card fields ############################################################## Extra card fields
...@@ -324,4 +324,4 @@ extra card style: ...@@ -324,4 +324,4 @@ extra card style:
z index: 1 z index: 1
visible: { card.pt != "" } visible: { card.pt != "" }
render style: image 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