[274/274] magic-modules rollout (#51)
Add Magic-Modules support to all frames
This commit is contained in:
@@ -6,7 +6,7 @@ installer group: magic/m15 style/emblems
|
||||
icon: card-sample.png
|
||||
position hint: 090
|
||||
|
||||
version: 2020-04-25
|
||||
version: 2024-06-06
|
||||
depends on:
|
||||
package: magic.mse-game
|
||||
version: 2020-04-25
|
||||
@@ -16,6 +16,9 @@ depends on:
|
||||
depends on:
|
||||
package: magic-mainframe-extras.mse-include
|
||||
version: 2017-05-05
|
||||
depends on:
|
||||
package: magic-modules.mse-include
|
||||
version: 2024-05-20
|
||||
|
||||
card width: 375
|
||||
card height: 523
|
||||
@@ -35,8 +38,6 @@ init script:
|
||||
|
||||
card_shape := { "emblem" }
|
||||
########## Mainframe stuff
|
||||
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}
|
||||
un_png := replace@(match:".png", replace: "")
|
||||
remove_rarity := { styling.remove_rarity_symbol}
|
||||
|
||||
normal_mask := {styling.mask == "default"}
|
||||
@@ -145,6 +146,8 @@ styling style:
|
||||
no: { symbol_variation(symbol: set.symbol, variation: "common") }
|
||||
yes: { symbol_variation(symbol: set.symbol, variation: "invertedcommon") }
|
||||
############################################################## Card fields
|
||||
include file: /magic-modules.mse-include/corners/card_fields
|
||||
include file: /magic-modules.mse-include/information/card_fields
|
||||
card style:
|
||||
############################# Name line
|
||||
name:
|
||||
@@ -176,13 +179,13 @@ card style:
|
||||
width: { if upload_mask() then 375 else 0}
|
||||
height: { if upload_mask() then 523 else 0 }
|
||||
default: emblem_frame_mask.png
|
||||
z index: 10
|
||||
z index: 1010
|
||||
mainframe image:
|
||||
left: {if comma_count(styling.popout_image_style) == ",,,," then split_text(match:",", styling.popout_image_style).0 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"}
|
||||
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
|
||||
type:
|
||||
left: 32
|
||||
@@ -207,38 +210,7 @@ card style:
|
||||
z index: 4
|
||||
alignment: middle right
|
||||
render style: image
|
||||
choice images:
|
||||
# Images based on the set symbol
|
||||
basic land:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
|
||||
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
|
||||
else symbol_variation(symbol: set.symbol, variation: "common")
|
||||
common:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "c.png"
|
||||
else if styling.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
|
||||
else symbol_variation(symbol: set.symbol, variation: "common")
|
||||
uncommon:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "u.png"
|
||||
else symbol_variation(symbol: set.symbol, variation: "uncommon")
|
||||
rare:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "r.png"
|
||||
else symbol_variation(symbol: set.symbol, variation: "rare")
|
||||
mythic rare:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "m.png"
|
||||
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
|
||||
special:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "s.png"
|
||||
else symbol_variation(symbol: set.symbol, variation: "special")
|
||||
masterpiece:
|
||||
script:
|
||||
if use_main_rarity() then "/magic-mainframe-extras.mse-include/" + un_png(set.mainframe_rarity_name) + "mp.png"
|
||||
else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
|
||||
include file: /magic-modules.mse-include/rarities/choice_images
|
||||
############################# Text box
|
||||
text:
|
||||
left: 31
|
||||
@@ -273,57 +245,7 @@ card style:
|
||||
line height soft: 0.9
|
||||
line height hard max: {if is_modal(card.rule_text) then 1.0 else 1.3 }
|
||||
line height line max: 1.6
|
||||
############################# Card sorting / numbering
|
||||
set code:
|
||||
left: 24
|
||||
top: 498
|
||||
width: 40
|
||||
height: 10
|
||||
z index: 4
|
||||
font:
|
||||
name: Relay-Medium
|
||||
size: 7
|
||||
color: white
|
||||
weight: bold
|
||||
############################# Copyright stuff
|
||||
illustrator:
|
||||
left: { 44 + card_style.set_code.content_width }
|
||||
top: 497.5
|
||||
width: 200
|
||||
height: 10
|
||||
z index: 4
|
||||
font:
|
||||
name: Beleren Small Caps Bold
|
||||
size: 7.25
|
||||
color: white
|
||||
copyright:
|
||||
right: 350
|
||||
top: { if card.pt != "" then 500 else 488 }
|
||||
width: {if set.automatic_copyright then 0 else 140}
|
||||
height: 10
|
||||
z index: 4
|
||||
alignment: middle right
|
||||
font:
|
||||
name: Matrix
|
||||
size: 7
|
||||
color: white
|
||||
weight: bold
|
||||
############################################################## Extra card fields
|
||||
extra card field:
|
||||
type: text
|
||||
name: card code
|
||||
save value: false
|
||||
script:
|
||||
if set.automatic_card_numbers and not styling.remove_from_autocount then
|
||||
forward_editor(prefix: card_number_m15() + "/" + card_count_m15() + " " + rarity_code() + " ", field: card.card_code_text)
|
||||
else
|
||||
combined_editor(field1: card.custom_card_number, separator: " " + rarity_code() + " ", field2: card.card_code_text)
|
||||
extra card field:
|
||||
type: choice
|
||||
name: artist arrow
|
||||
editable: false
|
||||
save value: false
|
||||
choice: white
|
||||
extra card field:
|
||||
type: choice
|
||||
name: foil layer
|
||||
@@ -348,13 +270,6 @@ extra card field:
|
||||
choice: textbox
|
||||
editable: false
|
||||
save value: false
|
||||
extra card field:
|
||||
type: text
|
||||
name: auto copyright
|
||||
script: set.copyright
|
||||
save value: false
|
||||
editable: false
|
||||
show statistics: false
|
||||
extra card field:
|
||||
type: choice
|
||||
name: flavor bar
|
||||
@@ -368,7 +283,7 @@ extra card style:
|
||||
top : 0
|
||||
width: 375
|
||||
height: 523
|
||||
z index: 5
|
||||
z index: 1050
|
||||
render style: image
|
||||
image: {if styling.overlay == "" then nil else styling.overlay + "/overlay.png"}
|
||||
frame:
|
||||
@@ -399,37 +314,6 @@ extra card style:
|
||||
render style: image
|
||||
image: textbox.png
|
||||
mask: { if contains(styling.custom_mask, match:".png") then "/magic-mainframe-extras.mse-include/" + styling.custom_mask else "emblem_frame_mask.png"}
|
||||
card code:
|
||||
left: 24
|
||||
top: 488
|
||||
width: 120
|
||||
height: 10
|
||||
z index: 4
|
||||
font:
|
||||
name: Relay-Medium
|
||||
size: 7
|
||||
color: white
|
||||
weight: bold
|
||||
artist arrow:
|
||||
left: { 28 + card_style.set_code.content_width }
|
||||
top: 500
|
||||
width: 12
|
||||
height: 7
|
||||
z index: 4
|
||||
render style: image
|
||||
image: artist_arrow.png
|
||||
auto copyright:
|
||||
right: 350
|
||||
top: { if card.pt != "" then 500 else 488 }
|
||||
width: {if set.automatic_copyright then 140 else 0}
|
||||
height: 10
|
||||
z index: 4
|
||||
alignment: middle right
|
||||
font:
|
||||
name: Matrix
|
||||
size: 7
|
||||
color: white
|
||||
weight: bold
|
||||
flavor bar:
|
||||
left: 0
|
||||
top: { bar_equation() }
|
||||
|
||||
Reference in New Issue
Block a user