Bump to 2 5 8 (#141)

* Bump to 2.5.8

- Hard code exception for word "plains" in english_singular and english_plural functions
- Add font preloading by TomTkacz
- Add import_image function by TomTkacz
- Fix freeze when loading a set with missing templates

* add locale entries

* include localized keywords and statistics

* Add slider fields and get_mse_path

* Allow "Default" in slider fields

* better fix for print bug

* don't draw checkerboard when image field has default

this allows an image field to be transparent before an image has been selected by the user

* allow additional individual choices in slider fields

* Add CSV / TSV importer

* Update README.md

* move game scripts to separate file

* add json import

* format english locale

* format foreign locales

* localize

* finish locales

* cleanup

* minor tweaks

* fix bug in import csv

* optimize card counts display

* tighten conditions on drop down menu closing

* widen welcome window buttons

* Update changelog.txt

* tweaks

* update cli

* add locale entries, add changelog entries

* make some values scriptable, rewrite print layout logic

* fix "referencing nonexistant file" internal error

the error would happen when an image or set symbol file was changed or deleted, then the set was saved, then the change or deletion was undone

* add add_card_to_set script function

am I crazy or was there no way to do this from the CLI?

* fix symbol font bug

* add global_script statistics dimension property

this script is ran once at the start, and its result is stored in the 'global_value' variable, which is accessible to the regular script.

with this we can get rid of the set.global_variable_average_opening_hand field, and make sure its script is ran only once, when the user clicks on the relevant statistics dimension

* Add to_json and from_json script functions

* Update changelog.txt

* bump wxWidgets to 3.3.1

* Update changelog.txt

typos and today's prs

---------

Co-authored-by: cajun <kajunkittyavenger@gmail.com>
Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
GenevensiS
2025-09-23 21:53:19 +02:00
committed by GitHub
parent b81e219531
commit 240c1532ee
46 changed files with 12281 additions and 1885 deletions

View File

@@ -9,22 +9,57 @@ __Mainframe Battles (Single-face)__
• The template supports the Universes Beyond texture and stamps
• The template supports Nyx, Snow, Vehicle, and Custom border on the Boxed and Spillover styles.
__MSE 2.5.8__
GenevensiS and TomTkacz have been in the C++ mines making MSE sing like she hasn't in a while.
• On Windows, fonts are now automatically loaded from any folder containing "fonts" in its name (and its subfolders) and don't need to be installed manually. Mac and Linux users will still need to install.
• Fixed a silent freeze that could occur if you opened a file and were missing templates for it.
• Dropdown menus will no longer be closed when a console message appears.
• Fixed handling of the word "Plains" in the scripts `english_singular` and `english_plural`.
• Added a field type "slider", which provides a slider UI for options that are exclusively numbers.
• Added `import_image` and `get_mse_path` scripts to allow MSE to load external images. In a later update we will use these to avoid needing to reload when changing magic-mainframe-extras files.
• Image fields using a default image will no longer display a checkerboard pattern where the image is transparent.
• Added `include localized file` token, providing support for loading localized files for more seamless localization usage.
• Added basic CSV / TSV / JSON importers, available from the Cards menu. Scryfall JSON files are supported. In a later update, fully customizable user written importers will be available.
• Added `alt name` field property. The CSV / TSV / JSON importers will look for these names when parsing, to know which field to populate.
• Added `import script` field property. This script will be applied to the value found in the imported file, when creating the cards with the `new_card` function.
• Added `import script` game property. This script is run as the final step of the `new_card` function, to do some global cleanup.
• Added `stylesheet`, `styling_data`, `extra_data` and `notes` keys to the `new_card` function, so that these values can be populated.
• Added `add_card_to_set` script function, to add a card to a set (for use in the CLI).
• Added `make_map` script function, which takes a list of keys and a list of values, and produces a map. This allows for dynamical map initialization.
• Added `resize_image` script function, to change an image's size.
• Added `insert_image` script function, to embed an image inside another.
• Added `to_json` and `from_json` script functions, which can convert arrays, maps, cards, keywords, packs and sets.
• Added `add_bleed_edge` script function, to add a crude print bleed edge to an image.
• Added `global script` statistics dimension property. This script is run first and only once, instead of once per card like the normal script is. Its result is then available to the normal script in the `global_value` variable.
• Added `folder name` package property.
• Added `silver` and `gold` color words, representing rgb(200,200,200) and rgb(200,180,0) respectively.
• Added selected card count, filtered card count and total card count info to toolbar.
• Made a few values scriptable (border color radius/left width/right width/top width/bottom width, and font shadow displacement x/displacement y/blur)
• Rewrote print layout logic so it accommodates for DFCs and different sized cards. Added cutter lines and card spacing options.
• Fixed "referencing nonexistant file" error that could show up when undoing an image change or deletion
__More New Templates__
Thanks to GenevensiS for their continued work on keeping up with the Showcases!
• Add the Aetherdrift First Place, First Place Planeswalker, and First Place Full Art land frames. Without access to the Space Cadet font, we don't plan to make the Rude Riders variant.
• Added the Tarkir Draconic, Draconic Adventure, Ghostfire, and Ghostfire Planeswalker frames
• Added the EOE Stellar Sights frame
• Added the Secret Lair Arcade frame
• Added the MKM Magnified Showcase frame
• Added the UNF, ONE, LCI Full Art land frames. Those and NEO have code to detect or manually select up to two basic types.
• Added the Mechanic Reminder frame, for things like Start your engines!
• Added Grapple's Old Sagas frame!
• Added Grapple's Old Sagas frame
• Added DoX's Sokrates frame
• Added TorskeRavn's Expedition 33 frame
• Added Kermit7331's Crytal Caves frame
__Other Updates__
• Updated types and keywords to Tarkir Dragonstorm
• Updated types and keywords to Avatar: The Last Airbender
• Added word_lists_linux as a workaround for Linux users having issues with generated word_lists.
• Added a Style option to change Casting Cost Mana Symbols to Mainframe, Adventures, Battles, Planeswalkers, and Sagas.
• Added custom fonts module to Full Art Basic Lands.
• Added popunder support to M15 Mainframe.
• Added old tap symbol support to GenevensiS frames.
• Updated the Checklist frame to use magic-modules.
__Template Code Updates__
• color_background() now accepts three new parameters, artifact_blend, hybrid_blend, and multicolor_blend, which default to "mask", which behaves the same as before. Setting these to "black" will have them blend as only their respective base frame; artifact, colorless, or multicolor; without the color gradient. Setting these as "white" does the reverse, using the gradient alone and not the base cards. This allows you to skip having a dozen solid black/white images for blending, which we are rolling out to old frames as needed.
@@ -36,4 +71,6 @@ __Bug Fixes__
• Fixed a bug where the Set tab Inverted Common Symbol wasn't working on most frames.
• Fixed some bugs with automated custom border with multicolor and overlapping effects.
• Fixed a bug in Full Art Lands w/Basic Land Symbol where the textbox effect wasn't displaying.
• Fixed a bug rounding negative numbers.
• Fixed a bug rounding negative numbers.
• Fixed a bug in the French localization where the type after Enchant was being incorrectly capitalized.
• Fixed issues with special_text not having access to certain card fields.