Did some profiling, conclusions:
- we want to buffer our input streams, apperantly wx doesn't do this automatically
- compiling regexes is SLOW.
This is not just in the numbers, but it is actually noticable! The textbox used to be quite unresponsive.
I wrapped the call to filter_text in the game file with a quick contains() call, so usually, the regex doesn't fire.
It would be nicer if this was somehow automatic, but that will not be easy.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@627 0fc631ac-6414-0410-93d0-97cfa31319b6
- check using previous scale, often gives correct answer when typing
- binary search + bound estimation otherwise
This allows the step size to be decreased, giving a better fit.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@624 0fc631ac-6414-0410-93d0-97cfa31319b6
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
Added safeties to locale validation (ugly code though... I'd add another function, but I'm lazy and this is faster)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@614 0fc631ac-6414-0410-93d0-97cfa31319b6
It checks:
- whether all keys used by the program are in the locale
- whether the right number of %s are used
- if there are no extra keys in the locale that shouldn't be there
This will become very useful when translations need to be updated for new MSE versions.
There is a perl script for generating the 'expected_locale_keys' resource file.
This file contains a list of all the locale keys used.
This is a resource and not a data file because it is automatically generated from the code,
the user has no business modifying it.
I also fixed all the locale errors I found in the process.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@613 0fc631ac-6414-0410-93d0-97cfa31319b6
(precise modifications still needed, but MSE runs faster when the
positions aren't scripted)
Added translation for the 'Open most recent set' button.
Moved 'type symbol' from the game to the futureshift templates.
Fixed a few BOMs.
TODO: Move common elements from futureshifts to an include folder.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@612 0fc631ac-6414-0410-93d0-97cfa31319b6
Added option to old style to use all common rarity symbols (like before Exodus).
Cleaned up fix for horizontal hybrid textboxes and typelines.
Automatic paintbrushes for magic-textless, magic-new-token, futureshifts, and all FPM styles.
Removed paintbrush font and all associated scripts.
Newly failed attempt at making different colored colorless symbols in magic-mana-future work.
Non-mana costs work for Suspend and Forecast.
Guild mana for magic-mana-future.
Fixed problem relating to name alignment in magic-new-token.
Updated image mask and artifact masks for magic-futureshift.
Started alterations to font colors in magic-futureshift.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@611 0fc631ac-6414-0410-93d0-97cfa31319b6
Attempt at making different colored colorless mana symbols work in magic-mana-future.
Added magic-futureshift.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@608 0fc631ac-6414-0410-93d0-97cfa31319b6
Fixed: first line of multi line text value could cause warnings about whitespace
Fixed some copy/paste errors in choice style reading;
Text viewer correctly uses mask for first line
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@604 0fc631ac-6414-0410-93d0-97cfa31319b6
New land hybrid masks for old style templates.
Added colored Xander Hybrid Mana Watermarks (in addition to colorless).
Removed an un-needed mask from magic-old-split.
Removed an un-needed ptbox from magic-future-textless.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@603 0fc631ac-6414-0410-93d0-97cfa31319b6
Fixed horizontal hybrid textboxes and typelines.
Guild mana for magic-mana-beveled.
Last of the lands for magic-future-textless.
Keyword polishing.
Undid a change to magic sort script because card_shape doesn't work yet.
Grey hybrid names and gradient multicolor for magic-future-textless. Still needs work.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@602 0fc631ac-6414-0410-93d0-97cfa31319b6
Added diagonal directions (todo: add different text direcitons, primarily for Space)
Cleaned up keyword game file a bit.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@600 0fc631ac-6414-0410-93d0-97cfa31319b6
Fixed how name is scaled in magic-new-token.
More upgrade to cost parameter.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@594 0fc631ac-6414-0410-93d0-97cfa31319b6
Added magic-mana-future for futureshifts.
Added textless futureshift style. Still needs work; todo list in style file.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@591 0fc631ac-6414-0410-93d0-97cfa31319b6
Fixed bug in spoiler export template: mana symbols were always rendered as images.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@588 0fc631ac-6414-0410-93d0-97cfa31319b6
Split 'sort' script function into 'sort_text' and 'sort_list';
Double clicking card in stats panel switches to cards panel
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@587 0fc631ac-6414-0410-93d0-97cfa31319b6
Reorganized Vanguard game scripts to same order as Magic game.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@583 0fc631ac-6414-0410-93d0-97cfa31319b6
Added support to cost param for mixed costs, such as "Kicker-R, Sacrifice a Merfolk."
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@582 0fc631ac-6414-0410-93d0-97cfa31319b6
Added colorless, multicolor, dark artifact, artifact styling choice, and new masks to magic-textless.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@580 0fc631ac-6414-0410-93d0-97cfa31319b6