custom borders
This commit is contained in:
@@ -266,6 +266,12 @@ init script:
|
||||
is_snow := {chosen(styling.other_options, choice:"snow")}
|
||||
is_vehicle := {chosen(styling.other_options, choice:"vehicle")}
|
||||
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:"~")+
|
||||
filter_text@(match:"~")
|
||||
special_text := {
|
||||
@@ -376,11 +382,16 @@ styling field:
|
||||
choice: nyx
|
||||
choice: snow
|
||||
choice: vehicle
|
||||
choice: custom border
|
||||
choice: adventure
|
||||
choice: reversed adventure
|
||||
choice: pride pinlines
|
||||
choice: popunder art
|
||||
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:
|
||||
type: text
|
||||
name: custom mask
|
||||
@@ -977,6 +988,12 @@ extra card field:
|
||||
choice: car door
|
||||
save value: false
|
||||
editable: false
|
||||
extra card field:
|
||||
type: choice
|
||||
name: custom overlay
|
||||
choice: car door
|
||||
save value: false
|
||||
editable: false
|
||||
extra card field:
|
||||
type: choice
|
||||
name: snow overlay
|
||||
@@ -1413,7 +1430,7 @@ extra card style:
|
||||
image: {module_nyx()}
|
||||
z index: 330
|
||||
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:
|
||||
left: 0
|
||||
top: 0
|
||||
@@ -1423,7 +1440,7 @@ extra card style:
|
||||
image: {module_snow()}
|
||||
z index: 320
|
||||
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:
|
||||
left: 0
|
||||
top: 0
|
||||
@@ -1432,8 +1449,18 @@ extra card style:
|
||||
render style: image
|
||||
image: full_voverlay.png
|
||||
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()}
|
||||
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:
|
||||
left: { if not is_pinned() then 0 else 19}
|
||||
top: { if not is_pinned() then 0 else 51}
|
||||
|
||||
Reference in New Issue
Block a user