2336 Commits

Author SHA1 Message Date
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
twanvl 08a156c113 Allow rotations when checking bounds of symbol parts.
This will be needed to determine the correct symbol size when there are symmetries.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@976 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-05 20:17:32 +00:00
pichoro 5ae7f6b3ab Adjusted artbox for magic-old-split.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@975 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-05 17:48:44 +00:00
twanvl 96a13f6101 Some more stuff on the random pack panel.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@974 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 22:51:21 +00:00
twanvl fab664634b Fixed: 10/C and higher mana symbols do not work.
Regex was incorrect, was "([XYZ0-9])+/W" should be "([XYZ0-9]+)/W"

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@973 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 22:41:45 +00:00
pichoro 488ea49d64 Repaired Japanese locale. No guarantee of accuracy; no errors though. Only updated to point of 0.3.6b release.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@972 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 06:13:17 +00:00
twanvl 83a0315211 All package specific locales are now under the 'package' key in locale files. Wildcards in package names are supported.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@971 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 00:57:29 +00:00
twanvl ae14784fd6 Reduce coupling between ValueEditors/Viewers and Set and StyleSheet.
- Adding of actions is done with an addAction function
 - Files are read from
     - getStylePackage for styling stuff (this is stylesheet)
     - getLocalPackage for symbol and image values (this was the set)


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@970 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-04 00:21:06 +00:00
twanvl 6b0a0fd098 Fixed positioning of shrunk text in rotated dcs
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@969 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 21:25:53 +00:00
twanvl 5ef36a1eec Added RandomPackPanel, for now it is empty.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@968 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 21:15:32 +00:00
twanvl aa950d1821 Use smart_less when sorting collections
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@967 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 19:26:23 +00:00
twanvl 92947dc5b8 Fixed tab key behaviour the first time of viewing a card. Also fixed which editor gets the focus with Tab or Shift+Tab
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@966 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 19:18:44 +00:00
twanvl d00beeb55f Closure operator now behaves as default argument operator, documentation.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@965 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 18:33:17 +00:00
twanvl c5159ebcf7 "div" operator for integer division,
Added parser support for closure operator fun@(args)
Use equal() function for all script comparisons, better support for deciding when to use strings and when to use pointers equality.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@964 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 16:38:33 +00:00
twanvl 6912dfda09 Simplified script VM:
- removed I_RET instruction, return is now implicit at end of script
 - I_POP is not a binary instruction.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@963 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 14:08:11 +00:00
pichoro 03cfd6bb79 Fixed image mask for magic-new-planeswalker.
Fixed "legendname" error involving AE character.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@962 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-03 04:08:44 +00:00
pichoro d2464a0736 Fixing mana font size mistakes dealing with both guild hybrids and #/C hybrids.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@959 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 22:31:14 +00:00
twanvl dfe5531db4 Version bump for 0.3.6b hotfix release
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@958 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 22:22:03 +00:00
pichoro 1d79ab21bf Moving typeline for magic-old up 1 pixel.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@957 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 22:19:58 +00:00
pichoro c7dadbcab4 Mythic rares for Magic. This is an approximation, not a final version.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@956 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 22:09:46 +00:00
twanvl bd09a24b69 These asserts were there because this shouldn't happen, I added them back for debug builds. We really should find the cause of any violations.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@955 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 21:35:10 +00:00
twanvl e2246546b0 Case insensitive string compare inside installers
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@954 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 21:25:53 +00:00
twanvl 9b3f6411f3 Restore tabs in symbol font menu, without making the part after it an accelerator.
TODO: check if this also works on other platforms

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@953 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 20:25:05 +00:00
twanvl f087c62aba Hopefully solved the <P4 crashes of the unicode build
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@952 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 19:59:23 +00:00
pichoro a25c4c2364 Mana costs for magic-textless work now.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@951 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 18:37:13 +00:00