AFR Update and sorting

This commit is contained in:
CajunAvenger
2021-07-09 13:48:12 -05:00
parent eda330eee8
commit 946e8534b1
1673 changed files with 5365 additions and 6505 deletions

View File

@@ -59,10 +59,7 @@ init script:
# Is the card a promo card?
is_promo := { styling.promo }
shrink_type := {if styling.shrink_typeline_text != "" then to_int(styling.shrink_typeline_text) else 0 }
shrink_name := {if styling.shrink_name_text != "" then to_int(styling.shrink_name_text) else 0 }
top_box_font_cap := {if styling.top_box_font_cap != "" then to_int(styling.top_box_font_cap) else 0 }
# Declare the card shape.
card_shape := { "leveler" }
@@ -86,27 +83,7 @@ set info style:
styling field:
type: text
name: level label
description: Controls the level label font size.
styling field:
type: text
name: shrink name text
description: Reduces the name text N points.
styling field:
type: text
name: shrink typeline text
description: Reduces the typeline text N points.
styling field:
type: text
name: top box font cap
description: Controls the top text box font size N points.
styling field:
type: text
name: level fontsize top
description: Controls the level box font size.
styling field:
type: text
name: level fontsize bottom
description: Controls the level box font size.
description: Should the level indicator say something other than "LEVEL"?
styling field:
type: boolean
name: use holofoil stamps
@@ -226,13 +203,13 @@ card style:
left: { if card.card_symbol=="none" then 30 else 50 }
top: 30
right: { 341 - card_style.casting_cost.content_width }
height: { 23 - (0.5 * shrink_name()) }
height: 23
alignment: bottom shrink-overflow
padding bottom: 0
z index: 1
font:
name: Beleren Bold
size: { 16 - shrink_name() }
size: 16
color: black
casting cost:
right: 346
@@ -279,15 +256,15 @@ card style:
image: { card_identity() }
type:
left: { if has_identity() then "52" else "32" }
top: {296 + shrink_type() }
top: 296
width: { (if has_identity() then "290" else "310") - max(22,card_style.rarity.content_width) }
height: { 20 - shrink_type() }
height: 20
alignment: top shrink-overflow
z index: 1
padding top: 2
font:
name: Beleren Bold
size: { 13 - shrink_type() }
size: 13
color: black
separator color: red
rarity:
@@ -322,12 +299,12 @@ card style:
font:
name: MPlantin
italic name: MPlantin-Italic
size: { 14 - top_box_font_cap() }
size: 14
scale down to: 6
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { 14 - top_box_font_cap() }
size: 14
alignment:
script:
if (styling.center_text == "short text only" and
@@ -353,12 +330,12 @@ card style:
font:
name: MPlantin
italic name: MPlantin-Italic
size: { if styling.level_fontsize_top == "" then 14 else styling.level_fontsize_top }
size: 14
scale down to: 6
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.level_fontsize_top == "" then 14 else styling.level_fontsize_top }
size: 14
alignment:
script:
if (styling.center_text == "short text only" and
@@ -384,12 +361,12 @@ card style:
font:
name: MPlantin
italic name: MPlantin-Italic
size: { if styling.level_fontsize_bottom == "" then 14 else styling.level_fontsize_bottom }
size: 14
scale down to: 6
color: black
symbol font:
name: { styling.text_box_mana_symbols }
size: { if styling.level_fontsize_bottom == "" then 11 else styling.level_fontsize_bottom }
size: 14
alignment:
script:
if (styling.center_text == "short text only" and