[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

@@ -449,7 +449,7 @@ card style:
needed := (255 + information_secondary_offset_pt_left_2() - if length(card.secondary_copyright_2) > 9 then 45 else if length(card.secondary_copyright_2) > 6 then 25 else if length(card.secondary_copyright_2) > 4 then 10 else 0) * face_coordinates_map(2).width/375 + face_coordinates_map(2).left
aligned := 351 * face_coordinates_map(2).width/375 + information_copyright_offset_right_2() - (if set.automatic_copyright then card_style.auto_copyright_2.content_width else card_style.copyright_2.content_width) + face_coordinates_map(2).left
left := max(min(needed, aligned), 211 * face_coordinates_map(2).width/375)
right := (if card.pt_2 != "" then 279 + information_secondary_offset_pt_left_2() else if card.loyalty_2 != "" then 295 + information_secondary_offset_pt_left_2() else 351) * face_coordinates_map(2).width/375 + face_coordinates_map(2).left + information_copyright_offset_right_2()
right := (if not information_secondary_shift_with_pt_2() then 351 else if card.pt_2 != "" then 279 + information_secondary_offset_pt_left_2() else if card.loyalty_2 != "" then 295 + information_secondary_offset_pt_left_2() else 351) * face_coordinates_map(2).width/375 + face_coordinates_map(2).left + information_copyright_offset_right_2()
right - left
)
height:
@@ -461,50 +461,11 @@ card style:
if information_disabled_2() then 0 else 10 * face_coordinates_map(2).height/523
)
visible: { not information_disabled_2() }
alignment: { if card.pt_2 != "" or card.loyalty_2 != "" then "middle left shrink-overflow" else "middle right shrink-overflow" }
alignment: { if (card.pt_2 != "" or card.loyalty_2 != "") and information_secondary_shift_with_pt_2() then "middle left shrink-overflow" else "middle right shrink-overflow" }
font:
name: MPlantin
size: { 6.5 * face_coordinates_map(2).height/(if face_is_rotated(2) then 375 else 523) }
color: { styling.copyright_text_color or else set.copyright_text_color }
weight: bold
z index: 900
the list icon 2:
angle: { if face_is_rotated(2) then -90 else 0 }
left:
script:
if face_is_rotated(2) then
(
face_coordinates_map(2).left - information_offset_top_2()
) else (
face_coordinates_map(2).left + information_codes_offset_left_2()
)
bottom:
script:
if face_is_rotated(2) then
(
face_coordinates_map(2).top + information_codes_offset_left_2()
) else (
face_coordinates_map(2).height + face_coordinates_map(2).top + information_offset_top_2()
)
width:
script:
if face_is_rotated(2) then
(
22 * face_coordinates_map(2).width/523
) else (
22 * face_coordinates_map(2).width/375
)
height:
script:
if face_is_rotated(2) then
(
33 * face_coordinates_map(2).height/375
) else (
33 * face_coordinates_map(2).height/523
)
visible: { not information_disabled_2() }
popup style: in place
include file: /magic.mse-game/information/menu_choice_images_the_list
render style: image
image: { the_list_icon_image(face: 2, field: 2) }
z index: 900
include file: /magic-modules.mse-include/information/list_field_dfc