Commit Graph

1072 Commits

Author SHA1 Message Date
twanvl efcf445878 The card shape depends on the stylesheet
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1088 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 20:50:35 +00:00
twanvl 44f6acade7 Dependencies on stylesheet are marked, and updated when the stylesheet changes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1087 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 20:50:19 +00:00
twanvl ee9060077b Fixed conversion bug in position_of function;
to_real no longer needs to throw exceptions when conversion fails

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1086 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 19:39:06 +00:00
twanvl 7eb05cbd7e Moved clean_filename to file_utils.cpp where it belongs;
Split up images exporting, and moved it to data/formats/image

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1085 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 18:04:49 +00:00
twanvl 2ced942d47 Fixed error in planeswalker template and added style panel icons
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1084 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 16:27:48 +00:00
twanvl b5bdaedde2 Fixed conversion from Values to other types: Values now report being of the contained type.
Added toImage function to ScriptValue.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1083 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 16:26:33 +00:00
twanvl 40719b7831 removed write_stdout function, now handled by CLI class
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1082 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 02:48:20 +00:00
twanvl d98812673d Added some icons for fields on the style panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1081 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 02:43:06 +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 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 ee4aa6f50e Allow selected card from random pack to be exported
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1076 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 00:22:38 +00:00
twanvl c2182c1421 Fixed pack item for basic lands
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1075 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-07 00:22:01 +00:00
twanvl 04d811c96e slightly different stats icons for creature race and class
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1074 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-06 21:33:06 +00:00
twanvl 2b3bae9549 The magic game file was getting way too long, so I split it into several files.
As a bonus the keywords and perhaps other reusable parts can now be used by vanguard with "include file: /magic.mse-game/keywords".

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1073 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-06 16:18:33 +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 685f9ca0b2 Documentation of command line interface
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1067 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 19:34:15 +00:00
twanvl 736e10d2cc Don't require admin privileges to install
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1066 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 18:56:43 +00:00
twanvl abcd15ee89 documented pack type data types.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1065 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 17:40:33 +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 dd006b9eca Fixed bug in dependency checker that caused it to overwrite variables outside its scope
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1063 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 17:02:32 +00:00
pichoro 0ebf7cc1f1 Undid previous change of better token sorting for Magic; was causing big problems.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1062 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 16:48:18 +00:00
pichoro c827d5e73c Vanguard wanted an update to catch up to Magic.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1061 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 06:27:33 +00:00
pichoro 1751aebb7c No more style defined Mythic Rare for magic-new-flip.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1060 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 06:27:00 +00:00
pichoro 0961e36b99 More realistic token sorting for Magic.
Better legend name filter for Magic.
Version bumps for symbol-fonts.
Last of Eventide update (keywords and creature types).

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1059 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 05:06:11 +00:00
twanvl 5e4ce2862d fixed parsing of "x.0.y", the second dot was seen as a decimal point.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1058 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-05 00:31:45 +00:00
twanvl eeabd66c84 fixed handle inheritance and closing in win32 cli wrapper
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1057 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 23:44:14 +00:00
twanvl d666034e7f Added raw mode to simplify the interface with other programs
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1056 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 22:17:45 +00:00
twanvl 574644b3eb If possible all errors are sent to stderr
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1055 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 21:28:24 +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 ef598f2d8c command line interface can now execute scripts
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1053 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 19:55:34 +00:00
twanvl c9a402e3f5 don't check for updates from CLI mode
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1052 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 18:50:33 +00:00
twanvl 19bfaa0684 Beginnings of a simple command line interface
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1051 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 18:45:46 +00:00
twanvl 2fb61eb780 Wrapper program for fixing CLI behaviour on windows
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1050 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 15:59:28 +00:00
twanvl b7caecabf0 detect output redirection on windows
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1049 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 14:46:57 +00:00
twanvl dd80a51e96 tweaks to dimension list control
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1048 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 14:15:07 +00:00
twanvl 48f1315cda pack totals on random pack panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1047 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 13:52:32 +00:00
twanvl f9a0afe64e fixed crash with empty numeric axes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1046 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-04 01:57:19 +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 95b5fa67a2 - Added SetWindow::setControlStatusText function for setting the status text of child controls, since wx lacks a feature for doing it automatically.
- RandomPackPanel's spin controls are cleaned up when the set is reloaded
- to_int script function now converts empty string: to_int("") == 0

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1042 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 20:01:59 +00:00
twanvl 063a2df8d7 Mana costs like 123/C are now parsed as {12}{3/C} instead of {123/C}. The reasoning is that a cost of {10/C} or more is very unbalanced, so you want that.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1041 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 19:02:07 +00:00
twanvl bca66f54b9 All three dimensions on stats panel in a single multicolumn list
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1040 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 15:51:47 +00:00
twanvl 9b16e15c57 Added stats dimension for the card's stylesheet
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1039 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-03 02:39:27 +00:00