From cf3fbcbfd9cda7f77e1faeb1397455a672ff343f Mon Sep 17 00:00:00 2001 From: cajun <12363371+CajunAvenger@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:09:15 -0500 Subject: [PATCH] fixes for dfc classes --- data/magic-m15-mainframe-dfc.mse-style/style | 53 +++++++++++--------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/data/magic-m15-mainframe-dfc.mse-style/style b/data/magic-m15-mainframe-dfc.mse-style/style index 6cfb57f22..000864c78 100644 --- a/data/magic-m15-mainframe-dfc.mse-style/style +++ b/data/magic-m15-mainframe-dfc.mse-style/style @@ -1523,6 +1523,11 @@ init script: } flavor_bar_disabled_1 := { mainframe_walker() or a_saga() or not set.use_flavor_bar } flavor_bar_disabled_2 := { mainframe_walkerb() or b_saga() or not set.use_flavor_bar } + + is_blank := { + input == "" or input == zwsp + } + watermark_include := "/magic-modules.mse-include/watermarks" ############################################################## Set info fields set info style: @@ -2589,7 +2594,7 @@ card style: z index: 910 left: {if front_class() then 270 else if box_leveler() then 8 else if loy_leveler() then 14 else 21} top: {if front_class() then lev2()+4 else l3_center() - (if aug_leveler(2) then 4 else 2) - (if center_label(2) then 6 else 0) + arrow_offset(2)} - width: {if front_class() and card.level_2_text == "​" then 0 else if front_class() then 70 else if front_leveler() or card.level_2 != "" then (34 + (if box_leveler() then 30 else 0)) else 0} + width: {if front_class() and is_blank(card.level_2_text) then 0 else if front_class() then 70 else if front_leveler() or card.level_2 != "" then (34 + (if box_leveler() then 30 else 0)) else 0} height: {if front_class() then 20 else 22} alignment: {if front_class() then "center right" else "center middle shrink-overflow"} font: @@ -2606,7 +2611,7 @@ card style: z index: 910 left: {if front_class() then 270 else if box_leveler() then 8 else if loy_leveler() then 14 else 21} top: {if front_class() then lev3()+4 else l4_center() - (if aug_leveler(3) then 4 else 2) - (if center_label(3) then 6 else 0) + arrow_offset(3)} - width: {if front_class() and card.level_3_text == "​" then 0 else if front_class() then 70 else if front_leveler() or card.level_3 != "" then (34 + (if box_leveler() then 30 else 0)) else 0} + width: {if front_class() and is_blank(card.level_3_text) then 0 else if front_class() then 70 else if front_leveler() or card.level_3 != "" then (34 + (if box_leveler() then 30 else 0)) else 0} height: {if front_class() then 20 else 22} alignment: {if front_class() then "center right" else "center middle shrink-overflow"} font: @@ -2621,7 +2626,7 @@ card style: size: {if front_class() then 11 else 12 + if center_label(0) then 0.5 else 0} level 4: z index: 910 - width: {if front_class() and card.level_4_text == "" then 0 else 70} + width: {if front_class() and is_blank(card.level_4_text) then 0 else 70} top: {lev4()+4} height: {if not front_class() then 0 else 20} font: @@ -2654,7 +2659,7 @@ card style: left: {if back_class() then 647 else 377+ if box_leveler2() then 8 else if loy_leveler2() then 14 else 21} top: {if back_class() then lev2b()+4 else l6_center() - (if aug_leveler2(0) then 4 else 2) - (if center_label2(1) then 6 else 0) + arrow_offset2(1)} height: 22 - width: {if back_class() and card.level_6_text == "​" then 0 else if back_class() then 70 else if back_leveler() or card.level_6 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and is_blank(card.level_10_text) then 0 else if back_class() then 70 else if back_leveler() or card.level_6 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} alignment: {if back_class() then "center right" else "center middle shrink-overflow"} font: name: {if back_class() then "MPlantin" else "Beleren Bold"} @@ -2670,7 +2675,7 @@ card style: z index: 910 left: {if back_class() then 647 else 377+ if box_leveler2() then 8 else if loy_leveler2() then 14 else 21} top: {if back_class() then lev3b()+4 else l7_center() - (if aug_leveler2(0) then 4 else 2) - (if center_label2(2) then 6 else 0) + arrow_offset2(2)} - width: {if back_class() and card.level_7_text == "​" then 0 else if back_class() then 70 else if back_leveler() or card.level_7 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and is_blank(card.level_11_text) then 0 else if back_class() then 70 else if back_leveler() or card.level_7 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} height: 22 alignment: {if back_class() then "center right" else "center middle shrink-overflow"} font: @@ -2687,7 +2692,7 @@ card style: z index: 910 left: {if back_class() then 647 else 377+ if box_leveler2() then 8 else if loy_leveler2() then 14 else 21} top: {if back_class() then lev4b()+4 else l8_center() - (if aug_leveler2(0) then 4 else 2) - (if center_label2(3) then 6 else 0) + arrow_offset2(3)} - width: {if back_class() and card.level_8_text == "" then 0 else if back_class() then 70 else if back_leveler() or card.level_8 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and is_blank(card.level_12_text) then 0 else if back_class() then 70 else if back_leveler() or card.level_8 != "" then (34 + (if box_leveler2() then 30 else 0)) else 0} height: 22 alignment: {if back_class() then "center right" else "center middle shrink-overflow"} font: @@ -2703,7 +2708,7 @@ card style: ############################# Class costs level 17 text: left: 190 - width: {if not front_class() then 0 else if front_class() and card.level_2_text == "​" then 0 else 80} + width: {if not front_class() then 0 else if front_class() and is_blank(card.level_2_text) then 0 else 80} top: {lev2()+4} height: 20 z index: 910 @@ -2716,7 +2721,7 @@ card style: alignment: middle left level 18 text: left: 190 - width: {if not front_class() then 0 else if front_class() and card.level_3_text == "​" then 0 else 80} + width: {if not front_class() then 0 else if front_class() and is_blank(card.level_3_text) then 0 else 80} top: {lev3()+4} height: 20 z index: 910 @@ -2729,7 +2734,7 @@ card style: alignment: middle left level 19 text: left: 190 - width: {if not front_class() then 0 else if front_class() and card.level_4_text == "" then 0 else 80} + width: {if not front_class() then 0 else if front_class() and is_blank(card.level_4_text) then 0 else 80} top: {lev4()+4} height: 20 z index: 910 @@ -2742,7 +2747,7 @@ card style: alignment: middle left level 20 text: left: 567 - width: {if not back_class() then 0 else if back_class() and card.level_6_text == "​" then 0 else 80} + width: {if not back_class() then 0 else if back_class() and is_blank(card.level_10_text) then 0 else 80} top: {lev2b()+4} height: 20 z index: 910 @@ -2755,7 +2760,7 @@ card style: alignment: middle left level 21 text: left: 567 - width: {if not back_class() then 0 else if back_class() and card.level_7_text == "​" then 0 else 80} + width: {if not back_class() then 0 else if back_class() and is_blank(card.level_11_text) then 0 else 80} top: {lev3b()+4} height: 20 z index: 910 @@ -2768,7 +2773,7 @@ card style: alignment: middle left level 22 text: left: 567 - width: {if not back_class() then 0 else if back_class() and card.level_8_text == "" then 0 else 80} + width: {if not back_class() then 0 else if back_class() and is_blank(card.level_12_text)then 0 else 80} top: {lev4b()+4} height: 20 z index: 910 @@ -4128,7 +4133,7 @@ extra card style: linebreak 2: left: {if front_class() or front_case() then 188 else 30} top: {if front_class() or front_case() then lev2() else if split_12() == "" then 248 else split_12()-1} - width: {if front_class() or front_case() and card.level_2_text == "​" then 0 else 156} + width: {if front_class() or front_case() and is_blank(card.level_2_text) then 0 else 156} height: {if front_class() or front_case() then 25 else 3} render style: image z index: 820 @@ -4137,7 +4142,7 @@ extra card style: linebreak 3: left: {if front_class() then 188 else 30} top: {if front_class() then lev3() else if split_23() == "" then 342 else split_23()-1} - width: {if front_class() and card.level_3_text == "​" then 0 else 156} + width: {if front_class() and is_blank(card.level_3_text) then 0 else 156} height: {if front_class() then 25 else 3} render style: image z index: 820 @@ -4146,7 +4151,7 @@ extra card style: linebreak 4: left: {if front_class() then 188 else 30} top: {if front_class() then lev4() else if split_34() == "" then 600 else split_34()-1} - width: {if front_class() and card.level_4_text == "" then 0 else 156} + width: {if front_class() and is_blank(card.level_4_text) then 0 else 156} z index: 820 render style: image height: {if front_class() then 25 else 3} @@ -4227,7 +4232,7 @@ extra card style: linebreak 2b: left: {if back_class() or back_case() then 565 else 407} top: {if back_class() or back_case() then lev2b() else if split_12b() == "" then 248 else split_12b()-1} - width: {if back_class() or back_case() and card.level_6_text == "​" then 0 else 156} + width: {if back_class() or back_case() and is_blank(card.level_10_text) then 0 else 156} height: {if back_class() or back_case() then 25 else 3} render style: image z index: 820 @@ -4236,7 +4241,7 @@ extra card style: linebreak 3b: left: {if back_class() then 565 else 407} top: {if back_class() then lev3b() else if split_23b() == "" then 342 else split_23b()-1} - width: {if back_class() and card.level_7_text == "​" then 0 else 156} + width: {if back_class() and is_blank(card.level_11_text) then 0 else 156} height: {if back_class() then 25 else 3} render style: image z index: 820 @@ -4245,7 +4250,7 @@ extra card style: linebreak 4b: left: {if back_class() then 565 else 407} top: {if back_class() then lev4b() else if split_34b() == "" then 600 else split_34b()-1} - width: {if back_class() and card.level_8_text == "" then 0 else 156} + width: {if back_class() and is_blank(card.level_12_text) then 0 else 156} height: {if back_class() then 25 else 3} render style: image z index: 820 @@ -4337,7 +4342,7 @@ extra card style: lvl label 1: left: {if front_class() then 270 else if box_leveler() then 8 else if loy_leveler() then 48 else 21} top: {if front_class() then lev2()+4 else l2_center() - (if loy_leveler() then 2 else 10) + arrow_offset(1)} - width: {if front_class() and card.level_2_text != "​" then 70 else if front_leveler() or card.level_1 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} + width: {if front_class() and not is_blank(card.level_2_text) then 70 else if front_leveler() or card.level_1 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} height: {if front_class() then 20 else if loy_leveler() then 10 else if center_label(1) then 0 else 10} z index: 860 alignment: {if front_class() then "center right" else "center middle"} @@ -4350,7 +4355,7 @@ extra card style: lvl label 2: left: {if front_class() then 270 else if box_leveler() then 8 else if loy_leveler() then 48 else 21} top: {if front_class() then lev3()+4 else l3_center() - (if loy_leveler() then 2 else 10) + arrow_offset(2)} - width: {if front_class() and card.level_3_text != "​" then 70 else if front_leveler() or card.level_2 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} + width: {if front_class() and not is_blank(card.level_3_text) then 70 else if front_leveler() or card.level_2 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} height: {if front_class() then 20 else if loy_leveler() then 10 else if center_label(2) then 0 else 10} z index: 860 alignment: {if front_class() then "center right" else "center middle"} @@ -4363,7 +4368,7 @@ extra card style: lvl label 3: left: {if front_class() then 270 else if box_leveler() then 8 else if loy_leveler() then 48 else 21} top: {if front_class() then lev4()+4 else l4_center() - (if loy_leveler() then 2 else 10) + arrow_offset(3)} - width: {if front_class() and card.level_4_text != "" then 70 else if front_class() then 0 else if front_leveler() or card.level_2 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} + width: {if front_class() and not is_blank(card.level_4_text) then 70 else if front_class() then 0 else if front_leveler() or card.level_2 != "" then (if loy_leveler() then 10 else 34 + (if box_leveler() then 30 else 0)) else 0} height: {if front_class() then 20 else if loy_leveler() then 10 else if center_label(3) then 0 else 10} z index: 860 alignment: {if front_class() then "center right" else "center middle"} @@ -4451,7 +4456,7 @@ extra card style: lvl label 6: left: {if back_class() then 647 else if box_leveler2() then 385 else if loy_leveler2() then 425 else 398} top: {if back_class() then lev2b()+4 else l6_center() - (if loy_leveler2() then 2 else 10) + arrow_offset2(1)} - width: {if back_class() and card.level_6_text != "​" then 70 else if back_leveler() or card.level_6 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and not is_blank(card.level_10_text) then 70 else if back_leveler() or card.level_6 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} height: {if back_class() then 20 else if loy_leveler2() then 10 else if center_label2(1) then 0 else 10} z index: 860 alignment: {if back_class() then "center right" else "center middle"} @@ -4464,7 +4469,7 @@ extra card style: lvl label 7: left: {if back_class() then 647 else if box_leveler2() then 385 else if loy_leveler2() then 425 else 398} top: {if back_class() then lev3b()+4 else l7_center() - (if loy_leveler2() then 2 else 10) + arrow_offset2(2)} - width: {if back_class() and card.level_7_text != "​" then 70 else if back_leveler() or card.level_7 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and not is_blank(card.level_11_text) then 70 else if back_leveler() or card.level_7 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} height: {if back_class() then 20 else if loy_leveler2() then 10 else if center_label2(2) then 0 else 10} z index: 860 alignment: {if back_class() then "center right" else "center middle"} @@ -4477,7 +4482,7 @@ extra card style: lvl label 8: left: {if back_class() then 647 else if box_leveler2() then 385 else if loy_leveler2() then 425 else 398} top: {if back_class() then lev4b()+4 else l8_center() - (if loy_leveler2() then 2 else 10) + arrow_offset2(3)} - width: {if back_class() and card.level_8_text != "" then 70 else if back_leveler() or card.level_8 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} + width: {if back_class() and not is_blank(card.level_12_text) then 70 else if back_leveler() or card.level_8 != "" then (if loy_leveler2() then 10 else 34 + (if box_leveler2() then 30 else 0)) else 0} height: {if back_class() then 20 else if loy_leveler2() then 10 else if center_label2(3) then 0 else 10} z index: 860 alignment: {if back_class() then "center right" else "center middle"}