Update style

This commit is contained in:
cajun
2025-10-11 21:17:37 -05:00
parent de2d65a0f3
commit 73039a3d3f

View File

@@ -201,6 +201,7 @@ init script:
is_crowned := { styling.legend_crown == "yes" or (styling.legend_crown == "if legendary" and contains(card.super_type, match:"Legendary")) }
is_pinlined := { styling.pinlines }
is_backdrop := { styling.pinlines or styling.smaller_backdrop }
chop_top := { split := split_comma(styling.chop_textbox); if length(split) > 0 and split.0 != "" and split.0 != "-" then clamp(to_int(split.0), minimum: -300, maximum: 250) else 0 }
chop_bottom := { split := split_comma(styling.chop_textbox); if length(split) > 1 and split.1 != "" and split.1 != "-" then clamp(to_int(split.1), minimum: -300, maximum: 250) else 0 }
@@ -227,9 +228,9 @@ init script:
else 1.0
}
textbox_left := { if is_pinlined() then 25 else 0 }
textbox_width := { if is_pinlined() then 325 else 375 }
textbox_height := { if is_pinlined() then 442 else 523 }
textbox_left := { if is_backdrop() then 25 else 0 }
textbox_width := { if is_backdrop() then 325 else 375 }
textbox_height := { if is_backdrop() then 442 else 523 }
textbox_image := { set_alpha(recolor_image("textbox.png", color: styling.textbox_color), alpha: get_alpha(styling.textbox_opacity_percentage, default: 0)) }
textbox_mask :=
{
@@ -267,6 +268,10 @@ styling field:
name: stretch art to whole card
description: Make the image span the whole card instead of just the visible part. Use this to help make popout effects.
initial: no
styling field:
type: text
name: chop textbox
description: Formatted as "X,Y,Z". Shrinks textbox X pixels from the top, Y from the bottom, and Z from the right.
styling field:
type: choice
name: center rule text
@@ -290,10 +295,6 @@ styling field:
type: text
name: textbox opacity percentage
description: Set the opacity percentage for the textbox background. Opaque is 100, transparent is 0, default is 0.
styling field:
type: text
name: chop textbox
description: Formatted as "X,Y,Z". Shrinks textbox X pixels from the top, Y from the bottom, and Z from the right.
styling field:
type: boolean
name: rounded textbox
@@ -320,6 +321,11 @@ styling field:
name: pinlines
description: Use pinlines on the side?
initial: no
styling field:
type: boolean
name: smaller backdrop
description: Use the smaller backdrop without pinlines?
initial: no
styling field:
type: boolean
name: basic land symbol