Commit Graph

12 Commits

Author SHA1 Message Date
KrazyTheFox
6d5e56f6bf Normalize line endings 2017-12-28 23:40:29 -05:00
Sloth
7adc31890c - Fixed copying modal spells. 2013-07-30 11:31:55 +00:00
Chris
3e4323d10c Updated the org.eclipse.jdt.core.prefs and .classpath files to make them Java 7 compatible. 2013-06-22 12:09:49 +00:00
jendave
d9a785ee3a init2 2011-08-09 19:34:12 +00:00
jendave
41c0f4f24d finish cleanup 2011-08-09 19:07:02 +00:00
jendave
f753e95178 upload 2011-08-07 06:51:32 +00:00
jendave
20a3b0b6d3 Checking 1.5 compatibility
SwingBuilder caused a couple other problems. It is also contained in ord.jdesktop, so I replaced it with that one
Preferences also contained stringPropertyNames(), which only exists since 1.6
2011-08-06 05:57:44 +00:00
jendave
e6fcccea92 Code cleanup:
-removed obsolete image-related classes
-resolved all warnings in the forge packages
2011-08-06 03:26:49 +00:00
jendave
7c23c0bb3f Big change that should solve the memory leak
-replaced the old ImageCache class with ImageCache2
-extracted the card picture- and detail code from GuiDisplay/DeckEditor into separate classes (in forge.gui.game). therefore, CardDetailUtil and forge.CardPanel were deleted. GuiDisplayUtil is no longer used to create the card panels.

TESTS:
-confirmed all changed GUIs (but the quest deck editor - changes are the same as normal deck editor) to show details and pictures.
-I played a game with reduced heap size (-Xmx200M). Occasionally the image cache size shrinked along with the used memory.
-In a game without reduced heap size (memory usage ~500M, over 1000 cached images), i noticed slowdown when some images were missing.
-I noticed the stack elements now having a border with the card's color; this doesn't hurt IMO.

NOT WORKING
I wasn't able to adapt one thing: GUI_PictureHQ, i just didn't know what it does. for everything else to work, some code sections were commented out and tagged with "TODO reenable"
2011-08-06 03:25:05 +00:00
jendave
ada770f7ac - LQ images shouldn't scale higher than a ratio of 1 anymore.
- AI should consider Bushido now when declaring attackers / blockers.
- Fixed a bug which would sometimes bring up an error report when a static effect left play.
- Fixed Ensnare text.
2011-08-06 03:23:48 +00:00
jendave
1f38fb8894 Deleted the old ErrorViewer class in the default package, added imports for forge.gui.ErrorViewer in many of the classes that used it.
Fixed a bug in forge.gui.ListChooser that threw a NullPointerException when trying to convert Integer to int

Replaced Font.MONOSPACED by "Monospaced" in forge.error.ErrorViewer for better Java 1.5 compatibility
2011-08-06 02:38:46 +00:00
jendave
e0224bd465 2011-08-06 02:37:41 +00:00