Files
magic-set-editor-fork/data/magic-modules.mse-include/stamps/stamp_back_tfc
cajun 5016c6efa2 3.0.0 (#6)
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-10-01 08:34:46 -05:00

39 lines
1.5 KiB
Plaintext

include file: /magic-modules.mse-include/stamps/stamp_back_dfc
extra card field:
type: choice
name: stamp backing 3
script: card.card_color_3
editable: false
save value: false
extra card style:
stamp backing 3:
angle: { if face_is_rotated(1) then -90 else 0 }
left:
script:
width := face_coordinates_map(3).width
height := face_coordinates_map(3).height
if width > height then face_coordinates_map(3).left + 7 * width/523 + card_stamp_offset_left_3()
else face_coordinates_map(3).left + 159 * width/375 + card_stamp_offset_left_3()
top:
script:
width := face_coordinates_map(3).width
height := face_coordinates_map(3).height
if width > height then face_coordinates_map(3).top + 164 * height/375 + card_stamp_offset_top_3()
else face_coordinates_map(3).top + 471 * height/523 + card_stamp_offset_top_3()
width:
script:
width := face_coordinates_map(3).width
height := face_coordinates_map(3).height
if width > height then 56 * width/523 + card_stamp_offset_width_3()
else 56 * width/375 + card_stamp_offset_width_3()
height:
script:
width := face_coordinates_map(3).width
height := face_coordinates_map(3).height
if width > height then 26 * height/375 + card_stamp_offset_height_3()
else 26 * height/523 + card_stamp_offset_height_3()
visible: { card.card_stamp_3 != "none" and not card_stamp_disabled_3() }
render style: image
image: { if stamp_shape(field:3) == "triangle" then module_ubstamp() else module_stamp() }
z index: 850