popunder art, cleanup

This commit is contained in:
cajun
2024-09-26 18:15:16 -05:00
parent 8abb9df8ea
commit 290a21c59a
4 changed files with 294 additions and 41 deletions

View File

@@ -305,7 +305,12 @@ init script:
(if use_full_art() then "_mythic" + (if is_stamped() then "_stamp" else "") else "") + ".png"
}
card_stamp_offset_top_1 := {if stamp_shape() == "triangle" then -3 else 0}
popout_left := { popout_coord(0, field:styling.popout_image_style or else "") }
popout_top := { popout_coord(1, field:styling.popout_image_style or else "") }
popout_width := { popout_coord(2, field:styling.popout_image_style or else "") }
popout_height := { popout_coord(3, field:styling.popout_image_style or else "") }
popout_angle := { popout_coord(4, field:styling.popout_image_style or else "", lim:4) }
use_popunder := { chosen(styling.other_options, choice:"popunder art") }
############################################################## Set info fields
set info style:
symbol:
@@ -373,6 +378,7 @@ styling field:
choice: adventure
choice: reversed adventure
choice: pride pinlines
choice: popunder art
initial: un-indent nonloyalty abilities
styling field:
type: text
@@ -549,11 +555,20 @@ card style:
z index: 100
mask: {if contains(styling.custom_mask, match:".png") then "" else "guidelines/" + (if is_clear() then "clear_" else if is_normal_size() or use_full_art() then "" else "wide_") + (if not force_short() and max_level() > 3 or force_tall() then "four_" else "") + (if is_clear() then "frame_mask" else if use_full_art() then (if is_stamped() then "mythic_image_rare_mask" else "mythic_mask") else "frame_mask") + ".png"}
image 2:
left: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).0 else "0"}
top: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).1 else "0"}
width: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).2 else "0"}
height: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).3 else "0"}
z index: 1010
left: { popout_left() }
top: { popout_top() }
width: { if use_popunder() then 0 else popout_width() }
height: { popout_height() }
angle: { popout_angle() }
z index: 1010
mainframe image:
left: { popout_left() }
top: { popout_top() }
width: { if use_popunder() then popout_width() else 0 }
height: { popout_height() }
angle: { popout_angle() }
z index: 899
############################# Card type
indicator:
left: 30