Commit Graph

50 Commits

Author SHA1 Message Date
twanvl fee64d283f Cleaned up the Alignment type, it is now much more orthogonal.
Changed the behavior of justifying:
 - by default justify words instead of characters
 - only justify before soft line breaks, unless "alignment: force justify" is used.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1251 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 19:17:55 +00:00
twanvl 156e592636 made padding and line height scriptable
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1249 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-12-11 17:40:17 +00:00
twanvl 56463a8806 Added empty_name to PackageChoiceField;
Package choice fields now reflect in scripts as "/:NO-WARN-DEP:packagename". This suppresses warnings when loading files in that package or using the package as a symbol font.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1187 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-31 19:42:30 +00:00
twanvl a2af3211a4 Moved mask to Style and mask related drawing to ValueViewer.
Used the same mask also for TextStyles.
To keep the text selectable (since the mask is now also used for containsPoint), the future sight cost masks needed to be updated.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1183 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-30 23:49:12 +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 f870f48b13 HTML export widow also uses cards selector
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1109 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 22:16:06 +00:00
twanvl 0a19ecf83d NO_REPLACE is default for packs
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1103 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 18:38:19 +00:00
twanvl 01a220f199 Made symbol font size and alignment scriptable.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1091 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-08-08 00:35:53 +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 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 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 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 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
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 bef5183556 typo in table in field documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@883 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-25 16:39:23 +00:00
twanvl 1b516e781f Script support for AColors. All colors in script related code are now AColor.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@852 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-16 20:51:16 +00:00
twanvl bb240f836d Note places where transparent colors are not supported
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@850 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-16 20:23:48 +00:00
twanvl bcfa07a724 Fixed some problems where AColor was not used correctly; documentation of AColor.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@849 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-16 20:22:39 +00:00
twanvl fdb3bda26e Text drawing now uses an AColor instead of a normal Color, so transparent text is possible.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@848 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-16 20:07:11 +00:00
twanvl 36c7e3ef43 Added shadow_blur property to fonts
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@846 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-05-16 19:26:11 +00:00
twanvl e6c5cef498 documentation of symbol font changes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@843 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-04-14 18:18:26 +00:00
twanvl 4defac43ff Added <color:???> and <size:???> tags for changing text color/size
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@831 0fc631ac-6414-0410-93d0-97cfa31319b6
2008-03-24 14:52:42 +00:00
twanvl 361488b4fe documentation of 'package choice' field type
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@791 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-26 23:45:39 +00:00
twanvl b006faaabd updated documentation of the 'style' data type
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@785 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-26 17:42:06 +00:00
twanvl e7c30305b0 fixed the documentation on 'right' and 'bottom'
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@778 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-21 19:07:33 +00:00
twanvl 1cb5700a00 Added compact syntax for package dependencies:
"depends on: package version"

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@777 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-12-21 18:14:51 +00:00
twanvl 36a36356c5 The 'Big Whine' patch:
Any use of a file from another package without a declared dependency will give a warning;

Also added some more _LOCALE_123_ macros so we need less format_string calls

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@753 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-24 20:24:22 +00:00
twanvl 1f3f4e01fe Added support for named colors, e.g. "white" and "black";
Added missing keys to locale.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@716 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-20 18:16:10 +00:00
twanvl 38b934ce90 Fixed spoiler export template
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@683 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-09 19:07:00 +00:00
twanvl 54fdc78858 Added 'paragraph height' property to split a text field into multiple boxes.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@666 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-02 21:00:49 +00:00
twanvl bdc1e12e95 Added <prefix> and <suffix> tags;
Added prefix and suffix support to combined_editor;
'always symbol' now checks if the symbols are available in the symbol font;
Fixed parser bug in spec_sort;
A first information field is no longer used as set identification

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@653 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-09-01 19:56:43 +00:00
twanvl 5fa4867cdc Symbol font measurments (margin/fontsize) now scaled by font size, this requires all symbol files to change (or you get really large margins);
Symbol fonts now support stretching/compressing of text;
Made the default symbols of mana-future lighter (compare with real cards);
Use sort_text instead of sort for vanguard;
Fixed initial card list for vs

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@643 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-29 14:35:39 +00:00
twanvl 087af8360d Added <soft> tag that takes up no space for alignment purposes;
used this tag for magic creature types;
Added correct handling of Tribal sub types;
Fixed sort_index use by spoiler export template

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@637 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-28 20:49:25 +00:00
twanvl ccaea98a67 git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@634 0fc631ac-6414-0410-93d0-97cfa31319b6 2007-08-28 18:27:37 +00:00
twanvl 61136d79a8 Added regex_escape script function (was already used by keyword code);
Added icons for 'sort special rarity' choice.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@625 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-24 20:24:10 +00:00
twanvl d68f73edfc Various tweaks and fixes, mostly to the drop down lists
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@620 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 23:29:20 +00:00
twanvl c3e10f2ccf Added as_text regex to symbol font as a more flexible replacement for merge_numbers.
This fixes "31/2" which is now rendered as "(3)(1/2)".
Reverted the mana_sort_guild change
Time for a version bump

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@618 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 16:58:08 +00:00
twanvl 9f2b30b2db Added word lists for choosing things like card type;
Added 'in_place' pattern to spec_sort

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@616 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-23 16:33:12 +00:00
twanvl 81dc4329fe Information on translating MSE
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@610 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-11 15:54:12 +00:00
twanvl 57da4261a8 Finished documenting scripting system.
This means the documentation is DONE (yay!)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@606 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-07 18:19:14 +00:00
twanvl 2a2935de48 And the documentation just keeps comming...
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@598 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-03 15:35:09 +00:00
twanvl dfe1140444 Documented style type
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@597 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-03 14:25:40 +00:00
twanvl a7b8e8d243 Documented field and value types
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@596 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-02 22:27:15 +00:00
twanvl 9ca290755b Documented keyword related types
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@593 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-02 18:55:31 +00:00
twanvl e32ee37ef4 More data type documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@592 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-08-02 18:01:39 +00:00
coppro a75366234f Added crop image function.
Fixed 'difference' symbol type.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@574 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-14 03:16:45 +00:00
twanvl f7263632c5 Lots of data type descriptions
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@569 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-13 21:55:16 +00:00
twanvl 700a941125 Some more documentation
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@567 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-13 19:05:42 +00:00
twanvl 4d6bbf7829 Documentation of script functions and file types (work in progress)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@564 0fc631ac-6414-0410-93d0-97cfa31319b6
2007-07-13 17:54:10 +00:00