changeset 64:bca0112851d6

Only load button graphics once.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2011 07:27:18 +0200
parents 1c7a97d80120
children dc936dba124e
files game/IDMButton.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/game/IDMButton.java	Fri Feb 25 07:26:58 2011 +0200
+++ b/game/IDMButton.java	Fri Feb 25 07:27:18 2011 +0200
@@ -40,6 +40,9 @@
     
     private static void loadImages()
     {
+        if (imgUp != null && imgPressed != null)
+            return;
+
         try
         {
             ResourceLoader res = new ResourceLoader("graphics/button1_up.png");