twanvl
2c6c6645f7
Lower case keywords are now recognized, but only if all parameters are given.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1078 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 01:01:51 +00:00
twanvl
1d38312d05
Moved part of keyword matching into a separate function; it was way too long
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1077 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 00:24:02 +00:00
twanvl
b586790421
Cleaned up handling of what things should be drawn by using the DrawWhat enumeration type.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1072 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-06 03:05:40 +00:00
twanvl
6c782bb033
Changed the way the FilteredCardList on the stats panel selects cards:
...
used to: by running scripts on cards and comparing to string value of selected group
now: by keeping a list of group_ids for all cards, and comparing indices
Added 'bin size' attribute for making a histogram of numeric axes.
Added 'Text length' statistic.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1071 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 23:13:26 +00:00
twanvl
52ccd7b573
not much point in the combine being scriptable (?)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1070 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 20:59:47 +00:00
twanvl
9a68c91635
Added 'combine' option to ColorStyle.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1069 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 20:43:11 +00:00
twanvl
8715b0472c
Files are only added to recent sets *after* they have been successfully opened
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1068 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 20:42:20 +00:00
twanvl
08a913686c
Content dependent scripted images of (multiple) choice values are now updated correctly
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1064 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 17:04:03 +00:00
twanvl
6a71b20d26
Files can be written from command line interface
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1054 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 21:01:40 +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
0cb872a0d3
Implemented seed controls on random pack panel;
...
seed settings and pack amounts are stored in settings
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1044 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 22:46:53 +00:00
twanvl
d969ae96bd
remember 9 recent sets instead of only 4
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1043 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 20:02:49 +00:00
twanvl
76d2eb7d42
Remove curly quotes for MWS and apprentice export
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1038 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-02 20:43:45 +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
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
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
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
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
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
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
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
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
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
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
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
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
coppro
ebe26e0444
Minor updates that make things work!
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@945 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-02 02:36:56 +00:00
twanvl
336726b16b
The keyword reminder text box now tries to run the script to see if it contains errors
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@932 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-01 01:29:13 +00:00
twanvl
97ccf34dce
Slightly more information on script errors in keyword reminder text
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@930 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-01 00:50:51 +00:00
twanvl
17a43ec164
Use draw_text instead of text when making symbol images for HTML export
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@927 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-06-01 00:04:22 +00:00
twanvl
ff9dc0ddf0
old style update_url is saved in settings
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@924 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 23:42:17 +00:00
twanvl
06016ac952
fixed regex escaping bug, keywords with params are now no longer recognized if followed by an opening parenthesis
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@922 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 22:48:39 +00:00
twanvl
d147ddc363
Converted mana cost script now works with 2/C costs.
...
A mana cost of "31/2" is now broken up as "3","1/2".
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@920 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 22:13:00 +00:00
twanvl
78e154c481
Added toolbar and menu for switching between graph layouts
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@914 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 20:15:21 +00:00
twanvl
50fe805657
Installed packages will be blessed.
...
For now, everything is considered blessed, because we are not yet using installers everywhere.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@912 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 18:33:23 +00:00
twanvl
7a38986171
Installing and removing packages from an installer now WORKS
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@908 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 16:42:15 +00:00
twanvl
f3ff6f22ae
Renamed global PackageManager object to package_manager to reduce confusion
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@907 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 14:45:04 +00:00
twanvl
c8d8d72abc
PackagesWindow can show just the packages from an installer.
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@905 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 14:36:23 +00:00
twanvl
9c18ed51e2
Put PackageUpdateList into its own file
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@904 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 14:02:53 +00:00
twanvl
d80c5e60a4
Just commenting
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@902 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-31 12:57:32 +00:00
twanvl
4ad3ea8188
Added the old update checker again (with #ifdef)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@892 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-30 19:34:21 +00:00
twanvl
891f044fd7
fixed adding/deleting multiple cards (next time: commit the whole directory)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@889 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-30 18:21:50 +00:00
twanvl
9f8b35bfed
Fixed shrink(-overflow) for rotated fields
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@871 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-19 17:47:02 +00:00
twanvl
e61aed5c6b
Names of add/remove card/keyword actions
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@868 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-18 21:10:13 +00:00
twanvl
6215bbd6dc
Fixed exporting of symbol font images without text
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@866 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-18 20:30:16 +00:00
twanvl
e99dd02443
Fixed: keywords no longer apply inside <atom> tags (most notably inside CARDNAME)
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@863 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-18 19:06:01 +00:00
twanvl
51ad215c54
Copy/pasting multiple cards
...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@859 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-18 17:56:33 +00:00