card_fields rewrite and magic-modules.mse-include (#21)

Overhauls the card_fields file to allow for template designers more freedom in manipulating data.

Adds magic-modules.mse-include, a large scale include file for building templates in a standardized way. Applying this to existing frames will be coming in future updates.
This commit is contained in:
GenevensiS
2024-05-25 00:57:47 +02:00
committed by GitHub
parent 44b059e2f7
commit fd4b8e4c89
1195 changed files with 13325 additions and 3633 deletions

View File

@@ -18,6 +18,10 @@ set field:
set field:
type: text
name: copyright
set field:
type: text
name: secondary copyright
description: Typically for Universes Beyond sets.
set field:
type: text
name: set code
@@ -29,179 +33,23 @@ set field:
set field:
type: text
name: masterpiece set code
description: The letter code for masterpieces, typically MSP
description: The letter code for Masterpiece rarity cards.
set field:
type: symbol
name: symbol
description: The symbol for this set, double click to edit
description: The symbol for this set, double click to edit.
set field:
type: symbol
name: masterpiece symbol
description: The symbol for this sets masterpieces, click to edit
set field:
type: boolean
name: shorten types for rarity
description: Makes the typeline not run into the rarity symbol. Disable if you don't use rarity symbols.
description: The symbol for this sets Masterpiece rarity cards, click to edit.
set field:
type: info
name: Watermark links
set field:
type: text
name: custom watermark 1
description: Set this image in magic-watermarks.mse-include as Custom Watermark 1
set field:
type: text
name: custom watermark 2
description: Set this image in magic-watermarks.mse-include as Custom Watermark 2
set field:
type: text
name: custom watermark 3
description: Set this image in magic-watermarks.mse-include as Custom Watermark 3
set field:
type: text
name: custom watermark 4
description: Set this image in magic-watermarks.mse-include as Custom Watermark 4
set field:
type: text
name: custom watermark 5
description: Set this image in magic-watermarks.mse-include as Custom Watermark 5
set field:
type: text
name: custom watermark 6
description: Set this image in magic-watermarks.mse-include as Custom Watermark 6
set field:
type: text
name: custom watermark 7
description: Set this image in magic-watermarks.mse-include as Custom Watermark 7
set field:
type: text
name: custom watermark 8
description: Set this image in magic-watermarks.mse-include as Custom Watermark 8
set field:
type: text
name: custom watermark 9
description: Set this image in magic-watermarks.mse-include as Custom Watermark 9
set field:
type: text
name: custom watermark 10
description: Set this image in magic-watermarks.mse-include as Custom Watermark 10
set field:
type: boolean
name: blend with colors
initial: no
description: Only works for 500x500 px watermarks. For best results, use a solid black watermark. Blend watermarks with card colors instead of a solid color.
set field:
type: info
name: Defaults and Automation
set field:
type: text
name: inserts
description: List of strings, separated by ;, that replaces INS1, INS2, ... INS9. May need to reload MSE for changes to take effect.
set field:
type: color
name: border color
description: The default border color for cards
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)
set field:
type: multiple choice
name: automatic reminder text
choice: old
choice: core
choice: expert
choice: pseudo
choice: action
choice: custom
choice: lower case
initial: old, expert, pseudo, action, custom, lower case
# Convert from older mse versions
script:
if value == "yes" then "old, core, expert, custom, lower case"
else if value == "no" then ""
else value
description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword.
set field:
type: boolean
name: automatic card numbers
description: Should card numbers be shown on the cards?
set field:
type: choice
name: card number style
description: What style of automatic card numbers should be used?
choice: 0001
choice: 001/099
choice: 001
choice: 1/99
choice: 1
choice: 0001/0099
set field:
type: text
name: last main partition
description: Card Number Partitions after this one aren't counted as the main part of the set, ex "301" or "301/300" rather than "301/900". Default is M.
set field:
type: choice
name: over partition display
description: How to display card numbers larger than the main set?
choice: 100
choice: 100/099
set field:
type: text
name: card number offsets
description: Add this number to the card numbers. Formatted as "start,total"
set field:
type: boolean
name: automatic copyright
description: Should the copyright line above be shown on the cards?
set field:
type: boolean
name: rarity codes
description: Show rarity codes on M15 frames?
set field:
type: boolean
name: curly quotes
description: converts quotes to curly quotes.
set field:
type: choice
name: sort special rarity
description: Determines how cards with special rarity are sorted.
choice: with the rest
choice: after other cards
choice: separate numbering
initial: after other cards
set field:
type: boolean
name: sort multicolor in pairs
description: Should multicolor cards be sorted according to pairs like in Shards block?
initial: no
set field:
type: boolean
name: sort hybrid in pairs
description: Should hybrid cards be sorted according to pairs like in Shadowmoor block?
initial: no
set field:
type: choice
name: mana cost sorting
description: Should mana costs be sorted by Tarkir standard (WBG), Apocalypse standard (BGW), or left unsorted?
choice: tarkir wedge sorting
choice: apocalypse wedge sorting
choice: unsorted
#typo that stood for way too long
script:
if value == "apocalype wedge sorting" then "apocalypse wedge sorting" else value
name: Language
set field:
type: choice
name: card language
description: Language for the cards
description: Language for the cards.
choice: English
choice: English (British)
choice: English (Canadian)
@@ -231,13 +79,83 @@ set field:
initial: no
set field:
type: boolean
name: remove card codes
description: Remove card codes from all card names.
initial: no
name: curly quotes
description: converts quotes to curly quotes.
set field:
type: boolean
name: alphabetical type column
description: Sorts the type column alphabetically including supertypes. Disable to sort by card type.
set field:
type: info
name: Defaults and Automation
set field:
type: multiple choice
name: automatic reminder text
choice: old
choice: core
choice: expert
choice: pseudo
choice: action
choice: custom
choice: lower case
initial: old, expert, pseudo, action, custom, lower case
# Convert from older mse versions
script:
if value == "yes" then "old, core, expert, custom, lower case"
else if value == "no" then ""
else value
description: For which kinds of keywords should reminder text be added by default? Note: you can enable/disable reminder text by right clicking the keyword.
set field:
type: choice
name: mana cost sorting
description: Should mana costs be sorted by Tarkir standard (WBG), Apocalypse standard (BGW), or left unsorted?
choice: tarkir wedge sorting
choice: apocalypse wedge sorting
choice: unsorted
#typo that stood for way too long
script:
if value == "apocalype wedge sorting" then "apocalypse wedge sorting" else value
set field:
type: color
name: border color
description: The default border color for cards
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)
set field:
type: choice
name: corner shape
description: The default shape of corners for cards. Not universally supported yet.
include file: /magic-modules.mse-include/corners/choices
set field:
type: color
name: copyright text color
description: The default color for set code, artist credit and copyright. Not universally supported yet.
choice:
name: white
color: rgb(255,255,255)
choice:
name: black
color: rgb(0,0,0)
set field:
type: text
name: inserts
description: List of strings, separated by ;, that replaces INS1, INS2, ... INS9. May need to reload MSE for changes to take effect.
set field:
type: boolean
name: alias as cardname
description: Replaces CARDNAME with a card's alias instead of card name.
description: Replaces CARDNAME with a card's alias instead of its main name.
set field:
type: choice
name: use gradient multicolor
@@ -246,11 +164,194 @@ set field:
choice: no
description: Use gradients on multicolor cards by default, you can always change it be clicking on the card border.
initial: only for two color cards
set field:
type: choice
name: use blended watermarks
choice: blend with colors
choice: shadow
choice: glow
choice: no
description: Blend the default watermarks with the card color, with a dropshadow, or unblended.
set field:
type: boolean
name: wedge mana costs
description: Depreciated. Should three color mana costs sort in wedge order like in Khans block?
name: shorten types for rarity
description: Makes the typeline not run into the rarity symbol. Disable if you don't use rarity symbols.
set field:
type: boolean
name: inverted common symbol
description: Should the common rarity symbol be inverted, like in Coldsnap?
initial: no
set field:
type: boolean
name: rarity codes
description: Show rarity codes on M15 frames?
set field:
type: boolean
name: automatic copyright
description: Should the copyright line above be shown on the cards?
set field:
type: boolean
name: adaptive language height
description: Should the language code be pushed down when the card has multiple credit lines?
initial: no
set field:
type: boolean
name: remove card codes
description: Remove card codes from all card names. THIS CANNOT BE UNDONE, if you save it is permanent.
initial: no
set field:
type: info
name: Card Numbering
set field:
type: boolean
name: automatic card numbers
description: Should card numbers be shown on the cards?
set field:
type: choice
name: card number style
description: What style of automatic card numbers should be used? Not universally supported yet.
choice: 0001
choice: 001/099
choice: 001
choice: 1/99
choice: 1
choice: 0001/0099
set field:
type: text
name: last main partition
description: Card Number Partitions after this one aren't counted as the main part of the set, ex "301" or "301/300" rather than "301/900". Default is M.
set field:
type: choice
name: over partition display
description: How to display card numbers larger than the main set?
choice: 100
choice: 100/099
set field:
type: text
name: card number offsets
description: Add this number to the card numbers. Formatted as "start,total"
set field:
type: choice
name: sort special rarity
description: Determines how cards with special rarity are sorted.
choice: with the rest
choice: after other cards
choice: separate numbering
initial: after other cards
set field:
type: boolean
name: sort multicolor in pairs
description: Should multicolor cards be sorted according to pairs like in Shards block?
initial: no
set field:
type: boolean
name: sort hybrid in pairs
description: Should hybrid cards be sorted according to pairs like in Shadowmoor block?
initial: no
set field:
type: info
name: Card stamps. Not universally supported yet.
set field:
type: choice
name: default stamp
include file: /magic-modules.mse-include/stamps/set_choices
description: The default stamp setup to use on supported frames.
set field:
type: choice
name: stamp behavior
include file: /magic-modules.mse-include/stamps/behavior_choices
initial: Standard, rares holostamped
description: How should stamps behave across rarities?
set field:
type: text
name: custom stamp name
description: Set this image in magic-mainframe-extras.mse-include as Custom Stamp, such as "examples/stamp/heart.png". For flat stamps, name the image like "heart flat.png"
set field:
type: choice
name: custom stamp shape
description: What backing shape should be used for the Custom Stamp?
choice: round
choice: triangle
set field:
type: info
name: Watermark links
set field:
type: text
name: custom watermark 1
description: Set this image in magic-watermarks.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 2
description: Set this image in magic-watermarks.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 3
description: Set this image in magic-watermarks.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 4
description: Set this image in magic-watermarks.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 5
description: Set this image in magic-watermarks.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 6
description: Set this image in magic-watermarks.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 7
description: Set this image in magic-watermarks.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 8
description: Set this image in magic-watermarks.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 9
description: Set this image in magic-watermarks.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: text
name: custom watermark 10
description: Set this image in magic-watermarks.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
set field:
type: choice
name: blend with colors
choice: yes
choice: no
choice: shadow
choice: glow
initial: no
description: For 500x500 px watermarks or smaller. Blend watermarks with card colors instead of a solid color. For best results, use a solid black watermark.
set field:
type: info
name: Symbol links
set field:
type: text
name: custom symbol 1
description: Set this image in magic-symbols.mse-include as Custom Symbol 1
set field:
type: text
name: custom symbol 2
description: Set this image in magic-symbols.mse-include as Custom Symbol 2
set field:
type: text
name: custom symbol 3
description: Set this image in magic-symbols.mse-include as Custom Symbol 3
set field:
type: text
name: custom symbol 4
description: Set this image in magic-symbols.mse-include as Custom Symbol 4
set field:
type: info
name: Statistics
@@ -298,6 +399,8 @@ set field:
type: text
name: global_variable_average_opening_hand
script: global_variable_average_opening_hand_statistic()
set field:
type: info
name: Mainframe Template Options
@@ -309,21 +412,6 @@ set field:
type: boolean
name: use flavor bar
description: Enables the flavor bar on Mainframe templates.
set field:
type: choice
name: default stamp
choice: standard
choice: none
choice: acorn
choice: universes beyond
choice: alchemy
choice: alchemy old
choice: custom
description: The default stamp setup to use. Only works on new cards, not supported on all frames.
set field:
type: text
name: custom stamp name
description: The filename of the custom stamp image in magic-mainframe-extras
set field:
type: boolean
name: auto legends
@@ -439,7 +527,7 @@ default set style:
name: watermark
border radius: 0.10
fill type: solid
fill color: rgb(255,255,255)
fill color: rgb(0,0,0)
border color: rgba(0,0,0,0)
masterpiece symbol:
max aspect ratio: 2.5
@@ -487,6 +575,13 @@ default set style:
fill type: solid
fill color: rgb(255,255,255)
border color: rgba(0,0,0,0)
corner shape:
render style: both
choice images:
rounded and antialiased: /magic.mse-game/corners/rounded_antialiased.png
rounded: /magic.mse-game/corners/rounded.png
diagonal: /magic.mse-game/corners/diagonal.png
none: /magic.mse-game/corners/none.png
automatic reminder text:
render style: checklist
direction: vertical
@@ -526,9 +621,20 @@ default set style:
default stamp:
render style: both
choice images:
standard: /magic.mse-game/stamps/foil.png
acorn: /magic.mse-game/stamps/acorn.png
universes beyond: /magic.mse-game/stamps/ub.png
alchemy: /magic.mse-game/stamps/alchemy.png
alchemy old: /magic.mse-game/stamps/alchemy_old.png
custom: {if contains(set.custom_stamp_name, match:".png") then "/magic-mainframe-extras.mse-include/"+set.custom_stamp_name else ""}
standard: /magic.mse-game/stamps/oval.png
none: /magic.mse-game/stamps/none.png
acorn: /magic.mse-game/stamps/acorn.png
heart: /magic.mse-game/stamps/heart.png
universes beyond: /magic.mse-game/stamps/ub.png
alchemy: /magic.mse-game/stamps/alchemy.png
alchemy old: /magic.mse-game/stamps/alchemy_old.png
custom: /magic.mse-game/stamps/heart.png
stamp behavior:
render style: both
choice images:
All holostamped: /magic.mse-game/stamps/oval.png
Standard, rares holostamped: /magic.mse-game/stamps/nonfoil.png
UB, rares holostamped, others flatstamped: /magic.mse-game/stamps/onlyrare.png
All flatstamped: /magic.mse-game/stamps/flat_oval.png
All unstamped: /magic.mse-game/stamps/none.png