---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2024-10-01 08:34:46 -05:00
committed by GitHub
parent d1b3bdac74
commit 5016c6efa2
32836 changed files with 65408 additions and 48862 deletions

View File

@@ -0,0 +1,37 @@
extra card field:
type: choice
name: stamp backing
script: card.card_color
editable: false
save value: false
extra card style:
stamp backing:
angle: { if face_is_rotated(1) then -90 else 0 }
left:
script:
width := face_coordinates_map(1).width
height := face_coordinates_map(1).height
if width > height then face_coordinates_map(1).left + 52 * width/523 + card_stamp_offset_left_1()
else face_coordinates_map(1).left + 159 * width/375 + card_stamp_offset_left_1()
top:
script:
width := face_coordinates_map(1).width
height := face_coordinates_map(1).height
if width > height then face_coordinates_map(1).top + 159 * height/375 + card_stamp_offset_top_1()
else face_coordinates_map(1).top + 471 * height/523 + card_stamp_offset_top_1()
width:
script:
width := face_coordinates_map(1).width
height := face_coordinates_map(1).height
if width > height then 56 * width/523 + card_stamp_offset_width_1()
else 56 * width/375 + card_stamp_offset_width_1()
height:
script:
width := face_coordinates_map(1).width
height := face_coordinates_map(1).height
if width > height then 26 * height/375 + card_stamp_offset_height_1()
else 26 * height/523 + card_stamp_offset_height_1()
visible: { card.card_stamp != "none" and not card_stamp_disabled_1() }
render style: image
image: { if stamp_shape() == "triangle" then module_ubstamp() else module_stamp() }
z index: 850