Commit graph

59 commits

Author SHA1 Message Date
LevelX2
b073ce1c42 * Added to all toUpperCase/toLowerCase calls the Locale.ENGLISH to prevent problems with some languages (e.g. Turkish). Removed some unused import statements. (#4634). 2018-03-18 18:18:54 +01:00
Oleg Agafonov
5cda60270c Added svg support: new render for mana icons in tables (deck editor, draft) 2017-11-26 00:50:25 +04:00
igoudt
9cbc2b7ea2 change client messages to enum rather than string 2017-10-03 15:18:31 +02:00
igoudt
5b21f34941 rewrote gettypetext, added removeIf to TableModel 2017-04-27 10:57:48 +02:00
ingmargoudt
f519b12d0e introduced isCreature/isLand/isArtifact/... etc for CardView 2017-04-07 15:08:28 +02:00
ingmargoudt
08197f192c remove CardHelper class 2017-04-07 10:00:16 +02:00
ingmargoudt
d60e01d497 move CardHelper::getColor to CardView::getColorText 2017-04-06 22:11:57 +02:00
ingmargoudt
63df7f65a7 remove isCreature from CardHelper, move to Cardview 2017-04-06 22:07:59 +02:00
fireshoes
55b433ae36 [AKH] Added 3/27 spoilers to mtg-cards-data.txt. Implemented several of the new cards. 2017-03-28 22:25:29 -05:00
ingmargoudt
2b91b88551 fixing some additional singleton classes 2017-03-16 09:48:02 +01:00
JOAC69
c854fc3d1a Remove trailing space on CardHelper.getType() 2017-03-05 19:10:20 -06:00
ingmargoudt
6b20d352ca added unit test 2017-03-03 22:28:34 +01:00
vraskulin
498c8cf60c Made utility classes final to explicitly forbid it's inheritance 2017-02-27 17:03:38 +03:00
vraskulin
0557b5e89c list.size > 0 changed to !list.isEmpty
We care about if it's empty or not, not about it's size
2017-02-06 14:32:51 +03:00
vraskulin
f60ebfbb1f All 1-character strings converted to primitives
"b" + "r" now changed to 'b' + 'w'.  It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
2017-02-06 14:32:51 +03:00
vraskulin
076840df53 Big refactoring
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final  variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3)  Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
LevelX2
67cf1604c9 Fixed a problem with images of transformed cards. Workaround for images of basic lands. Does not work correctly yet, because card art od basic lands is switched between various versions continuously. 2016-10-09 03:07:23 +02:00
LevelX2
e46895420e Added card# to deck pool area. 2016-10-09 03:05:10 +02:00
LevelX2
5d8ae4d411 * Workaround to fix problem with deck layout. 2016-10-08 19:03:09 +02:00
Mark Langen
d5415d2d04 Working Card Rendering 2016-08-31 04:43:28 -06:00
draxdyn
e3d84ca212 Cache resized and rotated images
RotatedResizedImageCache and MultiRotatedResizedImageCache contain the caching
machinery.

A cache of rotated and resized images is added to ImageCache, and is used by
the resizing functions there.

All the resizing and rotation functions in ImageHelper are redirected to the
ones in ImageCache.

This is slightly inefficient because it will cache some calls that are never
repeated, but it prevents developers from mistakenly using uncached functions
when calls are repeated, seriously impacting performance.

Also resizing functions that only take a width or an height have been removed,
and their calls fixed to provide the other dimension. It's still possible to
specify -1 as width or height to ignore constraints in that dimension, though.

Greatly speeds up UI performance.
2016-06-23 16:21:34 +02:00
Liam Speirs
8758c2de36 Add tracking for number of artifacts in card lists. 2016-04-27 14:43:40 -04:00
Fenhl
430ae503c7 Change all line endings to LF 2016-04-14 16:18:01 +00:00
LevelX2
5ca4e3bc7a Some more changes to GUI to better support high screen resolutions. 2016-02-16 23:15:34 +01:00
LevelX2
ea0ba76736 * Deck editor - Fixed a bug that prevented users to add cards to deck or sideboard (was caused by creatures with negative toughness and it was sorted by p/t - fixes #1414). 2015-12-13 10:34:35 +01:00
LevelX2
382223bb90 * Deck Editor - Show images for amna symbols. 2014-09-10 17:11:06 +02:00
LevelX2
0e34720611 * Some more changes to the deck editor. 2014-05-10 11:35:07 +02:00
LevelX2
0561499d5b * Deck editor - Added possibility to edit number of cards for deck and sideboard directly if deck editor is in normal mode to build a deck from complete card pool. 2014-05-09 16:00:37 +02:00
LevelX2
02e6ba045b * Deck editor - Some changes to card movement with double click. 2014-05-05 17:52:29 +02:00
LevelX2
59d907c981 * Improved handling of enlarged images. Added mode to show other side of flip and transform cards. Added icon for copied cards and possibility to show enlarged original or copied card. 2014-03-06 21:51:51 +01:00
LevelX2
88d8c30b6c * Fixed a problem of defaulting pile setiing in deck editor. Pile setiing is now saved separate for different usages. 2014-02-15 22:34:08 +01:00
LevelX2
1f8555447d Removed mana leaks for deck editor and draft panels. 2014-02-01 03:26:27 +01:00
LevelX2
f3992bd2d5 Redesigned sorting handling of deck, sideboard and draft card area (keep sorting if and view if cards move). 2014-01-20 22:13:28 +01:00
LevelX2
893a3acb65 * Card editor - Done some code cleanup, done some speed up for card loading time. 2013-09-26 17:26:23 +02:00
North
0bb110be45 [refactor] moved enums from Constants class 2013-06-16 12:28:10 +03:00
North
6f23ce362e Deleted CardTableSelector (unused) 2012-11-04 16:15:38 +02:00
North
25cd490be3 [CardRepository] moved Sets, DeckImporter and CardRepository to Mage Framework 2012-11-04 12:52:02 +02:00
North
809910e8c7 Used CardRepository in Deck Editor 2012-10-21 18:15:43 +03:00
LevelX2
fe72ab9192 Fixed bug that leaves unmodifiable lines for lands in the deck editor.
Happens when you add more than one land from the same expansion with quantity > 1 and e.g. pushed new button afterwards.
2012-09-07 13:34:03 +02:00
North
1542ba9ab6 [filters] converted FilterCard conditions to Predicates 2012-07-23 21:53:54 +03:00
North
ecf765ecf5 [filters] Replaced CardType conditions with Predicate 2012-07-12 23:42:46 +03:00
North
239a4fb100 [refactoring][minor] Replaced all tabs with four spaces. 2012-06-19 23:50:20 +03:00
North
06a185a3a5 removed unused imports 2012-05-26 20:08:39 +03:00
magenoxx
4ae362c050 Displaying lands from the same set but different images separately in deck editor 2012-05-25 21:33:29 +04:00
magenoxx
6bd53a856f Remove buttons in DeckEditor 2012-05-25 21:22:22 +04:00
magenoxx
32e29392d2 [AVR] Second Guest + tests. Refactored filters. 2012-05-24 09:01:31 +04:00
North
27c8514d64 minor changes (removed unused imports, added @Override ...) 2011-09-24 22:37:53 +03:00
magenoxx
9a458ae9f2 Fixed redrawing during limited construction in deck editor (card didn't disappear). 2011-08-16 21:42:39 +04:00
magenoxx
d52ff8e221 Forgot to commit class. 2011-06-26 14:45:38 +04:00
magenoxx
021d3e1270 [deckeditor] Fixed Issue 163. Fixed Issue 164. Fixed Issue 168. Fixed issue with tooltips. 2011-06-25 20:55:00 +04:00