[274/274] magic-modules rollout (#51)
Add Magic-Modules support to all frames
This commit is contained in:
@@ -305,9 +305,9 @@ card style:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
if card.additional_credit_brush == "none" or (not set.adaptive_language_height) then 0 else max(50 * face_coordinates_map(1).width/523, card_style.additional_credit.content_width + 10 * face_coordinates_map(1).width/523)
|
||||
if card.additional_credit_brush == "none" and not set.adaptive_language_height then 0 else max(50 * face_coordinates_map(1).width/523, card_style.additional_credit.content_width + 10 * face_coordinates_map(1).width/523)
|
||||
) else (
|
||||
if card.additional_credit_brush == "none" or (not set.adaptive_language_height) then 0 else max(50 * face_coordinates_map(1).width/375, card_style.additional_credit.content_width + 10 * face_coordinates_map(1).width/375)
|
||||
if card.additional_credit_brush == "none" and not set.adaptive_language_height then 0 else max(50 * face_coordinates_map(1).width/375, card_style.additional_credit.content_width + 10 * face_coordinates_map(1).width/375)
|
||||
)
|
||||
height:
|
||||
script:
|
||||
@@ -697,7 +697,7 @@ card style:
|
||||
(
|
||||
351 * face_coordinates_map(1).height/375 + face_coordinates_map(1).top + information_copyright_offset_right_1()
|
||||
) else (
|
||||
(if card.pt != "" or card.loyalty != "" then 502 + information_copyright_offset_pt_top_1() else if card.secondary_copyright != "" then 500 else 490) * face_coordinates_map(1).height/523 +
|
||||
(if information_secondary_shift_with_pt_1() and (card.pt != "" or card.loyalty != "") then 502 + information_copyright_offset_pt_top_1() else if card.secondary_copyright != "" then 500 else 490) * face_coordinates_map(1).height/523 +
|
||||
face_coordinates_map(1).top + information_offset_top_1()
|
||||
)
|
||||
width:
|
||||
@@ -740,7 +740,7 @@ card style:
|
||||
(
|
||||
351 * face_coordinates_map(1).height/375 + face_coordinates_map(1).top + information_copyright_offset_right_1()
|
||||
) else (
|
||||
(if card.pt != "" or card.loyalty != "" then 502 + information_copyright_offset_pt_top_1() else if card.secondary_copyright != "" then 500 else 490) * face_coordinates_map(1).height/523 + face_coordinates_map(1).top + information_offset_top_1()
|
||||
(if information_secondary_shift_with_pt_1() and (card.pt != "" or card.loyalty != "") then 502 + information_copyright_offset_pt_top_1() else if card.secondary_copyright != "" then 500 else 490) * face_coordinates_map(1).height/523 + face_coordinates_map(1).top + information_offset_top_1()
|
||||
)
|
||||
width:
|
||||
script:
|
||||
@@ -795,7 +795,7 @@ card style:
|
||||
needed := (255 + information_secondary_offset_pt_left_1() - if length(card.secondary_copyright) > 9 then 45 else if length(card.secondary_copyright) > 6 then 25 else if length(card.secondary_copyright) > 4 then 10 else 0) * face_coordinates_map(1).width/375 + face_coordinates_map(1).left
|
||||
aligned := 351 * face_coordinates_map(1).width/375 + information_copyright_offset_right_1() - (if set.automatic_copyright then card_style.auto_copyright.content_width else card_style.copyright.content_width) + face_coordinates_map(1).left
|
||||
left := max(min(needed, aligned), 211 * face_coordinates_map(1).width/375)
|
||||
right := (if card.pt != "" then 279 + information_secondary_offset_pt_left_1() else if card.loyalty != "" then 295 + information_secondary_offset_pt_left_1() else 351) * face_coordinates_map(1).width/375 + face_coordinates_map(1).top + information_copyright_offset_right_1()
|
||||
right := (if not information_secondary_shift_with_pt_1() then 351 else if card.pt != "" then 279 + information_secondary_offset_pt_left_1() else if card.loyalty != "" then 295 + information_secondary_offset_pt_left_1() else 351) * face_coordinates_map(1).width/375 + face_coordinates_map(1).top + information_copyright_offset_right_1()
|
||||
right - left
|
||||
)
|
||||
height:
|
||||
@@ -807,50 +807,11 @@ card style:
|
||||
if information_disabled_1() then 0 else 10 * face_coordinates_map(1).height/523
|
||||
)
|
||||
visible: { not information_disabled_1() }
|
||||
alignment: { if card.pt != "" or card.loyalty != "" then "middle left shrink-overflow" else "middle right shrink-overflow" }
|
||||
alignment: { if (card.pt != "" or card.loyalty != "") and information_secondary_shift_with_pt_1() then "middle left shrink-overflow" else "middle right shrink-overflow" }
|
||||
font:
|
||||
name: MPlantin
|
||||
size: { 6.5 * face_coordinates_map(1).height/(if face_is_rotated(1) then 375 else 523) }
|
||||
color: { styling.copyright_text_color or else set.copyright_text_color }
|
||||
weight: bold
|
||||
z index: 900
|
||||
the list icon:
|
||||
angle: { if face_is_rotated(1) then -90 else 0 }
|
||||
left:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).left - information_offset_top_1()
|
||||
) else (
|
||||
face_coordinates_map(1).left + information_codes_offset_left_1()
|
||||
)
|
||||
bottom:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).top + information_codes_offset_left_1()
|
||||
) else (
|
||||
face_coordinates_map(1).height + face_coordinates_map(1).top + information_offset_top_1()
|
||||
)
|
||||
width:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
22 * face_coordinates_map(1).width/523
|
||||
) else (
|
||||
22 * face_coordinates_map(1).width/375
|
||||
)
|
||||
height:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
33 * face_coordinates_map(1).height/375
|
||||
) else (
|
||||
33 * face_coordinates_map(1).height/523
|
||||
)
|
||||
visible: { not information_disabled_1() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/information/menu_choice_images_the_list
|
||||
render style: image
|
||||
image: { the_list_icon_image(face: 1, field: 1) }
|
||||
z index: 900
|
||||
include file: /magic-modules.mse-include/information/list_field
|
||||
@@ -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
|
||||
@@ -449,7 +449,7 @@ card style:
|
||||
needed := (255 + information_secondary_offset_pt_left_3() - if length(card.secondary_copyright_3) > 9 then 45 else if length(card.secondary_copyright_3) > 6 then 25 else if length(card.secondary_copyright_3) > 4 then 10 else 0) * face_coordinates_map(3).width/375 + face_coordinates_map(3).left
|
||||
aligned := 351 * face_coordinates_map(3).width/375 + information_copyright_offset_right_3() - (if set.automatic_copyright then card_style.auto_copyright_3.content_width else card_style.copyright_3.content_width) + face_coordinates_map(3).left
|
||||
left := max(min(needed, aligned), 211 * face_coordinates_map(3).width/375)
|
||||
right := (if card.pt_3 != "" then 279 + information_secondary_offset_pt_left_3() else if card.loyalty_3 != "" then 295 + information_secondary_offset_pt_left_3() else 351) * face_coordinates_map(3).width/375 + face_coordinates_map(3).left + information_copyright_offset_right_3()
|
||||
right := (if not information_secondary_shift_with_pt_3() then 351 else if card.pt_3 != "" then 279 + information_secondary_offset_pt_left_3() else if card.loyalty_3 != "" then 295 + information_secondary_offset_pt_left_3() else 351) * face_coordinates_map(3).width/375 + face_coordinates_map(3).left + information_copyright_offset_right_3()
|
||||
right - left
|
||||
)
|
||||
height:
|
||||
@@ -461,7 +461,7 @@ card style:
|
||||
if information_disabled_3() then 0 else 10 * face_coordinates_map(3).height/523
|
||||
)
|
||||
visible: { not information_disabled_3() }
|
||||
alignment: { if card.pt_3 != "" or card.loyalty_3 != "" then "middle left shrink-overflow" else "middle right shrink-overflow" }
|
||||
alignment: { if (card.pt_3 != "" or card.loyalty_3 != "") and information_secondary_shift_with_pt_3() then "middle left shrink-overflow" else "middle right shrink-overflow" }
|
||||
font:
|
||||
name: MPlantin
|
||||
size: { 6.5 * face_coordinates_map(3).height/(if face_is_rotated(3) then 375 else 523) }
|
||||
|
||||
BIN
data/magic-modules.mse-include/information/list_dot.png
Normal file
BIN
data/magic-modules.mse-include/information/list_dot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 885 B |
41
data/magic-modules.mse-include/information/list_field
Normal file
41
data/magic-modules.mse-include/information/list_field
Normal file
@@ -0,0 +1,41 @@
|
||||
card style:
|
||||
the list icon:
|
||||
angle: { if face_is_rotated(1) then -90 else 0 }
|
||||
left:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).left - information_offset_top_1()
|
||||
) else (
|
||||
face_coordinates_map(1).left + information_codes_offset_left_1()
|
||||
)
|
||||
bottom:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).top + information_codes_offset_left_1()
|
||||
) else (
|
||||
face_coordinates_map(1).height + face_coordinates_map(1).top + information_offset_top_1()
|
||||
)
|
||||
width:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
22 * face_coordinates_map(1).width/523
|
||||
) else (
|
||||
22 * face_coordinates_map(1).width/375
|
||||
)
|
||||
height:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
33 * face_coordinates_map(1).height/375
|
||||
) else (
|
||||
33 * face_coordinates_map(1).height/523
|
||||
)
|
||||
visible: { not information_disabled_1() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/information/menu_choice_images_the_list
|
||||
render style: image
|
||||
image: { the_list_icon_image(face: 1, field: 1) }
|
||||
z index: 900
|
||||
41
data/magic-modules.mse-include/information/list_field_dfc
Normal file
41
data/magic-modules.mse-include/information/list_field_dfc
Normal file
@@ -0,0 +1,41 @@
|
||||
card style:
|
||||
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
|
||||
48
data/magic-modules.mse-include/information/the_list_old
Normal file
48
data/magic-modules.mse-include/information/the_list_old
Normal file
@@ -0,0 +1,48 @@
|
||||
include file: /magic-modules.mse-include/information/list_field
|
||||
extra card field:
|
||||
type: choice
|
||||
name: the list dot
|
||||
choice: dot
|
||||
editable: false
|
||||
save value: false
|
||||
extra card style:
|
||||
the list dot:
|
||||
angle: { if face_is_rotated(1) then -90 else 0 }
|
||||
left:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).left - information_offset_top_1()
|
||||
) else (
|
||||
face_coordinates_map(1).left + information_codes_offset_left_1()
|
||||
)
|
||||
bottom:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
face_coordinates_map(1).top + information_codes_offset_left_1()
|
||||
) else (
|
||||
face_coordinates_map(1).height + face_coordinates_map(1).top + information_offset_top_1()
|
||||
)
|
||||
width:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
30 * face_coordinates_map(1).width/523
|
||||
) else (
|
||||
30 * face_coordinates_map(1).width/375
|
||||
)
|
||||
height:
|
||||
script:
|
||||
if face_is_rotated(1) then
|
||||
(
|
||||
40 * face_coordinates_map(1).height/375
|
||||
) else (
|
||||
40 * face_coordinates_map(1).height/523
|
||||
)
|
||||
visible: { not information_disabled_1() }
|
||||
popup style: in place
|
||||
include file: /magic.mse-game/information/menu_choice_images_the_list
|
||||
render style: image
|
||||
image: { the_list_dot_image(field: 1) }
|
||||
z index: 510
|
||||
49
data/magic-modules.mse-include/information/the_list_old_dfc
Normal file
49
data/magic-modules.mse-include/information/the_list_old_dfc
Normal file
@@ -0,0 +1,49 @@
|
||||
include file: /magic-modules.mse-include/information/the_list_old
|
||||
include file: /magic-modules.mse-include/information/list_field_dfc
|
||||
extra card field:
|
||||
type: choice
|
||||
name: the list dot 2
|
||||
choice: dot
|
||||
editable: false
|
||||
save value: false
|
||||
extra card style:
|
||||
the list dot 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
|
||||
(
|
||||
30 * face_coordinates_map(2).width/523
|
||||
) else (
|
||||
30 * face_coordinates_map(2).width/375
|
||||
)
|
||||
height:
|
||||
script:
|
||||
if face_is_rotated(2) then
|
||||
(
|
||||
40 * face_coordinates_map(2).height/375
|
||||
) else (
|
||||
40 * 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_dot_image(field: 2) }
|
||||
z index: 510
|
||||
Reference in New Issue
Block a user