Add prototype to M15 Mainframe (#165)

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
cajun
2025-10-05 19:59:19 -05:00
committed by GitHub
parent 69593826a5
commit 1f4641651c
31 changed files with 443 additions and 52 deletions

View File

@@ -33,7 +33,7 @@ include file: language
include file: statistics_script
include file: /magic-blends.mse-include/new-blends
############################################################## Versioning
version_date := {"2025-02-01 Template Pack 3.1.d: Mainframe Battles - Stations"}
version_date := {"2025-02-01 Template Pack 3.1.e: Mainframe Battles - Prototype"}
version := version_date
############################################################## Common filters
############################################################## Utility
@@ -153,8 +153,8 @@ crop_safe :=
else crop(input, offset_x: offset_x, offset_y: offset_y, width: width, height: height)
}
#### Crop out the middle section of an image
internal_crop:= {
# given input, image to crop
internal_crop := {
# given img, image to crop
# given height, height of input
# given width, width of input
# given left/top, minimum left/top edge coordinate
@@ -187,7 +187,6 @@ internal_crop:= {
cut_verti := true
)
)
# rollover large distance
internal_space := if cut_horiz then right - left else if cut_verti then bottom - top else 0
excess_crop := 0