Added invertedcommon styling choice to magic-extendedart, magic-future, and magic-future-textless.

More font color cleanup in futureshifts.
Added some scripting to magic-future; working towards scripting type symbol.
Big Yu-Gi-Oh update courtesy of artfreakwiu.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@667 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
pichoro
2007-09-03 05:09:19 +00:00
parent 54fdc78858
commit f965fb36e2
27 changed files with 403 additions and 133 deletions
+92 -17
View File
@@ -103,10 +103,56 @@ init script:
)
}
paintbrush_font:= { if contains(card.card_color, match:"land") then "white"
paintbrush_color:= { if contains(card.card_color, match:"land") then "white"
else if contains(card.card_color, match:"artifact") or contains(card.card_color, match:"multicolor") or contains(card.card_color, match:"white") then "black"
else "white"
}
typesymbol_color:= { if contains(card.card_color, match:"artifact") then "black"
else if card.card_color == "multicolor" then "black"
else if card.card_color == "white" then "black"
else if card.card_color == "land" then (
if contains(card.card_color, match:"black") or
contains(card.card_color, match:"blue") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then "white"
else "black"
) else "white"
}
#Use of "Enchant" rather than "Enchantment" below is intentional, to allow functionality for users who wish to use "Enchant Creature" and the like.
typesymbol_type:= { if contains(card.type, match:"Instant") then "instant"
else if contains(card.type, match:"Sorcery") then "sorcery"
else if contains(card.type, match:"Tribal") then "multitype"
else if contains(card.type, match:"Planeswalker") then "multitype"
else if contains(card.type, match:"Creature") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Enchant") then "creature"
else if contains(card.type, match:"Artifact") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Creature") and
not contains(card.type, match:"Enchant") then "artifact"
else if contains(card.type, match:"Land") and
not contains(card.type, match:"Creature") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Enchant") then "land"
else if contains(card.type, match:"Enchant") and
not contains(card.type, match:"Land") and
not contains(card.type, match:"Artifact") and
not contains(card.type, match:"Creature") then "enchantment"
else "multitype"
}
############################################################## Set info fields
set info style:
symbol:
variation:
name: invertedcommon
border radius: 0.10
fill type: solid
fill color: rgb(255,255,255)
border color: rgb(0,0,0)
############################################################## Extra style options
@@ -140,6 +186,11 @@ styling field:
choice: short text only
choice: never
initial: never
styling field:
type: boolean
name: inverted common symbol
description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: no
styling style:
use guild mana symbols:
@@ -196,13 +247,19 @@ card style:
size: 18
color:
script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0)
) else font_color(card.card_color)
casting cost:
@@ -254,13 +311,19 @@ card style:
size: 14
color:
script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0)
) else font_color(card.card_color)
separator color: rgb(128,128,128)
@@ -274,8 +337,14 @@ card style:
render style: image
choice images:
# Images based on the set symbol
basic land: script: symbol_variation(symbol: set.symbol, variation: "common")
common: script: symbol_variation(symbol: set.symbol, variation: "common")
basic land:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
common:
script:
if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
else symbol_variation(symbol: set.symbol, variation: "common")
uncommon: script: symbol_variation(symbol: set.symbol, variation: "uncommon")
rare: script: symbol_variation(symbol: set.symbol, variation: "rare")
special: script: symbol_variation(symbol: set.symbol, variation: "special")
@@ -341,13 +410,19 @@ card style:
weight: bold
color:
script:
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
if styling.grey_hybrid_name and contains(card.card_color, match:"land") and
contains(card.card_color, match:"horizontal") or
contains(card.card_color, match:"radial") or
contains(card.card_color, match:"vertical") and
not contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if contains(card.card_color, match:"land") and
contains(card.card_color, match:"multicolor") then rgb(0,0,0)
else if styling.grey_hybrid_name and contains(card.card_color, match:"hybrid") then rgb(0,0,0)
else if contains(card.card_color, match:"artifact") then (
if contains(card.card_color, match:"blue") or
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
contains(card.card_color, match:"black") or
contains(card.card_color, match:"red") or
contains(card.card_color, match:"green") then rgb(255,255,255)
else rgb(0,0,0)
) else font_color(card.card_color)
separator color: rgb(200,0,0)
@@ -432,7 +507,7 @@ extra card field:
extra card field:
type: choice
name: paintbrush
script: paintbrush_font(value)
script: paintbrush_color(value)
editable: false
choice: black
choice: white
@@ -487,7 +562,7 @@ extra card style:
black multitype: /magic-future-common.mse-include/multitype_black.png
white sorcery: /magic-future-common.mse-include/sorcery_white.png
black sorcery: /magic-future-common.mse-include/sorcery_black.png
paintbrush:
paintbrush
right: { ( if card.pt != "" then 275 else 338 ) - card_style.illustrator.content_width }
top : 476
width: 40