[tiled] r738 - in trunk: . src/tiled/io/xml src/tiled/mapeditor/dialogs

tiled-svn at biggeruniverse.com tiled-svn at biggeruniverse.com
Fri Apr 11 10:04:24 PDT 2008


Author: aturk
Date: 2008-04-11 12:04:24 -0500 (Fri, 11 Apr 2008)
New Revision: 738

Modified:
   trunk/README
   trunk/src/tiled/io/xml/XMLMapTransformer.java
   trunk/src/tiled/mapeditor/dialogs/TileDialog.java
Log:
not much

Modified: trunk/README
===================================================================
--- trunk/README	2008-04-11 09:30:37 UTC (rev 737)
+++ trunk/README	2008-04-11 17:04:24 UTC (rev 738)
@@ -60,3 +60,4 @@
 - Hendrik Brummermann for improving error reporting on map loading
 - Nader Akhres for the JSON map writer plugin
 - William C. Bubel for the Lua map writer plugin
+- Matthias Kievernagel for a nice HexMapView
\ No newline at end of file

Modified: trunk/src/tiled/io/xml/XMLMapTransformer.java
===================================================================
--- trunk/src/tiled/io/xml/XMLMapTransformer.java	2008-04-11 09:30:37 UTC (rev 737)
+++ trunk/src/tiled/io/xml/XMLMapTransformer.java	2008-04-11 17:04:24 UTC (rev 738)
@@ -138,6 +138,19 @@
         }
     }
 
+    private static Node findChild(Node node, String childName) {
+        NodeList children = node.getChildNodes();
+
+        for (int i = 0; i < children.getLength(); i++) {
+            Node child = children.item(i);
+            if (child.getNodeName().equalsIgnoreCase(childName)) {
+                return child;
+            }
+        }
+
+        return null;
+    }
+
     private Object unmarshalClass(Class reflector, Node node)
         throws InstantiationException, IllegalAccessException,
                InvocationTargetException {
@@ -754,7 +767,7 @@
 
         Map unmarshalledMap = unmarshal(is);
         unmarshalledMap.setFilename(filename);
-
+        
         map = null;
 
         return unmarshalledMap;

Modified: trunk/src/tiled/mapeditor/dialogs/TileDialog.java
===================================================================
--- trunk/src/tiled/mapeditor/dialogs/TileDialog.java	2008-04-11 09:30:37 UTC (rev 737)
+++ trunk/src/tiled/mapeditor/dialogs/TileDialog.java	2008-04-11 17:04:24 UTC (rev 738)
@@ -161,7 +161,7 @@
         imageList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
         imageList.addListSelectionListener(this);
         JScrollPane sp = new JScrollPane(imageList);
-        sp.setPreferredSize(new Dimension(150, 150));
+        sp.setPreferredSize(new Dimension(250, 150));
 
         // Buttons
         createTileButton = new JButton(CREATE_BUTTON);




More information about the tiled-commit mailing list