Commit 20087829 authored by pichoro's avatar pichoro

Further tweaking and bug removing in Modern Tokens.

parent a3fea319
...@@ -227,7 +227,8 @@ card style: ...@@ -227,7 +227,8 @@ card style:
size: 14 size: 14
alignment: alignment:
script: 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 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: ...@@ -267,7 +268,7 @@ card style:
illustrator: illustrator:
left: 27 left: 27
top : 478 top : 481
width: 246 width: 246
height: 16 height: 16
z index: 2 z index: 2
...@@ -288,7 +289,7 @@ card style: ...@@ -288,7 +289,7 @@ card style:
z index: 2 z index: 2
font: font:
name: MPlantin name: MPlantin
size: 7.5 size: 6.5
color: { font_color(card.card_color) } color: { font_color(card.card_color) }
############################################################## Extra card fields ############################################################## Extra card fields
...@@ -338,16 +339,22 @@ extra card style: ...@@ -338,16 +339,22 @@ extra card style:
image: { color_background(type:"pt" + text_shape(), base_hybrid:pt_hybrid) } image: { color_background(type:"pt" + text_shape(), base_hybrid:pt_hybrid) }
name box: 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 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 height: 35
z index: 2 z index: 2
visible: { card.name != "" } visible: { card.name != "" }
render style: image render style: image
image: name-mid.png image: name-mid.png
name box left: 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 top: 26
width: 15 width: 15
height: 35 height: 35
...@@ -356,7 +363,9 @@ extra card style: ...@@ -356,7 +363,9 @@ extra card style:
render style: image render style: image
image: name-left.png image: name-left.png
name box right: 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 top: 26
width: 14 width: 14
height: 35 height: 35
......
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