[274/274] magic-modules rollout (#51)

Add Magic-Modules support to all frames
This commit is contained in:
cajun
2024-09-10 22:21:23 -05:00
committed by GitHub
parent 65bfc8fcd6
commit 6d617985ce
5491 changed files with 37088 additions and 66467 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