Commit Graph

83 Commits

Author SHA1 Message Date
GenevensiS
b2271d8b36 add avatar watermarks (#169) 2025-11-05 21:26:39 -06:00
cajun
15f4ccc781 improve connive and explore
added new face_code to improve this_or_that for action keywords.
face_if_ruletext_flipthis_<keyword>_then_that <type>_else_{this_or_that("<type>")}_end
if this_or_that returns "that <type>", it still resolves as that
if it returns "this <type>" and the face's rule_text matches (it|he|she|they|He|She|They|CARDNAME|THIS) <keyword>, it still resolves as that.
otherwise it switches to "that <type>"
2025-10-12 03:45:24 -05:00
cajun
e8877d0ceb improve autorem
fix bug where Class reminder text was used on creatures with class types
move Room priority above hybrid
energy fallback now overrules auto_reminder()'s input
added similar hybrid fallback
New hierarchy is as follows:
1. The first hybrid symbol in a paragraph where it's at the end of the line
2. A string of energy symbols immediately preceding it
3. Saga, Class, or Room reminder text for relevant types, in that order
4. The first hybrid symbol in the relevant casting cost field.
2025-10-12 00:41:38 -05:00
cajun
1f4641651c Add prototype to M15 Mainframe (#165)
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2025-10-05 19:59:19 -05:00
cajun
399c5d17af add internal_crop script for prototype 2025-09-28 17:30:23 -05:00
cajun
4818a59014 Alias Module (#162) 2025-09-28 07:25:02 -05:00
Aanginer
613514673c Spacecraft (#156)
---------

Co-authored-by: uiwow7 <Voyager.CustomMTG@gmail.com>
Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2025-09-26 10:29:51 -05:00
cajun
ed9478820d Fix #158 2025-09-26 04:11:39 -05:00
cajun
a1c5fd57db Fix #154 2025-09-26 02:30:15 -05:00
cajun
058cabdbfa Update script
fix kicker bug
2025-09-25 11:10:07 -05:00
cajun
5dfe68989d ~SPM Keywords Update (#159)
* Updates English types and keywords to ATL
* Updates German, Spanish, French, and Italian types and keywords to SPM
* Updates Japanese types to SPM, adds Tiered, Job select, Warp and Void, waiting on scryfall for Station, Landers, and SPM
* Adds lang_settings for is_spacecraft and is_planet
* Adds is_mana_cost(param), so keywords can use "for " and "for its X cost" depending on if its a nice cost. Added to Mayhem and Web-slinging/Enweb.
* Updates predef token reminder text
2025-09-24 00:59:41 -05:00
cajun
4273221c3c Reapply "Bump to 2 5 8 (#141)"
This reverts commit 75307ecbe4.
2025-09-23 22:58:06 -05:00
cajun
75307ecbe4 Revert "Bump to 2 5 8 (#141)"
This reverts commit 240c1532ee.
2025-09-23 22:32:25 -05:00
GenevensiS
240c1532ee 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>
2025-09-23 14:53:19 -05:00
cajun
193904386b improve dryad arbor selection 2025-09-11 04:38:34 -05:00
cajun
add2e3b979 special_text, fr fixes
fix Enchant : creature being autocapitalized
move card.special_text definition to the end so it can properly access all card fields
2025-07-03 23:04:41 -05:00
GenevensiS
203a83cf54 Add Sokrates custom frame by DoX (#146) 2025-07-03 22:19:09 -05:00
cajun
895d006c8c popunder, atom-name fix 2025-06-10 23:16:24 -05:00
GenevensiS
3b52ee9d08 Remove duplicate code (#131)
This code is duplicated 30 lines below
2025-05-10 18:22:00 -05:00
cajun
6399f17e60 add isfront/isback face code 2025-05-09 21:26:45 -05:00
GenevensiS
f8250c2dc0 Add casting cost symbol font option to a few templates (#129) 2025-05-07 02:38:45 -05:00
GenevensiS
db9b04be59 Fix bug when rounding negative numbers (#122)
* Fix bug when rounding negative numbers
2025-02-08 18:19:42 -06:00
GenevensiS
60db39d10d Add UNF full art basics (#118)
* Add UNF full art basics
* improve full art basics automation implementation
* fix z index on basic land symbol textbox
2025-02-04 19:51:05 -06:00
cajun
8b9475dc65 Mainframe Battles (#111) 2025-02-01 23:19:14 -06:00
GenevensiS
aa2073f3e7 Added Aetherdrift First-Place showcase (#112)
* Add DFT Full Art Basics

* Add DFT First-Place Showcase

* Add DFT First-Place Walker Showcases assets

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2025-02-01 20:59:32 -06:00
cajun
64fc3828d6 3.0.7
Bug fix for Card Symbol on DFCs
Bug fix for Amass rt
Bug fixes for "this type" capitalization
Bug fixes for CARDNAME on planes
Adds THIS atom that gets the opposite value as CARDNAME
Adds Custom Border automization
2025-01-18 15:01:42 -06:00
cajun
4158a989fd fix capitalization issues on This type 2025-01-11 18:16:08 -06:00
Mihaly-André Hadnagy
8b91073e40 Suggested fix for cright field error in Modern Doublefaced Planeswalker template (#101) 2025-01-11 17:28:31 -06:00
cajun
34e42b7c19 fix flavor bars 2025-01-11 15:12:01 -06:00
cajun
d8809169b6 fix custom watermark issue
a fix for better backwards compatibility made reading the size not work as well. new build_custom_watermark_blend function resolves both problems
2024-12-22 08:36:05 -06:00
cajun
cf578f7c69 improve iterate parameter 2024-10-07 17:33:19 -05:00
cajun
23410b04c9 custom script fix 2024-10-05 07:04:02 -05:00
cajun
647bd1c915 DFC & Exporter Fixes 2024-10-04 19:00:04 -05:00
cajun
b7385c5b20 neonafroman bugfixes 2024-10-03 21:54:07 -05:00
cajun
5a95c927e5 3.0.4 (#92)
Custom Symbol links will now detect if they are smaller than 512px wide, and add padding if they are not. This will do the padding for any old custom symbols without needing to update them. If you need to disable the autopadding, replace the "+" MSE inserts into the link to a "-".
    Fixed a bug where generic mana symbols were misaligned on HD frames.
    Fixed spree +s indenting like modals when they should not.
    Fix layering conflicts with the Lesson symbol and the Alchemy symbol.
    Fix layering conflict with Kaldheim Showcase watermark.
    Fix Mainframe Planeswalker watermark dependency warning.
    Fix Clear Tops looking in the wrong folder.
    Fix blending error on clear cards with colored mana costs.
    Fixed the alignment of the red Star nyx replacement.
    Improved the text on VOW Showcase.
2024-10-03 13:11:24 -05:00
cajun
7dbd7f3494 3.0.2 bugfixes (#86)
M15 Mainframe and Mainframe DFC will use their Style tab "Custom symbol" option if it is not blank; if it is blank it will use the link from the Set tab. Previously they tried to use their Style tab link even if it was blank
Unhandled watermarks (usually due to hard-coded custom watermarks that weren't added to the new system) will now use a blank image instead of throwing an error.
The Crimson Vow showcase now uses its proper indicators.
Fixed the watermark alignment on the Monster Manual Showcase.
Fixed the UB Vehicle frame using the wrong link.

Fixed a number of Mainframe DFC bugs:
Fixed a bug where back face chapter symbols were all snapping to the Chapter 1 position.
Fixed a bug where back face watermarks were blending with the front face colors
Fixed a bug where the front face evobar had a too-low z index.
Fixed an error with backface miracle blending.

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-10-01 15:04:55 -05:00
cajun
5070a82801 custom watermark bugfix 2024-10-01 10:48:31 -05:00
cajun
da4ab9a803 etb errata 2024-10-01 09:13:47 -05:00
GenevensiS
6960d85314 3.0.0 final touches (#84)
---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-10-01 08:42:16 -05:00
cajun
cb6cab414d Rooms and autoreminder prototype (#81)
* add rooms
* add clear splits and fuse
* rebuild the split and fuse images
* add nyx and UB frames
2024-09-29 15:32:32 -05:00
GenevensiS
960dc2a219 Card symbol and transform symbol modifications (#83) 2024-09-29 12:11:46 -05:00
cajun
56318f0e14 fix broken watermark links 2024-09-29 10:46:12 -05:00
cajun
0eff122143 keyword/watermark fix 2024-09-27 19:21:17 -05:00
cajun
54a88f4931 update locales 2024-09-27 15:42:03 -05:00
cajun
3edcd6dbf9 Update script
fix a bug where regex weirdness would kick text after a keyword onto a previous line
2024-09-27 14:38:58 -05:00
cajun
8abb9df8ea improve script caching (#77)
* cache card number
* optimize pull_comma_array
* decouple type from card number

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-26 15:44:41 -05:00
GenevensiS
fb3e5092a6 Update to 2.5.3 (#78)
* Update to 2.5.3

- add `exists_in_package` script function, which take a string argument of the form
"/package-name.package-extension/file-name.file-extension" and return true if the file can be loaded by MSE.
- add 175% export zoom option

* update watermark handling
* collapse card_watermark_1 etc into custom_watermark_link(#)
* added verify_watermark_image, a script that runs in custom watermark fields
* if the field is a potentially valid link, it will run exists_in_package, width_of, and length_of and caches their info in the field
* if the image is too big, it displays it normally instead of erroring

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-26 15:37:23 -05:00
cajun
8f8d9c637a Indicator update (#76)
* update indicator script and remove color indicator dot styling options

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-24 13:44:27 -05:00
cajun
9a7b7949e8 [wip] updating exporters for 2.5 (#75)
* Add Card Regions to DFCs
* Add Hashes
* Add crop_multi_image to help crop with card regions
* bugfix exporters and organize the list
* add dfc splitter support for Cockatrice and Lackey exporters
* fix sizing bugs on Planesculptors exporter
* update icons on exporters missing them
* update namecheck exporter and improve near checking

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
2024-09-24 09:52:17 -05:00
GenevensiS
206de32133 MSE 2.5.2 and Showcase Catchup (#18)
* Updated to MSE 2.5.2
* Added Assassin's Creed Memory Corridor
* Added Bloomburrow Borderless Anime
* Added Bloomburrow Woodland
* Added Compleated Planeswalkers
* Added Duskmourn Paranormal
* Added Kamigawa Neon
* Added Kamigawa Ninja
* Added Kamigawa Samurai
* Added Innistrad Fang
* Added Theros Constellation
* Added Capenna Art Deco
* Added Capenna Golden Age
* Added Capenna Skyscraper
* Added Doctor Who TARDIS
* Added Dominaria Stained Glass
* Added Eldraine Enchanting Tales
* Added Fallout PipBoy
* Added Ikoria Crystal
* Added Innistrad Double Feature
* Added Innistrad Equinox
* Added Ixalan Treasures
* Added Ixalan Legends
* Added Ixalan Caverns
* Added Lord of the Rings Ring
* Added Lord of the Rings Scroll
* Added Ravnica City Mural
* Added Ravnica Dossier
* Added Tarkir Dragon Wing
* Added Thunder Junction Breaking News
* Added Thunder Junction Vault
* Added Thunder Junction Wanted Poster
* Added Unfinity Of Tomorrow
* Added Unfinity Attractions
* Added Secret Lair Baseball
* Added revamped option to Amonkhet Invocations
* Added UB stamp compatibility to old showcase frames
* Added foils and popouts modules
* Add foil_mask blending system
* Fixes #57
2024-09-23 14:11:14 -05:00