Commit Graph

538 Commits

Author SHA1 Message Date
GenevensiS 513612cd0e Dark mode 2025-10-09 17:57:20 +02:00
GenevensiS 78b93e5701 cleanup 2025-08-11 17:54:52 +02:00
GenevensiS 81e9a1e26f Card data in images (start)
* Add uuid implementation

* Simplify uid implementation

* Check for uid conflicts upon adding/copying cards

* Remove unnecessary checks

these are already checked as part of the first loop, since they were added to set.cards

* Implement card linking

* refactor to avoid triple loop

* Start link visualization

* Continue link visualization

* formatting

* add missing locale entries

* improve layout

* improve UI refresh

* copy links when copying cards

* implement second face editor

* refactor using macros

* get references

* pasting multiple cards and links

* start refactoring editors

* continue refactoring editors

* continue refactoring editors again

* finish refactoring editors

* refresh card list on link editor event

* tweak event handling

* Add insert_image script function

* change parameter type

* add script functions to get cards

* add dimensions_of script function

calculate both dimensions simultaneously while rendering the image only once.

* save value even if not editable

* add get_mse_locale script function

* Change zoom scale choices

* bug fixes

* Scale symbol spacing with font size

* sync locales

* standardize line ending

* handle links in new_card

* initial

waiting on wxWidgets 3.3.1

* update comment

* store rect in image filename

* store rect in temp file name

* Update package.cpp

* change line endings
2025-08-11 16:57:04 +02:00
GenevensiS 3bf9de18b1 Implement unique IDs and card linking 2025-08-11 16:17:13 +02:00
GenevensiS dc348b4812 Add to_json and from_json script functions 2025-08-07 18:45:12 +02:00
GenevensiS 2b9bc1f296 Add cutter lines option when printing 2025-08-01 13:54:12 +02:00
GenevensiS d74879b6dd fix empty locale bug 2025-07-24 10:05:42 +02:00
GenevensiS 397cb31dad tweaks to sliders 2025-07-22 08:43:13 +02:00
GenevensiS 5cd8069bf1 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.
2025-07-21 04:31:30 +02:00
GenevensiS 51f882315a fix symbol-font bug
seen here:
https://github.com/MagicSetEditorPacks/Full-Magic-Pack/issues/149
2025-07-20 07:50:02 +02:00
GenevensiS 70e44474a5 fix "referencing nonexistant file" bug
improve internal error message
2025-07-15 02:30:11 +02:00
GenevensiS e4e5b6840e rewrite print layout logic
allow for different size cards
2025-07-14 00:41:25 +02:00
GenevensiS 58ab8f3636 Make some values scriptable
color radius
color left width
color right width
color top width
color bottom width
font shadow displacement x
font shadow displacement y
font shadow blur
2025-07-14 00:23:45 +02:00
GenevensiS dafd1a4f19 Load all fonts folders 2025-07-10 17:17:10 +02:00
ebbit1q a953d72f88 fix string typing error 2025-06-30 00:32:05 +02:00
GenevensiS e45353af9b Add Json importer (#46)
add boost-json to dependencies
2025-06-21 07:53:35 +02:00
GenevensiS 87fbc0e80e Implement CSV / TSV import (#45)
- add csv/tsv importer
- add `make_map` script function
- add `alt name` field property
- add `construction script` field property
- add `construction script` game property
2025-06-09 04:53:33 +02:00
GenevensiS fa300f6e4c allow additional individual choices in slider fields 2025-06-02 14:49:10 +02:00
GenevensiS 616ea3f725 Create slider field type 2025-05-22 12:52:26 +02:00
ebbit1q 8efb2fa492 fix compile error
fixes string typing error that happens in font.cpp
2025-04-14 00:57:49 +02:00
GenevensiS 71350f8fe6 Merge pull request #35 from TomTkacz/local_fonts
font rendering/exporting without installing system-wide
2025-04-10 15:35:47 +02:00
GenevensiS 28b2862bd8 simplify code 2025-04-08 01:47:45 +02:00
GenevensiS dca935a966 Add support for .otf files, add option to load subdirectories 2025-04-07 23:12:58 +02:00
TomTkacz ee4cf2d7b4 made fonts available without installing system-wide 2025-03-12 05:53:02 -05:00
GenevensiS 9ed0569a6d Fix freeze when loading a set with missing templates 2025-03-08 23:14:30 +01:00
Brendan Hagan 6435055d53 feat: add card regions to declare image slice regions for DFCs 2022-08-13 23:58:28 -04:00
Brendan Hagan 05855b812a feat: add ability to control zoom/angle on generated card image 2022-08-13 23:53:29 -04:00
Brendan Hagan e0d9e84740 feat: restore locale level translations for other packages (fixes #41)
This is only a partial fix though, it basically restores the old behavior as a default. That doesn't help though with flipping the definitions to get stuff out of the UI Locale file though. So that'll have to come next for allowing wildcard resolutions to be done from the game(?) or maybe locale extension files?
2022-08-02 21:42:03 -04:00
Brendan Hagan 78227a30da feat: add internal support for underlined text (closes #29) 2022-07-26 22:37:03 -04:00
Brendan Hagan e0f5849a9c misc: change default export_zoom to 100% (fixes #26) 2022-07-18 19:55:59 -04:00
Brendan Hagan 9fe75933dd fix: use export zoom as a double to properly handle non-int scales 2022-07-09 14:48:05 -04:00
Brendan Hagan 9dbb65b109 fix: use canonical name for stylesheet settings (fixes #8) 2022-07-08 23:00:01 -04:00
Brendan Hagan 894d13fbdb feat: restore ability to export using viewer rotation angle 2022-07-07 23:23:35 -04:00
Brendan Hagan 95fdaa776c misc: throw internal image extension behind a preference setting 2022-07-04 01:57:32 -04:00
Brendan Hagan 616fe1aad7 feat: add internal storage scale option to preferences window 2022-07-04 00:52:53 -04:00
Brendan Hagan 4173d5017b feat: revert hack for time card columns, use scripts instead 2022-06-20 21:06:27 -04:00
Brendan Hagan 15ad48a5be feat: super sloppy way of adding more card list columns (created, modified, notes) 2022-06-15 23:08:33 -04:00
Brendan Hagan 66d7f7f583 feat: cleanup unused fields from zoom/export preference changes 2022-06-14 20:04:15 -04:00
Brendan Hagan 6df6aec42d feat: uncouple export zoom from display zoom 2022-06-14 20:04:15 -04:00
Brendan Hagan ab40f587fa misc: export images at 400% scale instead of 100% 2022-06-14 20:04:15 -04:00
Twan van Laarhoven c7377303cf Make templates localizable (Closes #100) 2020-10-03 14:38:39 +02:00
Twan van Laarhoven 5b0979f58e unordered_map for locale, and const functions where possible 2020-09-27 21:53:42 +02:00
Twan van Laarhoven 7725156225 Use enum class instead of global enum 2020-09-27 18:35:51 +02:00
Twan van Laarhoven e7490486c4 Fix #84: "menu_item" instead of "menu item" for symbol font localization 2020-09-27 15:24:26 +02:00
Twan van Laarhoven a9077cd265 Disable auto replaces that match an empty string.
Some people are having problems with these suddenly showing up and making typing impossible. This doesn't fix the cause of the ARs appearing, but it at least prevents it from making MSE unusable.
2020-09-27 15:04:39 +02:00
Twan van Laarhoven 7a788c724d Don't assert() check_tagged, that causes assert failures in debug mode for code that works in release 2020-09-27 14:02:29 +02:00
Twan van Laarhoven 04b239322e Fix #90: expand_keyword crashed when string ended with tags because of iterator out of bounds. 2020-09-27 01:12:45 +02:00
Twan van Laarhoven 0fc9480586 Make sure that after_reading is called when loading a Symbol. This fixes #68 2020-06-14 22:25:43 +02:00
Twan van Laarhoven f97cf4236d Fix #70: overlapping keyword matches show reminder text for both keywords, now longest match is used 2020-06-10 00:00:38 +02:00
Twan van Laarhoven 688a25eb83 Fix #67 2020-06-02 19:48:43 +02:00