mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user