LCI Keyword/Type Update

Fixes #17
This commit is contained in:
cajun
2023-11-04 19:25:12 -05:00
parent 000616eb1c
commit df7fbdef1b
6 changed files with 504 additions and 130 deletions

View File

@@ -275,6 +275,13 @@ init script:
white_text := {is_full_art() or is_fnm() or is_inverted()}
rare_width := {
cw := card_style.rarity.content_width
cw := if cw > 44 then (if set.print_fix != "" then set.print_fix else 22) else if cw < 22 then 22 else cw
if card_style.rarity.width == 0 then 0 else cw
}
use_flash_dot := {false}
############################################################## Set info fields
set info style:
@@ -472,6 +479,7 @@ styling field:
choice: always
choice: short text only
choice: never
choice: right align
initial: never
styling field:
type: boolean
@@ -623,7 +631,7 @@ card style:
type:
left: { if is_map() then 85 else (if use_flash_dot() then 3 else 0) + if is_season() then (if styling.color_indicator_dot then 64 else 44)+(if is_clear() then 4 else 0) else (if styling.color_indicator_dot then 52 else 32) + (if is_clear() then 4 else 0) }
top: { (if is_map() then 297.5 else if is_clear() then 294 else if is_thbland() then 444 else if is_full_art() then 329 else 296) + shrink_type() }
width: { if is_map() then 205 else (if styling.color_indicator_dot then "290" else "310") - (if card_style.rarity.width == 0 then 0 else max(22,card_style.rarity.content_width)) - (if is_season() then 12 else 0) }
width: { if is_map() then 205 else (if styling.color_indicator_dot then "290" else "310") - rare_width() - (if is_season() then 12 else 0) }
height: { (if is_map() then 18 else 20) - shrink_type() }
alignment: { if is_map() then "center top shrink-overflow" else "top shrink-overflow"}
z index: 5
@@ -709,6 +717,7 @@ card style:
card_style.text.content_lines <= 2) or
styling.center_text == "always"
then "middle center"
else if styling.center_text == "right align" then "middle right"
else "middle left"
z index: 4
padding left: 6