Fix editor level loading and size
authorNeil <neil@dip.sun.ac.za>
Mon, 15 Apr 2013 14:31:10 +0000 (16:31 +0200)
committerNeil <neil@dip.sun.ac.za>
Mon, 15 Apr 2013 14:31:10 +0000 (16:31 +0200)
erdslangetjie/editor/editor.py

index c2d2745559801cada06ce3fe2f042c4edfbf9ca9..45545a2830aba42fbbacbe9f99cc88fb22c3d692 100644 (file)
@@ -17,7 +17,7 @@ from erdslangetjie.level import Level
 class EditorWindow(FloatLayout):
 
     def __init__(self, level):
-        super(EditorWindow, self).__init__(size=(960, 960))
+        super(EditorWindow, self).__init__(size=(648, 480))
         if os.path.exists(filepath(level)):
             level_data = load(level)
             self.level = level
@@ -34,6 +34,7 @@ class EditorWindow(FloatLayout):
         self.level_obj = Level()
         self.level_obj.load(level_data)
         level_data.close()
+        self.level_obj.load_tiles()
 
     def build(self):
         self.clear_widgets()