Commit 0581dc19 authored by pichoro's avatar pichoro

One textline versions of new tokens added. Still with errors though, details in style file.

parent c20bce4b
...@@ -13,6 +13,10 @@ card width: 375 ...@@ -13,6 +13,10 @@ card width: 375
card height: 523 card height: 523
card dpi: 150 card dpi: 150
#error list
#error about mask size not matching image size when dealing with p/t boxes
#error about mask size not matching image size when dealing with name boxes
#templates do not change properly to one textline versions
##############################P############################### Extra scripts ##############################P############################### Extra scripts
init script: init script:
...@@ -25,7 +29,11 @@ init script: ...@@ -25,7 +29,11 @@ init script:
# We have no land templates # We have no land templates
# Which artifact template should be used? # Which artifact template should be used?
text_sensor := { if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then "2" text_sensor := {
if styling.one_textline_tokens
and card_style.rule_text.content_lines == 1
and card.flavor_text == "<i-flavor></i-flavor>" then "1"
else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then "2"
else "" } else "" }
land_to_artifact := { land_to_artifact := {
...@@ -42,7 +50,10 @@ init script: ...@@ -42,7 +50,10 @@ init script:
if mask_hybrid_with_land() then if mask_hybrid_with_land() then
masked_blend( masked_blend(
mask: ( mask: (
if card.rule_text != "" then "2hybrid_blend_nt.png" if styling.one_textline_tokens
and card_style.rule_text.content_lines == 1
and card.flavor_text == "<i-flavor></i-flavor>" then "1hybrid_blend_nt.png"
else if card.rule_text != "" then "2hybrid_blend_nt.png"
else "hybrid_blend_nt.png" ), else "hybrid_blend_nt.png" ),
dark: land_template(""), dark: land_template(""),
light: input, light: input,
...@@ -52,7 +63,10 @@ init script: ...@@ -52,7 +63,10 @@ init script:
multi_hybrid := { multi_hybrid := {
masked_blend( masked_blend(
mask: ( mask: (
if card.rule_text != "" then "2multicolor_dual_blend.png" if styling.one_textline_tokens
and card_style.rule_text.content_lines == 1
and card.flavor_text == "<i-flavor></i-flavor>" then "1multicolor_dual_blend.png"
else if card.rule_text != "" then "2multicolor_dual_blend.png"
else "multicolor_dual_blend.png" ), else "multicolor_dual_blend.png" ),
dark: ( dark: (
if card.rule_text != "" then "2mcard.jpg" if card.rule_text != "" then "2mcard.jpg"
...@@ -66,7 +80,11 @@ init script: ...@@ -66,7 +80,11 @@ init script:
land_hybrid_pt := { text_sensor() + "cpt.jpg" } land_hybrid_pt := { text_sensor() + "cpt.jpg" }
# Use the normal tap symbol # Use the normal tap symbol
small_mana_t := "mana_t.png" mana_t := {
if styling.tap_symbol == "old" then "old"
else if styling.tap_symbol == "diagonal T" then "older"
else "new"
}
# Use guild mana symbols? # Use guild mana symbols?
guild_mana := { styling.use_guild_mana_symbols } guild_mana := { styling.use_guild_mana_symbols }
...@@ -92,6 +110,11 @@ styling field: ...@@ -92,6 +110,11 @@ styling field:
name: popup mana symbols name: popup mana symbols
description: Use the symbols of the casting cost line inside the text box as well description: Use the symbols of the casting cost line inside the text box as well
initial: no initial: no
styling field:
type: boolean
name: one textline tokens
description: Should token frames with a single line for text be enabled?
initial: no
styling field: styling field:
type: choice type: choice
name: tap symbol name: tap symbol
...@@ -200,20 +223,24 @@ card style: ...@@ -200,20 +223,24 @@ card style:
left: 30 left: 30
top: top:
script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then
58 58
else else
59 59
width: 315 width: 315
height: height:
script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script: if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then
288 349
else else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then
366 288
else
366
mask: mask:
script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script: if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then
"2imagemask.png" "1imagemask.png"
else else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then
"imagemask.png" "2imagemask.png"
else
"imagemask.png"
z index: 1 z index: 1
...@@ -222,7 +249,9 @@ card style: ...@@ -222,7 +249,9 @@ card style:
type: type:
left: 35 left: 35
top: top:
script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script: if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then
414
else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then
350 350
else else
433 433
...@@ -242,7 +271,9 @@ card style: ...@@ -242,7 +271,9 @@ card style:
rarity: rarity:
left: 320 left: 320
top: top:
script: if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script: if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then
415
else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then
351 351
else else
432 432
...@@ -262,12 +293,15 @@ card style: ...@@ -262,12 +293,15 @@ card style:
text: text:
left: 31 left: 31
top: top:
if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then script:
388 if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then 444
else else if card.rule_text != "" or number_of_items(in:"" + card.flavor_text) > 21 then 388
300 else 300
width: 311 width: 311
height: 80 height:
script:
if styling.one_textline_tokens and card_style.rule_text.content_lines == 1and card.flavor_text == "<i-flavor></i-flavor>" then 22
else 80
font: font:
name: MPlantin name: MPlantin
italic name: MPlantin-Italic italic name: MPlantin-Italic
...@@ -289,7 +323,7 @@ card style: ...@@ -289,7 +323,7 @@ card style:
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
card.flavor_text == "<i-flavor></i-flavor>" card.flavor_text == "<i-flavor></i-flavor>"
then "middle center" then "middle center"
else "middle left" else "middle left"
z index: 2 z index: 2
......
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