Added color-defining CDA recognition.

Added "always center" option, and added centering controls to all styles


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@552 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2007-07-11 00:01:04 +00:00
parent 62d62fa6c8
commit 2c15aa979d
16 changed files with 367 additions and 71 deletions
+27 -3
View File
@@ -1,4 +1,4 @@
mse version: 0.3.4
mse version: 0.3.4
game: magic
full name: Magic Old Split Cards
short name: Old Splits
@@ -71,6 +71,14 @@ styling field:
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 style:
use guild mana symbols:
@@ -274,7 +282,15 @@ card style:
then "magic-mana-large"
else "magic-mana-small"
size: 14
alignment: middle left
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: 2
padding top: 2
@@ -302,7 +318,15 @@ card style:
then "magic-mana-large"
else "magic-mana-small"
size: 14
alignment: middle left
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: 2
padding top: 2