453 lines
14 KiB
Plaintext
453 lines
14 KiB
Plaintext
mse version: 2.0.0
|
|
game: magic
|
|
short name: Booster Pack
|
|
full name: Mini Pack
|
|
icon: card-sample.png
|
|
installer group: magic/m15 style/normal cards
|
|
position hint: 999
|
|
|
|
version: 2021-03-09
|
|
depends on:
|
|
package: magic.mse-game
|
|
version: 2014-06-25
|
|
|
|
card width: 300
|
|
card height: 530
|
|
card dpi: 150
|
|
############################################################## Extra scripts
|
|
init script:
|
|
is_unsorted := {true}
|
|
logo_deets := {split_text(styling.logo_placement+",,,,,", match:",")}
|
|
title_deets := {split_text(styling.main_title_placement+",,,,,", match:",")}
|
|
subtitle_deets := {split_text(styling.sub_title_placement+",,,,,", match:",")}
|
|
count_deets := {split_text(styling.card_count_placement+",,,,,", match:",")}
|
|
age_deets := {split_text(styling.age_placement+",,,,,", match:",")}
|
|
artist_deets := {split_text(styling.artist_placement+",,,,,", match:",")}
|
|
rarity_deets := {split_text(styling.rarity_placement+",,,,,", match:",")}
|
|
color_fringe := {styling.fringe_color != rgb(0,0,1)}
|
|
texture_mode := {
|
|
if styling.text_texture_mode == "on" then "on"
|
|
else if styling.text_texture_mode == "masking" then "masking"
|
|
else if styling.text_texture_mode == "import" then "import"
|
|
else if styling.text_texture_mode == "texture" then "texture"
|
|
else "off"
|
|
}
|
|
font_sizes := {split_text(styling.font_sizes+",,,,", match:",")}
|
|
title_font_size := {if font_sizes().0 == "" then 35 else font_sizes().0}
|
|
subtitle_font_size := {if font_sizes().1 == "" then 20 else font_sizes().1}
|
|
count_font_size := {if font_sizes().2 == "" then 15 else font_sizes().2}
|
|
age_font_size := {if font_sizes().3 == "" then 10 else font_sizes().3}
|
|
font_color := {if texture_mode() == "masking" then "white" else styling.title_color}
|
|
arrow_coords := {
|
|
angle := if artist_deets().4 != "" then artist_deets().4 else 0
|
|
angle := (to_number(angle)+10.126)*3.14159265/180
|
|
left := if artist_deets().0 != "" then artist_deets().0 else 20
|
|
top := if artist_deets().1 != "" then artist_deets().1 else 455
|
|
left := left - 14.22*cos(angle)
|
|
top := top - (-14.22*sin(angle))
|
|
[left, top]
|
|
}
|
|
use_main_rarity := { contains(set.mainframe_rarity_name, match: ".png")}
|
|
un_png := replace@(match:".png", replace: "")
|
|
rarity_alpha := {to_number(styling.rarity_opacity)/100}
|
|
############################################################## Set info fields
|
|
set info style:
|
|
symbol:
|
|
variation:
|
|
name: invertedcommon
|
|
border radius: 0.10
|
|
fill type: solid
|
|
fill color: rgb(255,255,255)
|
|
border color: rgb(0,0,0)
|
|
############################################################## Extra style options
|
|
styling field:
|
|
type: color
|
|
name: fringe color
|
|
choice:
|
|
name: none
|
|
color: rgb(0,0,1)
|
|
choice:
|
|
name: black
|
|
color: rgb(0,0,0)
|
|
choice:
|
|
name: white
|
|
color: rgb(255,255,255)
|
|
choice:
|
|
name: silver
|
|
color: rgb(200,200,200)
|
|
choice:
|
|
name: gold
|
|
color: rgb(200,180,0)
|
|
description: The font color for the pack
|
|
styling field:
|
|
type: color
|
|
name: title color
|
|
choice:
|
|
name: black
|
|
color: rgb(0,0,0)
|
|
choice:
|
|
name: white
|
|
color: rgb(255,255,255)
|
|
choice:
|
|
name: silver
|
|
color: rgb(200,200,200)
|
|
choice:
|
|
name: gold
|
|
color: rgb(200,180,0)
|
|
default: "black"
|
|
description: The font color for the title
|
|
styling field:
|
|
type: color
|
|
name: card count color
|
|
choice:
|
|
name: black
|
|
color: rgb(0,0,0)
|
|
choice:
|
|
name: white
|
|
color: rgb(255,255,255)
|
|
choice:
|
|
name: silver
|
|
color: rgb(200,200,200)
|
|
choice:
|
|
name: gold
|
|
color: rgb(200,180,0)
|
|
default: "black"
|
|
description: The font color for the card count text
|
|
styling field:
|
|
type: color
|
|
name: age color
|
|
choice:
|
|
name: black
|
|
color: rgb(0,0,0)
|
|
choice:
|
|
name: white
|
|
color: rgb(255,255,255)
|
|
choice:
|
|
name: silver
|
|
color: rgb(200,200,200)
|
|
choice:
|
|
name: gold
|
|
color: rgb(200,180,0)
|
|
default: "black"
|
|
description: The font color for the age text
|
|
styling field:
|
|
type: color
|
|
name: artist color
|
|
choice:
|
|
name: black
|
|
color: rgb(0,0,0)
|
|
choice:
|
|
name: white
|
|
color: rgb(255,255,255)
|
|
choice:
|
|
name: silver
|
|
color: rgb(200,200,200)
|
|
choice:
|
|
name: gold
|
|
color: rgb(200,180,0)
|
|
default: "black"
|
|
description: The font color for the age text
|
|
styling field:
|
|
type: boolean
|
|
name: small text over title
|
|
description: add a small textbox over the big title. set false to move it under
|
|
styling field:
|
|
type: choice
|
|
name: text texture mode
|
|
choice: off
|
|
choice: masking
|
|
choice: import
|
|
choice: texture
|
|
choice: on
|
|
choice: switch to masking to generate mask
|
|
choice: save card image, can grow selection in image editors for borders
|
|
choice: switch to import and import saved mask
|
|
choice: switch to texture and import texture image
|
|
choice: switch to on to apply texture
|
|
styling field:
|
|
type: text
|
|
name: font sizes
|
|
description: Formatted "1,2,3,4". Change the font size of big title, small title, card count, and age. Default is "35,20,15,10"
|
|
styling field:
|
|
type: text
|
|
name: rarity opacity
|
|
description: Opacity of rarity symbol, 0 is fully transparent, 100 is fully opaque. Default is 0.
|
|
styling field:
|
|
type: text
|
|
name: logo placement
|
|
description: Formatted "left,top,width,height,rotation," default is "22,50,258,88,0,"
|
|
styling field:
|
|
type: text
|
|
name: main title placement
|
|
description: Formatted "left,top,width,height,rotation," default is "8,375,285,50,0,"
|
|
styling field:
|
|
type: text
|
|
name: sub title placement
|
|
description: Formatted "left,top,width,height,rotation," default is "8,350,285,25,0,"
|
|
styling field:
|
|
type: text
|
|
name: card count placement
|
|
description: Formatted "left,top,width,height,rotation," default is "22,470,285,25,0,"
|
|
styling field:
|
|
type: text
|
|
name: age placement
|
|
description: Formatted "left,top,width,height,rotation," default is "240,62,50,15,0,"
|
|
styling field:
|
|
type: text
|
|
name: artist placement
|
|
description: Formatted "left,top,width,height,rotation," default is "20,455,100,10,0,"
|
|
styling field:
|
|
type: text
|
|
name: rarity placement
|
|
description: Formatted "left,top,width,height,rotation," default is "75,315,150,150,0,"
|
|
styling field:
|
|
type: boolean
|
|
name: inverted common symbol
|
|
description: Should the common rarity symbol be inverted, like in Coldsnap?
|
|
initial: no
|
|
############################################################## Card fields
|
|
card style:
|
|
############################# Name line
|
|
name:
|
|
left: {if title_deets().0 != "" then title_deets().0 else 8}
|
|
top: {if title_deets().1 != "" then title_deets().1 else if styling.small_text_over_title then 375 else 350 }
|
|
width: {if title_deets().2 != "" then title_deets().2 else 285}
|
|
height: {if title_deets().3 != "" then title_deets().3 else 50}
|
|
angle: {if title_deets().4 != "" then title_deets().4 else 0}
|
|
alignment: center shrink-overflow
|
|
padding bottom: 0
|
|
z index: 7
|
|
font:
|
|
name: Beleren Bold
|
|
size: {title_font_size()}
|
|
color: {font_color()}
|
|
############################# Image
|
|
image:
|
|
left: {if color_fringe() then 5.5 else 0}
|
|
top: {if color_fringe() then 62.5 else 0}
|
|
width: {if color_fringe() then 289 else 300}
|
|
height: {if color_fringe() then 406 else 530}
|
|
z index: 1
|
|
mask: {if color_fringe() then "" else "booster_mask.png"}
|
|
mainframe image:
|
|
left: 0
|
|
top: 0
|
|
width: {if texture_mode() == "import" then 300 else 0}
|
|
height: 530
|
|
z index: 8
|
|
image 2:
|
|
left: 0
|
|
top: 0
|
|
width: {if texture_mode() == "texture" or texture_mode() == "on" then 300 else 0}
|
|
height: 530
|
|
z index: 8
|
|
mask: {if texture_mode() == "on" then card.mainframe_image else ""}
|
|
############################# Set symbol
|
|
rarity:
|
|
left: {if rarity_deets().0 != "" then rarity_deets().0 else 75}
|
|
top: {if rarity_deets().1 != "" then rarity_deets().1 else 315}
|
|
width: {if rarity_deets().2 != "" then rarity_deets().2 else 150}
|
|
height: {if rarity_deets().3 != "" then rarity_deets().3 else 150}
|
|
angle: {if rarity_deets().4 != "" then rarity_deets().4 else 0}
|
|
z index: 3
|
|
render style: image
|
|
alignment: middle right
|
|
choice images:
|
|
# Images based on the set symbol
|
|
basic land:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("c")
|
|
else if alt_rarity() then alt_symbol()
|
|
else if styling.inverted_common_symbol or else false or set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
|
|
else symbol_variation(symbol: set.symbol, variation: "common")
|
|
)
|
|
common:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("c")
|
|
else if alt_rarity() then alt_symbol()
|
|
else if styling.inverted_common_symbol or else false or set.inverted_common_symbol then symbol_variation(symbol: set.symbol, variation: "invertedcommon")
|
|
else symbol_variation(symbol: set.symbol, variation: "common")
|
|
)
|
|
uncommon:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("u")
|
|
else if alt_rarity() then alt_symbol()
|
|
else symbol_variation(symbol: set.symbol, variation: "uncommon")
|
|
)
|
|
rare:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("r")
|
|
else if alt_rarity() then alt_symbol()
|
|
else symbol_variation(symbol: set.symbol, variation: "rare")
|
|
)
|
|
mythic rare:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("m")
|
|
else if alt_rarity() then alt_symbol()
|
|
else symbol_variation(symbol: set.symbol, variation: "mythic rare")
|
|
)
|
|
special:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("s")
|
|
else if alt_rarity() then alt_symbol()
|
|
else symbol_variation(symbol: set.symbol, variation: "special")
|
|
)
|
|
masterpiece:
|
|
script:
|
|
set_alpha(alpha: rarity_alpha(),
|
|
if use_main_rarity() then mainframe_rarity("mp")
|
|
else symbol_variation(symbol: set.masterpiece_symbol, variation: "mythic rare")
|
|
)
|
|
|
|
############################# Copyright stuff
|
|
illustrator:
|
|
left: {if artist_deets().0 != "" then artist_deets().0 else 20}
|
|
top: {if artist_deets().1 != "" then artist_deets().1 else 455}
|
|
width: {if artist_deets().2 != "" then artist_deets().2 else 100}
|
|
height: {if artist_deets().3 != "" then artist_deets().3 else 10}
|
|
angle: {if artist_deets().4 != "" then artist_deets().4 else 0}
|
|
z index: 1
|
|
font:
|
|
name: Beleren Small Caps Bold
|
|
size: 7.5
|
|
color: {styling.artist_color}
|
|
############################################################## Extra card fields
|
|
extra card field:
|
|
type: choice
|
|
name: artist arrow
|
|
choice: light
|
|
choice: dark
|
|
extra card field:
|
|
type: choice
|
|
name: back drop
|
|
choice: back
|
|
editable: false
|
|
save value: false
|
|
extra card field:
|
|
type: color
|
|
name: fake back drop
|
|
script: rgb(0,0,0)
|
|
editable: false
|
|
save value: false
|
|
extra card field:
|
|
type: color
|
|
name: fringes
|
|
script: styling.fringe_color
|
|
editable: false
|
|
save value: false
|
|
extra card field:
|
|
type: choice
|
|
name: magic logo
|
|
choice: light
|
|
choice: dark
|
|
choice: blue
|
|
choice: yellow
|
|
choice: none
|
|
extra card field:
|
|
type: text
|
|
name: small name
|
|
multi line: true
|
|
extra card field:
|
|
type: text
|
|
name: age
|
|
default: "AGE 13+"
|
|
extra card field:
|
|
type: text
|
|
name: count
|
|
default: "15-CARD BOOSTER PACK"
|
|
extra card style:
|
|
back drop:
|
|
left: 0
|
|
top: 0
|
|
width: 300
|
|
height: 530
|
|
z index: -1
|
|
image: back_drop.png
|
|
render style: image
|
|
fake back drop:
|
|
left: 0
|
|
top: 0
|
|
width: 300
|
|
height: 530
|
|
z index: 6
|
|
visible: {texture_mode() == "masking"}
|
|
fringes:
|
|
left: 0
|
|
top: 0
|
|
width: 300
|
|
height: 530
|
|
z index: 2
|
|
mask: fringe_mask.png
|
|
visible: {color_fringe()}
|
|
artist arrow:
|
|
left: {arrow_coords().0}
|
|
top: {arrow_coords().1}
|
|
angle: {if artist_deets().4 != "" then artist_deets().4 else 0}
|
|
width: 12
|
|
height: 7
|
|
z index: 1
|
|
render style: image
|
|
visible: {card.illustrator != ""}
|
|
choice images:
|
|
light: artist_arrow_light.png
|
|
dark: artist_arrow_dark.png
|
|
magic logo:
|
|
left: {if logo_deets().0 == "" then 22 else logo_deets().0}
|
|
top: {if logo_deets().1 == "" then 50 else logo_deets().1}
|
|
width: {if logo_deets().2 == "" then 258 else logo_deets().2}
|
|
height: {if logo_deets().3 == "" then 88 else logo_deets().3}
|
|
angle: {if logo_deets().4 == "" then 0 else logo_deets().4}
|
|
z index: 2
|
|
render style: image
|
|
popup style: in place
|
|
choice images:
|
|
light: magic_light.png
|
|
dark: magic_dark.png
|
|
blue: magic_blue.png
|
|
yellow: magic_yellow.png
|
|
small name:
|
|
left: {if subtitle_deets().0 != "" then subtitle_deets().0 else 8}
|
|
top: {if subtitle_deets().1 != "" then subtitle_deets().1 else if styling.small_text_over_title then 350 else 400 }
|
|
width: {if subtitle_deets().2 != "" then subtitle_deets().2 else 285}
|
|
height: {if subtitle_deets().3 != "" then subtitle_deets().3 else 25}
|
|
angle: {if subtitle_deets().4 != "" then subtitle_deets().4 else 0}
|
|
alignment: center shrink-overflow
|
|
padding bottom: 0
|
|
z index: 7
|
|
font:
|
|
name: Beleren Small Caps Bold
|
|
size: {subtitle_font_size()}
|
|
color: {font_color()}
|
|
count:
|
|
left: {if count_deets().0 != "" then count_deets().0 else 8}
|
|
top: {if count_deets().1 != "" then count_deets().1 else 470}
|
|
width: {if count_deets().2 != "" then count_deets().2 else 285}
|
|
height: {if count_deets().3 != "" then count_deets().3 else 25}
|
|
angle: {if count_deets().4 != "" then count_deets().4 else 0}
|
|
alignment: center shrink-overflow
|
|
padding bottom: 0
|
|
z index: 4
|
|
font:
|
|
name: Beleren Small Caps Bold
|
|
size: {count_font_size()}
|
|
color: {styling.card_count_color}
|
|
age:
|
|
left: {if age_deets().0 != "" then age_deets().0 else 240}
|
|
top: {if age_deets().1 != "" then age_deets().1 else 62}
|
|
width: {if age_deets().2 != "" then age_deets().2 else 50}
|
|
height: {if age_deets().3 != "" then age_deets().3 else 15}
|
|
angle: {if age_deets().4 != "" then age_deets().4 else 0}
|
|
alignment: center shrink-overflow
|
|
padding bottom: 0
|
|
z index: 4
|
|
font:
|
|
name: Beleren Small Caps Bold
|
|
size: {age_font_size()}
|
|
color: {styling.age_color}
|