draxdyn
4b190eeaf4
Drastically simplify ScaledImagePanel by having it just use the resized image cache
...
All the current behavior of ScaledImagePanel seems to be useless, since the source
images are static, so we can just use the highest quality scaling possible and
cache the result using TransformedImageCache.
2016-06-23 16:21:34 +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
415c8cce7e
Don't call setText() on the popup text component until it is shown
...
Performance improvement, impacts profiles.
2016-06-23 16:21:34 +02:00
draxdyn
9513b5bf74
Don't call setText in MageTextArea if the text hasn't changed
...
Minor UI speedup, shows up in profiles for simple games.
2016-06-23 16:21:34 +02:00
draxdyn
8c2c1f4887
Don't call setEditable in ColorPane
...
Shows up in profiles, and should be unnecessary.
2016-06-23 16:21:34 +02:00
draxdyn
0b13660348
Use mouse point in event instead of calling getMousePosition()
...
Improves performance and is also the correct way to do this.
2016-06-23 16:21:34 +02:00
fireshoes
a9744b2d04
Added Crumbling Vestige FNM promo.
2016-05-30 20:44:49 -05:00
LevelX2
1045f35705
* Sylvan Might - Fixed that Trample was not given to target creature.
2016-05-29 17:38:08 +02:00
LevelX2
266a0870ca
Xmage 1.4.12v0
2016-05-29 10:59:39 +02:00
LevelX2
98fadbd8ba
Merge pull request #1946 from Simown/master
...
Reverted changes to deck generation sliders
2016-05-29 10:19:11 +02:00
LevelX2
fc4133e098
Merge pull request #1952 from aastrand/master
...
Make it possible to play lands using hideaway
2016-05-29 10:18:45 +02:00
LevelX2
c0274304c8
[EMA] Fixed wrong rarity of Desperate Ravings.
2016-05-29 09:54:36 +02:00
LevelX2
9fa0bf7bd2
Swapped main menu position of Feedback and Preferences (so Preferences is always available if you switch to a too big font size).
2016-05-29 09:53:56 +02:00
LevelX2
0085b6b1ef
Removed some custom classes by use of framework classes.
2016-05-29 09:52:43 +02:00
LevelX2
2c11d9cfef
Merge pull request #1960 from Styxo/master
...
Added Faerie Tautings, Heat Shimmer and Spring Cleaning
2016-05-29 09:23:11 +02:00
LevelX2
9953107171
Some changes to Lost Auramancers.
2016-05-29 09:22:03 +02:00
LevelX2
c3169a08ed
Merge pull request #1965 from Zeplar/master
...
Fixes Issue #1958 : Creatures copying Lost Auramancers fail to trigger…
2016-05-29 09:11:33 +02:00
ZEPLAR
165b0630f7
Fixes Issue #1958 : Creatures copying Lost Auramancers fail to trigger its death effect. My solution was to copy the Undying template, but I'm not sure why the original implementation didn't work.
2016-05-28 20:02:26 -07:00
spjspj
331b1376cd
Merge pull request #1963 from spjspj/master
...
spjspj - Add Spike Cannibal [EXO]
2016-05-28 23:44:28 +10:00
spjspj
a6316ed26f
spjspj - Add Spike Cannibal [EXO]
2016-05-28 23:41:47 +10:00
spjspj
2a30e6e653
Merge pull request #1962 from spjspj/master
...
spjspj - Add in Carbonize [EMA]
2016-05-28 23:14:10 +10:00
spjspj
3ce07ae6bb
spjspj - Add in Carbonize [EMA]
2016-05-28 23:11:15 +10:00
spjspj
7382b27ec4
Merge pull request #1961 from spjspj/master
...
spjspj - Fix up rarities in mtg-cards-data.txt
2016-05-28 23:08:07 +10:00
spjspj
a0fcd59703
spjspj - Deduping
2016-05-28 23:05:29 +10:00
spjspj
f689f5b516
spjspj - Deduping
2016-05-28 22:56:33 +10:00
spjspj
59d1c520ab
spjspj - Fixing up more rarities and missed carbonize
2016-05-28 22:50:43 +10:00
spjspj
2a262948ca
spjspj - Fixing up more rarities and missed carbonize
2016-05-28 22:45:51 +10:00
Kranken
5f7d710b5e
Make sure lands via hideaway respects 305.2
2016-05-28 14:07:40 +02:00
Styxo
3bd10a2b2b
Added Faerie Tautings, Heat Shimmer and Spring Cleaning
2016-05-28 12:26:49 +02:00
LevelX2
8c6f44386d
[EMA] Added Prowling Pangolin and fixed some wrong rarities.
2016-05-28 12:14:14 +02:00
LevelX2
5c8c6a3aeb
[EMA] Added Crater Hellion and edited some minor formatting.
2016-05-28 11:44:10 +02:00
LevelX2
eb1ae59d11
Merge origin/master
2016-05-28 11:20:03 +02:00
LevelX2
5738a705a4
[EMA] Added missing rarity for Winter Orb.
2016-05-28 11:19:32 +02:00
spjspj
e41c1c2ed9
Merge pull request #1959 from spjspj/master
...
spjspj - Implement rest of the EMA Spoilers
2016-05-28 19:01:23 +10:00
spjspj
e4d10ec87a
spjspj - Rest of EMA spoilers
2016-05-28 18:54:32 +10:00
spjspj
5f1673f88a
spjspj - Rest of the EMA spoilers (fixed rarity)
2016-05-28 18:28:40 +10:00
spjspj
e39c1b25fa
spjspj - Rest of the EMA spoilers (will add classes soon)
2016-05-28 17:17:24 +10:00
fireshoes
6330a3a344
[EMA] Added additional 5/26 spoilers.
2016-05-26 16:58:57 -05:00
fireshoes
9b5353c648
[EMA] Added 5/26 spoilers.
2016-05-26 11:02:59 -05:00
LevelX2
24fe679c34
* Commander mulligan - changed to Vancouver mulligan rule.
2016-05-26 15:33:41 +02:00
Kranken
f06e6a7bbb
Make it possible to play lands using hideaway
...
Previously lands were not playable due to the
ignoreTimings flag being set to false.
Added checks for the hideaway rulings regarding lands.
2016-05-25 20:43:17 +02:00
fireshoes
85c3fe425b
[EMA] Added 5/25 spoilers.
2016-05-25 10:57:05 -05:00
fireshoes
a34cf7115c
[EMA] Added additional 5/24 spoilers.
2016-05-25 00:41:04 -05:00
fireshoes
6f7c15a849
[EMA] Added 5/24 spoilers.
2016-05-24 10:42:10 -05:00
spjspj
2ed131871b
Merge pull request #1947 from spjspj/master
...
spjspj - Implement Thought Prison (MRD)
2016-05-24 20:48:03 +10:00
spjspj
6e4ff8d34e
spjspj - Implement Thought Prison (MRD)
2016-05-24 20:40:29 +10:00
fireshoes
3d0409e1bb
Merge origin/master
2016-05-23 18:39:13 -05:00
fireshoes
20ec737a58
[EMA] Added 5/23 spoilers.
2016-05-23 18:38:04 -05:00
fireshoes
c15b541eac
[EMA] Added 5/23 spoilers.
2016-05-23 18:29:37 -05:00