Changed text_shape script to sort better.

Changed textbox font to not scale down so small.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@473 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
pichoro
2007-07-03 05:15:03 +00:00
parent 455ca3d6b9
commit 1850e1f53c
+8 -8
View File
@@ -26,12 +26,12 @@ init script:
# What should the textbox look like? # What should the textbox look like?
text_shape := { text_shape := {
if styling.one_textline_tokens if card.rule_text == ""
and card_style.text.content_lines <= 2 and card.flavor_text == "<i-flavor></i-flavor>" then "0" # no textbox
and card.flavor_text == "<i-flavor></i-flavor>" then "1" # small else if styling.one_textline_tokens
else if card.rule_text != "" or and card_style.text.content_lines == 2
number_of_items(in:"" + card.flavor_text) > 21 then "2" # large and card.flavor_text == "<i-flavor></i-flavor>" then "1" # small textbox
else "0" # none else "2" # large textbox
} }
suffix := "" suffix := ""
@@ -152,7 +152,7 @@ card style:
top: top:
{ if text_shape() == "1" then 414 { if text_shape() == "1" then 414
else if text_shape() == "2" then 350 else if text_shape() == "2" then 350
else 433 } else 430 }
width: 286 width: 286
height: 20 height: 20
alignment: top shrink-overflow alignment: top shrink-overflow
@@ -199,7 +199,7 @@ card style:
name: MPlantin name: MPlantin
italic name: MPlantin-Italic italic name: MPlantin-Italic
size: 15 size: 15
scale down to: 6 scale down to: 15
color: rgb(0,0,0) color: rgb(0,0,0)
symbol font: symbol font:
name: name: