vraskulin
12820b54d4
Singleton object should not have map with values that can't be GCed
2017-02-08 19:50:57 +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
712565562e
Fixed start date of some constructed formats (e.g. Frontier missing M15) for deck editor.
2016-12-12 21:23:20 +01:00
LevelX2
807782efea
Added the Basque flag.
2016-11-19 10:53:43 +01:00
Neil Gentleman
843466b6ad
AudioManager: a bit of cleanup
2016-11-01 21:28:44 -07:00
Neil Gentleman
366e8e281d
MageClip: copy whole input file
...
not just whatever the first read returns
2016-11-01 21:28:44 -07:00
Neil Gentleman
5d55d299a2
don't just give up when LinePool can't be initialized
...
maybe fixes #2525
2016-11-01 21:28:44 -07:00
LevelX2
8f317305fa
Some minor changes.
2016-10-24 17:55:28 +02:00
fireshoes
89dd981075
Merge
2016-10-17 23:45:47 -05:00
LevelX2
9a00dd20ca
Fixed some problems with constructed formats definition and custom sets.
2016-10-03 20:25:08 +02:00
LevelX2
bdaa78e144
Some minor changes.
2016-10-03 10:00:48 +02:00
fireshoes
783a278fca
Added Frontier format (M15 forward). Added Kaladesh block constructed.
2016-09-27 01:54:49 -05:00
LevelX2
b85dc8c0cd
Some minor changes.
2016-09-24 14:55:09 +02:00
Mark Langen
7feb237c06
Fixed card stacking offset in Editor / Library / etc.
...
* Rather than respecting the spacing setting from Preferences, the spacing is now calculated from the card size if characteristic based rendering is enabled, since from the renderer we know exactly what spacing is actually needed.
2016-09-16 16:41:00 -06:00
LevelX2
d7dd635bca
Revert "introduced StringUtil class with .isEmpty(String input) and .isNotEmp…"
2016-09-16 23:55:54 +02:00
ingmargoudt
f1cf9e7adb
introduced StringUtil class with .isEmpty(String input) and .isNotEmpty(String input), to replace str != null && str.length()>0 statements
2016-09-16 21:23:31 +02:00
ingmargoudt
3019991473
removed the Session out of local scope and introduced a static SessionHandler that acts as interface to remote.Session
2016-09-15 20:52:41 +02:00
fwannmacher
9b5a02c09c
- Fixed issue #2075
2016-08-04 09:52:56 -03:00
LevelX2
a0fbcddeb9
* Added preference option to set the size of the enlarged image popup window.
2016-08-02 12:00:36 +02:00
fwannmacher
10778cdd6b
- Converted CardImpl.cardNumber from int to String
...
- Fixed Issue #1953
- Fixed Issue #1914
- Fixed Issue #739
2016-07-24 15:18:54 -03:00
LevelX2
8e76430d07
Revert "Use a dedicated thread pool for audio"
2016-07-10 22:01:06 +02:00
LevelX2
ce91f6aae7
Fixed a problem with transformed image cache.
2016-07-02 19:07:26 +02:00
LevelX2
7cfdd80c57
Chnaged permanent row handling so creatures are always shown towards the opponent side.
2016-07-02 13:45:34 +02:00
LevelX2
3b0f7b074f
* Some changes to distance calculation of enchantments on the battlefield. Added minimal permanet size preference setting (not working correctly yet).
2016-07-01 15:08:40 +02:00
LevelX2
0733729382
Merge pull request #2029 from draxdyn/audio_threadpool
...
Use a dedicated thread pool for audio
2016-06-28 13:27:18 +02:00
LevelX2
d220c739a8
Merge pull request #2030 from draxdyn/performance
...
Improve GUI performance
2016-06-28 13:26:44 +02: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
draxdyn
1999dfe5c0
Add mechanism to register image caches and flush them all on GUI size change
...
This should avoid the issue of having lots of unused entries in caches if the
GUI size is changed multiple times.
2016-06-23 16:21:34 +02:00
draxdyn
d8b791a506
Use a dedicated thread pool for audio
...
Audio threads are busy while the sound plays, which could be several seconds,
potentially stalling other tasks competing for the thread pool.
So use a dedicated thread pool, which also allows to have it sized based
on the number of the audio lines.
2016-06-23 16:16:48 +02:00
draxdyn
d671a22398
Fix ArrayIndexOutOfBoundsException in ButtonColumn.actionPerformed
...
Don't call convertRowIndexToModel with a -1 row.
2016-06-14 18:31:33 +02:00
Kenny Wottrich
f3c83d54f5
Remove Unused Imports
...
Delete unused java imports that cause compiler warnings
2016-04-24 19:50:29 -05:00
drmDev
5ab54142de
W16 fix. Eldrazi Obligator fix and test
2016-04-15 12:24:04 -04:00
Fenhl
430ae503c7
Change all line endings to LF
2016-04-14 16:18:01 +00:00
Jared Hall
3f2611de76
Fixes #1836
2016-04-12 08:16:15 -04:00
rkfg
8be72c404e
Add debug logging to LinePool.
2016-03-09 14:37:59 +03:00
rkfg
b513f3c7b6
Properly close, free and stop lines.
2016-03-09 14:37:58 +03:00
rkfg
d7cdfa016e
Minor change, add comments.
2016-03-09 14:37:57 +03:00
rkfg
d8ff28c7f7
Refactor audio manager, add line pool.
2016-03-08 02:09:57 +03:00
LevelX2
dd9431c8ea
* Added scrolling to the game dialog area. Some more GUI resizing. Removed some unwanted borders of viewports.
2016-03-05 21:00:55 +01:00
LevelX2
3f57012c85
Merge origin/master
...
Conflicts:
Mage.Client/src/main/java/org/mage/card/arcane/ManaSymbols.java
2016-03-03 23:22:06 +01:00
rkfg
3658a8c7bc
Prevent NPE if client never connected to any server and doesn't have
...
sets downloaded.
2016-02-29 19:39:59 +03:00
LevelX2
6d4a3bac28
Fixed that wathcing games did not work correctly.
2016-02-28 10:52:55 +01:00
LevelX2
f87c5bbbec
Fixed that the flag on avatar image could be to big.
2016-02-27 12:33:08 +01:00
LevelX2
e04c82a227
Some more changes to GUI to better support high screen resolutions.
2016-02-21 11:30:12 +01:00
LevelX2
249d709cc7
Sizable GUI - game dialog area elements resize now.
2016-02-20 02:31:47 +01:00
LevelX2
e15807b9ed
* Some more changes to adjustment possibilities of GUI size.
2016-02-19 16:30:52 +01:00
LevelX2
35505b29bb
Some more changes to GUI to better support high screen resolutions.
2016-02-19 01:56:15 +01:00
LevelX2
77eff0984a
Some more changes to GUI to better support high screen resolutions.
2016-02-18 00:27:48 +01:00