From 34cbfa9e41c08eba4751cd0cda0670963a199a28 Mon Sep 17 00:00:00 2001 From: pichoro Date: Thu, 5 Jul 2007 23:57:18 +0000 Subject: [PATCH] Further tweaking and bug removing in Modern Tokens. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@498 0fc631ac-6414-0410-93d0-97cfa31319b6 --- data/magic-new-token.mse-style/style | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/data/magic-new-token.mse-style/style b/data/magic-new-token.mse-style/style index 42a3c1c7..e792fc79 100644 --- a/data/magic-new-token.mse-style/style +++ b/data/magic-new-token.mse-style/style @@ -227,7 +227,8 @@ card style: size: 14 alignment: script: - if not contains(match:",", card.rule_text) and + if card_style.text.content_lines == 2 and + not contains(match:",", card.rule_text) and not contains(match: ".", card.rule_text) and not contains(match: ";", card.rule_text) and not contains(match: ":", card.rule_text) and @@ -267,7 +268,7 @@ card style: illustrator: left: 27 - top : 478 + top : 481 width: 246 height: 16 z index: 2 @@ -288,7 +289,7 @@ card style: z index: 2 font: name: MPlantin - size: 7.5 + size: 6.5 color: { font_color(card.card_color) } ############################################################## Extra card fields @@ -338,16 +339,22 @@ extra card style: image: { color_background(type:"pt" + text_shape(), base_hybrid:pt_hybrid) } name box: - left: { card_style.name.content_width * -0.5 + 187.5 } + left: + { if card_style.name.content_width > 275 then 50 + else card_style.name.content_width * -0.5 + 187.5 } top: 26 - width: { card_style.name.content_width } + width: + { if card_style.name.content_width > 275 then 275 + else card_style.name.content_width } height: 35 z index: 2 visible: { card.name != "" } render style: image image: name-mid.png name box left: - right: { card_style.name.content_width * -0.5 + 187.5 } + right: + { if card_style.name.content_width > 275 then 50 + else card_style.name.content_width * -0.5 + 187.5 } top: 26 width: 15 height: 35 @@ -356,7 +363,9 @@ extra card style: render style: image image: name-left.png name box right: - left: { card_style.name.content_width * 0.5 + 187.5 } + left: + { if card_style.name.content_width > 275 then 325 + else card_style.name.content_width * 0.5 + 187.5 } top: 26 width: 14 height: 35