custom borders
This commit is contained in:
@@ -639,7 +639,7 @@ init script:
|
|||||||
cw := if cw > 44 then (if set.print_fix != "" then set.print_fix else 22) else if cw < 22 then 22 else cw
|
cw := if cw > 44 then (if set.print_fix != "" then set.print_fix else 22) else if cw < 22 then 22 else cw
|
||||||
if card_style.rarity.width == 0 then 0 else cw
|
if card_style.rarity.width == 0 then 0 else cw
|
||||||
}
|
}
|
||||||
special_text := {if is_leveler() then ((if card.level_0 != "" then "[" + level_label(0) + " " + card.level_0 + "] " else "") + card.level_1_text + (if card.pt != "" then " [" + card.pt + "]" else "") + "\n"
|
special_text := {if is_leveler() then ((if card.level_0 != "" then "[" + level_label(0) + " " + card.level_0 + "] " else "") + card.level_1_text + (if card.pt != "" and not lone_pt() then " [" + card.pt + "]" else "") + "\n"
|
||||||
+ (if card.level_1 != "" then "[" + level_label(1) + " " + card.level_1 + "] " else "") + card.level_2_text + (if card.pt_2 != "" then " [" + card.pt_2 + "]" else "") + "\n"
|
+ (if card.level_1 != "" then "[" + level_label(1) + " " + card.level_1 + "] " else "") + card.level_2_text + (if card.pt_2 != "" then " [" + card.pt_2 + "]" else "") + "\n"
|
||||||
+ (if card.level_2 != "" then "[" + level_label(2) + " " + card.level_2 + "] " else "") + card.level_3_text + (if card.pt_3 != "" then " [" + card.pt_3 + "]" else "") + (if card.level_4_text != "" then "\n" else "")
|
+ (if card.level_2 != "" then "[" + level_label(2) + " " + card.level_2 + "] " else "") + card.level_3_text + (if card.pt_3 != "" then " [" + card.pt_3 + "]" else "") + (if card.level_4_text != "" then "\n" else "")
|
||||||
+ (if card.level_3 != "" then "[" + level_label(3) + " " + card.level_3 + "] " else "") + card.level_4_text + (if card.pt_7 != "" then " [" + card.pt_7 + "]" else "")
|
+ (if card.level_3 != "" then "[" + level_label(3) + " " + card.level_3 + "] " else "") + card.level_4_text + (if card.pt_7 != "" then " [" + card.pt_7 + "]" else "")
|
||||||
|
|||||||
@@ -266,6 +266,12 @@ init script:
|
|||||||
is_snow := {chosen(styling.other_options, choice:"snow")}
|
is_snow := {chosen(styling.other_options, choice:"snow")}
|
||||||
is_vehicle := {chosen(styling.other_options, choice:"vehicle")}
|
is_vehicle := {chosen(styling.other_options, choice:"vehicle")}
|
||||||
is_pinned := {chosen(styling.other_options, choice:"pride pinlines")}
|
is_pinned := {chosen(styling.other_options, choice:"pride pinlines")}
|
||||||
|
is_custom_border := {
|
||||||
|
chosen(styling.other_options, choice:"custom border")
|
||||||
|
and contains(styling.custom_border_source, match:".png")
|
||||||
|
}
|
||||||
|
custom_border_blend := { color_background(type:"custom_border", base_hybrid:card_hybrid) }
|
||||||
|
|
||||||
paragraph_count := replace@(match:"\n", replace:"~")+
|
paragraph_count := replace@(match:"\n", replace:"~")+
|
||||||
filter_text@(match:"~")
|
filter_text@(match:"~")
|
||||||
special_text := {
|
special_text := {
|
||||||
@@ -376,11 +382,16 @@ styling field:
|
|||||||
choice: nyx
|
choice: nyx
|
||||||
choice: snow
|
choice: snow
|
||||||
choice: vehicle
|
choice: vehicle
|
||||||
|
choice: custom border
|
||||||
choice: adventure
|
choice: adventure
|
||||||
choice: reversed adventure
|
choice: reversed adventure
|
||||||
choice: pride pinlines
|
choice: pride pinlines
|
||||||
choice: popunder art
|
choice: popunder art
|
||||||
initial: un-indent nonloyalty abilities
|
initial: un-indent nonloyalty abilities
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: custom border source
|
||||||
|
description: Use this file from magic-mainframe-extras as a custom vehicle-like frame. if colored, name images like "wborder.png" and put "-color-border.png" here.
|
||||||
styling field:
|
styling field:
|
||||||
type: text
|
type: text
|
||||||
name: custom mask
|
name: custom mask
|
||||||
@@ -977,6 +988,12 @@ extra card field:
|
|||||||
choice: car door
|
choice: car door
|
||||||
save value: false
|
save value: false
|
||||||
editable: false
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: custom overlay
|
||||||
|
choice: car door
|
||||||
|
save value: false
|
||||||
|
editable: false
|
||||||
extra card field:
|
extra card field:
|
||||||
type: choice
|
type: choice
|
||||||
name: snow overlay
|
name: snow overlay
|
||||||
@@ -1413,7 +1430,7 @@ extra card style:
|
|||||||
image: {module_nyx()}
|
image: {module_nyx()}
|
||||||
z index: 330
|
z index: 330
|
||||||
visible: {is_nyx()}
|
visible: {is_nyx()}
|
||||||
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw" + (if is_vehicle() then "_v") + "_mask.png"}
|
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw" + (if is_vehicle() or is_custom_border() then "_v") + "_mask.png"}
|
||||||
snow overlay:
|
snow overlay:
|
||||||
left: 0
|
left: 0
|
||||||
top: 0
|
top: 0
|
||||||
@@ -1423,7 +1440,7 @@ extra card style:
|
|||||||
image: {module_snow()}
|
image: {module_snow()}
|
||||||
z index: 320
|
z index: 320
|
||||||
visible: {is_snow()}
|
visible: {is_snow()}
|
||||||
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw" + (if is_vehicle() then "_v") + "_mask.png"}
|
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw" + (if is_vehicle() or is_custom_border() then "_v") + "_mask.png"}
|
||||||
vehicle overlay:
|
vehicle overlay:
|
||||||
left: 0
|
left: 0
|
||||||
top: 0
|
top: 0
|
||||||
@@ -1432,8 +1449,18 @@ extra card style:
|
|||||||
render style: image
|
render style: image
|
||||||
image: full_voverlay.png
|
image: full_voverlay.png
|
||||||
z index: 310
|
z index: 310
|
||||||
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw_mask.png"}
|
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw" + (if is_custom_border() then "_v") + "_mask.png"}
|
||||||
visible: {is_vehicle()}
|
visible: {is_vehicle()}
|
||||||
|
custom overlay:
|
||||||
|
left: 0
|
||||||
|
top: 0
|
||||||
|
width: 375
|
||||||
|
height: 523
|
||||||
|
render style: image
|
||||||
|
image: { custom_border_blend() }
|
||||||
|
z index: 317
|
||||||
|
mask: {"trim_masks/" + (if has_four_abilities() then "4") + "pw_mask.png"}
|
||||||
|
visible: { is_custom_border() }
|
||||||
pride pin:
|
pride pin:
|
||||||
left: { if not is_pinned() then 0 else 19}
|
left: { if not is_pinned() then 0 else 19}
|
||||||
top: { if not is_pinned() then 0 else 51}
|
top: { if not is_pinned() then 0 else 51}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ icon: card-sample.png
|
|||||||
installer group: magic/m15 style/tokens
|
installer group: magic/m15 style/tokens
|
||||||
position hint: 004
|
position hint: 004
|
||||||
|
|
||||||
version: 2024-09-03
|
version: 2025-01-11
|
||||||
depends on:
|
depends on:
|
||||||
package: magic.mse-game
|
package: magic.mse-game
|
||||||
version: 2014-06-25
|
version: 2014-06-25
|
||||||
@@ -228,6 +228,11 @@ init script:
|
|||||||
then module_stamp()
|
then module_stamp()
|
||||||
else "/magic-modules.mse-include/stamps/backs/" + (if sh == "triangle" then "triangle_stamp.png" else "stamp.png")
|
else "/magic-modules.mse-include/stamps/backs/" + (if sh == "triangle" then "triangle_stamp.png" else "stamp.png")
|
||||||
}
|
}
|
||||||
|
is_custom_border := {
|
||||||
|
chosen(styling.frames, choice:"custom border")
|
||||||
|
and contains(styling.custom_border_source, match:".png")
|
||||||
|
}
|
||||||
|
custom_border_blend := { color_background(type:"custom_border", base_hybrid:card_hybrid) }
|
||||||
watermark_include := "/magic-modules.mse-include/watermarks"
|
watermark_include := "/magic-modules.mse-include/watermarks"
|
||||||
############################################################## Set info fields
|
############################################################## Set info fields
|
||||||
set info style:
|
set info style:
|
||||||
@@ -253,6 +258,11 @@ styling field:
|
|||||||
choice: nyx
|
choice: nyx
|
||||||
choice: snow
|
choice: snow
|
||||||
choice: vehicle
|
choice: vehicle
|
||||||
|
choice: custom border
|
||||||
|
styling field:
|
||||||
|
type: text
|
||||||
|
name: custom border source
|
||||||
|
description: Use this file from magic-mainframe-extras as a custom vehicle-like frame. if colored, name images like "wborder.png" and put "-color-border.png" here.
|
||||||
styling field:
|
styling field:
|
||||||
type: multiple choice
|
type: multiple choice
|
||||||
name: auto frames
|
name: auto frames
|
||||||
@@ -486,7 +496,7 @@ card style:
|
|||||||
top: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).1 else "0"}
|
top: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).1 else "0"}
|
||||||
width: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).2 else "0"}
|
width: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).2 else "0"}
|
||||||
height: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).3 else "0"}
|
height: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).3 else "0"}
|
||||||
z index: 8
|
z index: 1010
|
||||||
############################# Card type
|
############################# Card type
|
||||||
type:
|
type:
|
||||||
left: 32
|
left: 32
|
||||||
@@ -712,6 +722,12 @@ extra card field:
|
|||||||
choice: plate
|
choice: plate
|
||||||
save value: false
|
save value: false
|
||||||
editable: false
|
editable: false
|
||||||
|
extra card field:
|
||||||
|
type: choice
|
||||||
|
name: custom overlay
|
||||||
|
choice: plate
|
||||||
|
save value: false
|
||||||
|
editable: false
|
||||||
extra card field:
|
extra card field:
|
||||||
type: text
|
type: text
|
||||||
name: vorthos box
|
name: vorthos box
|
||||||
@@ -856,6 +872,16 @@ extra card style:
|
|||||||
image: voverlay.png
|
image: voverlay.png
|
||||||
mask: {"v_" + (if is_nyx() or is_snow() then "nyx_" else "") + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"}
|
mask: {"v_" + (if is_nyx() or is_snow() then "nyx_" else "") + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"}
|
||||||
visible: { is_vehicle() }
|
visible: { is_vehicle() }
|
||||||
|
vehicle overlay:
|
||||||
|
left: 15
|
||||||
|
top: 15
|
||||||
|
width: 345
|
||||||
|
height: 471
|
||||||
|
z index: 1
|
||||||
|
render style: image
|
||||||
|
image: {custom_border_blend()}
|
||||||
|
mask: {"v_" + (if is_nyx() or is_snow() then "nyx_" else "") + if is_tall() then "tall_mask.png" else if is_textless() then "short_mask.png" else "mid_mask.png"}
|
||||||
|
visible: { is_custom_border() }
|
||||||
vorthos box:
|
vorthos box:
|
||||||
right: { if card.pt != "" then 275 else 350 }
|
right: { if card.pt != "" then 275 else 350 }
|
||||||
top: 488
|
top: 488
|
||||||
|
|||||||
Reference in New Issue
Block a user