pichoro
a70d9370a3
Fixed an error in Vanguard style when printing or doing print preview.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1026 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-20 22:42:04 +00:00
pichoro
2d91d4dc18
Colored lands for Magic-New-Flip.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1025 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-15 23:27:08 +00:00
twanvl
4bab20d67c
Fixed: Incorrect comparison operator for AColor caused Scriptable<AColor>s to not be updated when only the alpha changed.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1024 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-11 18:01:36 +00:00
twanvl
3c4aa8346b
Correctly merge backspace actions
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1023 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-11 17:37:39 +00:00
twanvl
c733a1fae4
delete commented out code
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1022 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-11 17:08:21 +00:00
twanvl
8881eef42d
Changed Pack structures
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1021 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-11 17:07:51 +00:00
twanvl
f235eeb100
Non-integer numeric values are sorted correctly in graphs
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1020 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-11 16:38:14 +00:00
twanvl
684de303e0
Fixed crash caused by exception in SetWindow ctor
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1019 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 23:03:29 +00:00
twanvl
a0e0ab7149
controls to select packs on the RandomPackPanel
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1018 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 22:32:16 +00:00
twanvl
10fdcc422b
documented precedence of ^ operator
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1017 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 21:55:52 +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
bde65525ad
some fixes to ^ operator
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1014 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 16:03:13 +00:00
twanvl
7cb2292d36
Added ^ power operator,
...
Added abs, random_int, random_real, random_shuffle, random_select script functions.
Made == comparison of doubles use a small epsilon, so things like 3/2 == 1.5 are actually true.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1013 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-07-09 15:51:07 +00:00
pichoro
69fed99633
New saturated multicolor and dark artifacts for magic-new-flip, magic-new-split, magic-new-promo, and magic-extended-art styles.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1012 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-30 20:07:59 +00:00
twanvl
64b7912835
Incremented version number to 0.3.7
...
When saving files an older version number is used if that version of MSE would be able to open the set
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1011 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 16:31:40 +00:00
twanvl
c0669fb658
Fixed length function to work correctly for ScriptObjects, in particular for TextValues.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1010 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 15:13:04 +00:00
twanvl
737dc6f15e
docuemntation: + also concatenates lists
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1009 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 15:03:27 +00:00
twanvl
c0d114c4a2
Fancier error messages for assert(X == Y)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1008 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 14:51:20 +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
ba2665eb49
Open sets in a new window.
...
TODO: don't allow the same set file to be opened twice, fork a window for it instead
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1005 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-28 13:24:45 +00:00
pichoro
16dcf5bf42
Better Japanese translation by Admonisher.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1004 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-25 21:13:13 +00:00
twanvl
40f1682b73
Don't try to draw text on symbols if there is no font
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1003 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-25 12:42:44 +00:00
twanvl
37329ec63e
Use KaywordParamValue objects for sanity checking reminder text scripts, this fixes:
...
"Error message "String param1 has no member 'value'" when using param1.value in custom keywords."
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1002 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-25 12:42:20 +00:00
twanvl
ecb5477958
Work around bug in wx path conversion from filenames in zip files for files with strange (unicode) names
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1001 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-25 12:40:21 +00:00
pichoro
9c5c3de62a
New affiliation symbols for VS.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1000 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-24 03:00:48 +00:00
pichoro
8946d7b022
Adding shrink-overflow to VS name.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@999 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-24 00:39:48 +00:00
coppro
f2055044f9
Changed from a critical section to a mutex for error handling.
...
show_pending_errors() was being called over and over again from the GUI
update system - somehow it managed to have a single thread in two places
at once. Also tried recursive mutex, resulted in infinite dialogs until
an out-of-memory crash.
Also, minor conversion fix.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@998 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-21 05:02:46 +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
twanvl
5ece2dbb86
More ScriptRule usage
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@996 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-19 00:04:28 +00:00
twanvl
a3d209ae35
Use ScriptRule also for regex functions, optimizing them by pre-compiling default arguments
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@995 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 23:26:41 +00:00
twanvl
13157f6d67
Make ScriptClosure work correctly in combination with ScriptCompose: have a local scope.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@994 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 23:25:26 +00:00
twanvl
e86d546c4a
Some more examples for break_text
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@993 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 23:24:42 +00:00
twanvl
a9c5f72fdc
Make == script operator to work correctly on collections (lists)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@992 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 23:11:26 +00:00
twanvl
b7ffca6cfc
Split regex related script functions into a separate file.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@991 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 22:25:45 +00:00
twanvl
864903bc0c
Use closure stuff for making built in *_rule functions, simplifying the code.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@990 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 22:17:56 +00:00
twanvl
296cf8197a
Also init dependencies of non rule form expand_keywords
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@989 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 21:45:12 +00:00
twanvl
95d38f9ba6
Added 'assert' pseudo function so I can run some tests of the script code
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@988 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 21:01:17 +00:00
twanvl
2662f9d4bf
Optimize default arguments (@ operator) into script rules.
...
The plan is to deprecate rule form completely, so instead of replace_rule(match:..) write replace_text@(match: ...)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@987 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 19:25:18 +00:00
twanvl
50b09c7673
Allow // comment in documentation
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@986 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 19:23:25 +00:00
twanvl
1d4a3c700b
Improved documentation of functions and default arguments a bit
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@985 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 18:56:29 +00:00
twanvl
9fd097beb7
Use a lower quality in the print preview
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@984 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 15:44:33 +00:00
twanvl
dae6bbe380
Make windows 9x (ascii) build nag when run on other windows versions.
...
The idea is to prevent people from using the win9x fix when there are built issues with the Unicode version.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@983 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 15:37:35 +00:00
twanvl
07966001ff
Translate image slice window with locale
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@982 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-18 14:37:04 +00:00
twanvl
83e632f5af
Fixed possible crash bug with card specific style options. By changing the set stylesheet it was possible for the option values to be matched with the wrong fields.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@981 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-17 17:56:15 +00:00
pichoro
72864e91cb
Simplified Chinese translation.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@980 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-16 04:10:29 +00:00
twanvl
698d7e1f9f
No age is Age(0), so we don't refresh symbols all the time
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@979 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-06 19:03:56 +00:00
twanvl
3267ac0cad
Fixed bug caused by case sensitivity of filenames in newFileName
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@978 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-06 19:03:30 +00:00
twanvl
902a85f113
Allow symbol_variation script function to load images from the stylesheet by filename
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@977 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-05 20:36:20 +00:00