From 21f0e6625d077cafe3134c215c6202d5d32509f8 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 15 Apr 2013 16:31:10 +0200 Subject: [PATCH] Fix editor level loading and size --- erdslangetjie/editor/editor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erdslangetjie/editor/editor.py b/erdslangetjie/editor/editor.py index c2d2745..45545a2 100644 --- a/erdslangetjie/editor/editor.py +++ b/erdslangetjie/editor/editor.py @@ -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() -- 2.34.1