Commit 12cdba82 authored by twanvl's avatar twanvl

Updated FPM templates (except for the tokens) to new color system

parent c0ed5441
mse version: 0.3.2 mse version: 0.3.4
game: magic game: magic
full name: FPM's Normal Magic full name: FPM's Normal Magic
short name: FPM Normal short name: FPM Normal
...@@ -15,18 +15,14 @@ card dpi: 150 ...@@ -15,18 +15,14 @@ card dpi: 150
############################################################## Extra scripts ############################################################## Extra scripts
init script: init script:
# Load blend scripts for hybrids/multicolors
include file: magic-blends.mse-include/blend-scripts
green_template := { green_template := {
if input == "g" then ( if input == "g" then (
if styling.green_style == "light" then "lg" if styling.green_style == "light" then "lg"
else "g" else "g"
) else input ) else input
} }
template := { green_template() + "{type}.jpg" }
card_template := { green_template() + "card.jpg" } land_template := { (if input == "a" then "c" else green_template()) + "l{type}.jpg" }
land_template := { green_template() + "lcard.jpg" }
# Use the normal tap symbol # Use the normal tap symbol
mana_t := { mana_t := {
...@@ -38,15 +34,9 @@ init script: ...@@ -38,15 +34,9 @@ init script:
# Use guild mana symbols? # Use guild mana symbols?
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? # Only white cards use a black font
black_font_colors := filter_rule(match:"^(hybrid 2 color [^/]*/ )?(hybrid 3 color [^/]*/[^/]*/ )?(hybrid 4 color [^/]*/[^/]*/[^/]*/ )?(hybrid vertical [^/]*/ )?(hybrid 5 color horizontal [^/]*/[^/]*/[^/]*/[^/]*/ )?(white)") # TODO: also for some overlays involving white
white_font_colors := filter_rule(match:"^(hybrid 2 color overlay green / white|hybrid 2 color overlay red / white)") font_colors_white := { input != "w" }
font_color := {
if white_font_colors(input: card.card_color) != "" then rgb(255,255,255)
else if black_font_colors(input: card.card_color) != "" then rgb(0,0,0)
else rgb(255,255,255)
}
############################################################## Extra style options ############################################################## Extra style options
...@@ -127,7 +117,7 @@ card style: ...@@ -127,7 +117,7 @@ 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:
...@@ -291,7 +281,7 @@ card style: ...@@ -291,7 +281,7 @@ card style:
font: font:
name: MPlantin-Italic name: MPlantin-Italic
size: 8 size: 8
color: { font_color() } color: { font_color(card.card_color) }
symbol font: symbol font:
name: magic-paintbrush name: magic-paintbrush
size: 14 size: 14
...@@ -306,7 +296,7 @@ card style: ...@@ -306,7 +296,7 @@ card style:
font: font:
name: MPlantin name: MPlantin
size: 7 size: 7
color: { font_color() } color: { font_color(card.card_color) }
############################################################## Extra card fields ############################################################## Extra card fields
......
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