Add corners options to some showcases (#44)

* Add corners option for Strixhaven showcases, Amonkhet Invocation, Dungeon Module, Secret Lair Full Art, and Unstable Basics
* Added option to remove name background from Unstable Basics
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
GenevensiS
2024-05-26 10:24:24 +02:00
committed by GitHub
parent fd4b8e4c89
commit 056abce80f
168 changed files with 358 additions and 894 deletions

View File

@@ -2597,59 +2597,8 @@ card field:
card list name: Partition Select
card list column: 620
card list width: 100
choice:
name: before normal
choice: 0
choice: 1
choice: 2
choice: 3
choice: 4
choice: 5
choice: 6
choice: 7
choice: 8
choice: 9
choice: A
choice:
name: after normal, main set
choice: B
choice: C
choice: D
choice: E
choice: F
choice: G
choice: H
choice: I
choice: J
choice: K
choice: L
choice: M
choice:
name: after main set
choice: N
choice: O
choice: P
choice: Q
choice: R
choice: S
choice: T
choice: U
choice: V
choice: W
choice: X
choice: Y
choice: Z
choice:
name: help
choice: This is the partition selecter
choice: You can use this to sort cards in different sublayers
choice: 0-9 go before the main count, like face commanders
choice: A is the main count
choice: B-M go after, but still count in the set total
choice: N-Z go over the set total, like #301/300
choice: You can change the flip point in the Set tab if you need to
choice: with option "Last main partition", which defaults to M
initial: A
include file: /magic-modules.mse-include/information/choices_partition
default: default_partition()
card field:
type: text
name: partition

View File

@@ -32,7 +32,7 @@ include file: language
include file: statistics_script
include file: /magic-blends.mse-include/new-blends
############################################################## Versioning
version_date := {"2024-05-24 Mainframe 1.3.b Showcase Catchup: Include Modules"}
version_date := {"2024-05-24 Mainframe 1.3.c Showcase Catchup: Showcase Corners"}
version := version_date
############################################################## Common filters
############################################################## Utility
@@ -633,10 +633,11 @@ partition_index := {
if ind == "" then ind := "A"
ind
}
default_partition := {"A"}
#### determine if a card is "over-partition", ie should be excluded from the main set count
over_partition := {
mn_pos := if set.last_main_partition == "" then "M" else to_upper(substring(set.last_main_partition, end:1))
partition_scores[partition_index()] > partition_scores[mn_pos]
(partition_scores[partition_index()] or else 10) > (partition_scores[mn_pos] or else 22)
}
partition_scores := [
0:0, 1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8, 9:9,
@@ -3702,7 +3703,7 @@ nameline_offset_height_3 := { 0 }
card_stamp_default := {
shape := styling.default_stamp or else set.default_stamp
stamp_behavior := styling.stamp_behavior or else set.stamp_behavior
if stamp_behavior == "default" then stamp_behavior := set.stamp_behavior
if stamp_behavior == "default" or stamp_behavior == "flatstamped default" then stamp_behavior := set.stamp_behavior
rare_face := is_rare(field:field)
stamp_behavior_checks[stamp_behavior](rare_face:rare_face, shape:shape)
@@ -3721,12 +3722,10 @@ stamp_behavior_checks := [
]
### The image to use for custom stamp
custom_stamp := {
flat := not is_foil_stamped(field:field)
if set.custom_stamp_name != "" and has_png(set.custom_stamp_name)
then "/magic-mainframe-extras.mse-include/" + un_png(set.custom_stamp_name) + (if flat then " flat" else "") + ".png"
else "/magic-modules.mse-include/stamps/375x523 " + (if flat then "flatstamped " else "") + "heart.png"
}@(field:1)
}@(flat:false)
### The shape of the background stamp for templates
### This can be overwritten to give a template a special stamp for the heart stamp, for example
stamp_shape := {
@@ -3759,8 +3758,9 @@ card_stamp_image :=
dimensions := map.width + "x" + map.height
dimensions := card_stamp_possible_dimensions[dimensions] or else (if map.width > map.height then "1039x744" else "744x1039")
shape := card_stamp_field(field)
if shape == "default" then shape := set.default_stamp
if shape == "custom" or shape == "flatstamped custom"
then custom_stamp(field: field)
then custom_stamp(flat:not is_foil_stamped(field:field))
else "/magic-modules.mse-include/stamps/" + dimensions + " " + shape + ".png"
)
)

View File

@@ -6,11 +6,11 @@ choice images:
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: { custom_stamp() }
custom: { custom_stamp(flat:false) }
flatstamped standard: /magic.mse-game/stamps/flat_oval.png
flatstamped acorn: /magic.mse-game/stamps/flat_acorn.png
flatstamped heart: /magic.mse-game/stamps/flat_heart.png
flatstamped universes beyond: /magic.mse-game/stamps/flat_ub.png
flatstamped alchemy: /magic.mse-game/stamps/flat_alchemy.png
flatstamped alchemy old: /magic.mse-game/stamps/flat_alchemy_old.png
flatstamped custom: { custom_stamp() }
flatstamped custom: { custom_stamp(flat:true) }