Commit Graph

74 Commits

Author SHA1 Message Date
GenevensiS dc348b4812 Add to_json and from_json script functions 2025-08-07 18:45:12 +02:00
GenevensiS d85f5a4927 add add_card_to_set script function
make styling_data initializable in new_card script function
2025-07-19 18:18:33 +02:00
GenevensiS 0e4c91b940 add insert_image and add_bleed_edge functions 2025-07-14 01:23:26 +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 c577417191 add get_mse_path script function 2025-05-22 12:39:09 +02:00
GenevensiS f227609f60 Merge pull request #36 from TomTkacz/master
implemented import_image function
2025-04-13 14:43:15 +02:00
GenevensiS 1a3940c16d localization pattern 2025-04-11 03:25:21 +02:00
GenevensiS cdfec5d00c add docs 2025-04-10 20:01:05 +02:00
GenevensiS 0309f7d16c Merge pull request #26 from G-e-n-e-v-e-n-s-i-S/get-mse-version
Add get_mse_version script function
2024-10-04 23:23:26 +02:00
GenevensiS e8b3b260b6 add docs 2024-10-04 23:15:37 +02:00
GenevensiS e461eed88f Merge pull request #25 from G-e-n-e-v-e-n-s-i-S/get-card-stylesheet
Add get_card_stylesheet script function
2024-10-04 23:13:47 +02:00
GenevensiS e9c6dbb05f add docs 2024-10-04 23:09:05 +02:00
GenevensiS ecb48aebf0 Add get_card_stylesheet script function 2024-10-04 22:41:06 +02:00
GenevensiS 39dbdf1ab2 Merge pull request #18 from G-e-n-e-v-e-n-s-i-S/file-exists
Add exists_in_package script function
2024-09-26 15:22:15 +02:00
GenevensiS 28dd64ddeb Update index.txt 2024-09-17 06:30:17 +02:00
GenevensiS 4054443a72 add exists_in_package script function 2024-09-17 06:13:01 +02:00
GenevensiS 9b34ae5446 add get_card_styling function for export scripts 2024-09-16 08:59:55 +02:00
Djack Donovan d1bac74eb9 Script: to_date accepts "now" as an argument
indentation fix
2022-11-18 21:40:12 -05:00
Brendan Hagan 52a918be39 misc: remove extra_data function 2022-07-14 17:33:22 -04:00
Brendan Hagan 4f6c984f48 misc: extra_data doc entry 2022-07-01 20:51:17 -04:00
Twan van Laarhoven 7d06e903a4 Rename script function rotate -> rotate_image 2020-04-25 23:46:30 +02:00
Twan van Laarhoven 8f8e2cea65 Expose the 'warning' function, and added a similar 'error' function.
Add documentation.
2020-04-23 20:22:43 +02:00
Twan van Laarhoven 24f4b4edba Add type_name function to query the type of a value 2020-04-18 22:03:25 +02:00
twanvl 968f557511 recolor_image function can now be used with custom colors
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1477 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 18:44:44 +00:00
twanvl 6bfe384fb6 images for recolor_image documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1476 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 18:25:55 +00:00
twanvl e01b24aa63 Added 'recolor_image' function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1473 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 18:19:05 +00:00
twanvl ca0e762b64 New image functions:
* invert
 * flip_horizontal
 * flip_vertical
 * rotate

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1472 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 14:56:45 +00:00
twanvl 17c766c8fc documented "to_image"
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1467 0fc631ac-6414-0410-93d0-97cfa31319b6
2010-08-03 13:48:02 +00:00
twanvl ad5e22e7c5 Added script support for wxDateTime values:
- added ScriptDateTime type
 - added to_date function
 - added date formating support to to_string.
 - documented all of the above.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1348 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-11 16:52:07 +00:00
twanvl 6afbbe986c more documentation spellchecking,
in documentation: @<tag>@ now highlights as a tag

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1279 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-01 21:22:45 +00:00
twanvl bd2edc947f documented check_spelling function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1278 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-01 21:19:28 +00:00
twanvl 664c12ec52 spellchecking the documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1277 0fc631ac-6414-0410-93d0-97cfa31319b6
2009-01-01 20:39:30 +00:00
twanvl e423b6956f documented the split_text script function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1255 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-27 19:39:20 +00:00
twanvl f62bc25e66 documentation typo: masked_blend != linear_blend
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1221 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-10-13 17:56:35 +00:00
twanvl 9c9a2aec61 Added note that in_context is slow
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1195 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-09-03 14:39:00 +00:00
twanvl f510a35647 typo in documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1173 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-27 11:58:29 +00:00
twanvl 2eb40f9503 documentation: write_set_file is new in 0.3.8
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1170 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-24 19:49:56 +00:00
twanvl 42d40dbd1e Added Package::saveCopy, which is used to implement the write_set_file script function.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1169 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-24 19:48:51 +00:00
twanvl c8fb341e1a Fixed random_int and random_real functions; added random_boolean.
Split random_select into random_select and random_select_many.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1161 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-24 16:08:13 +00:00
twanvl fe5878e3d8 Documented add cards scripts and the new_card function
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1149 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-11 21:10:59 +00:00
twanvl c6fe6634dd Tweaked the way to use getScript() like functions;
Made condition and default_expand parameters of expand_keywords optional.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1080 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 01:54:13 +00:00
twanvl 36065707ab documented expand_keywords changes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1079 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 01:47:28 +00:00
twanvl 04a040dc29 random pack generation works
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1045 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 01:38:46 +00:00
twanvl 13a37f4734 Simplified compilation of 'assert' pseudo function;
Added remove_duplicates flag to sort_list function;
Fixed documentation of <size:> tag

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1028 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-22 22:46:04 +00:00
twanvl 53808346a4 Allow "or else" construct to be used for error recovery
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1016 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 17:14:49 +00:00
twanvl 9073764a62 documented new script functions
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1015 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 16:28:46 +00:00
twanvl dfae1b2729 Added count_chosen function;
Added I_DUP instruction

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1007 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 14:41:38 +00:00
twanvl fe2e3fb9c8 Be more strict about type conversion:
* numbers are no longer auto converted to booleans, use to_boolean or != 0
  * booleans are no longer auto converted to numbers, use to_int
  * strings will soon no longer be auto converted to numbers, use to_int

Added version information ("since 0.3.7") to documentation

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1006 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 13:34:57 +00:00
twanvl 158ecf67ad Now all regex functions use ScriptRule.
The *_rule functions can now be considered deprecated
Documented this by removing mentions of the rule functions, except for a mention of backwards compatibility.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@997 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-19 00:37:48 +00:00