38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
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
|