From: Neil Date: Mon, 15 Apr 2013 14:31:10 +0000 (+0200) Subject: Fix editor level loading and size X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=21f0e6625d077cafe3134c215c6202d5d32509f8;p=erdslangetjie.git Fix editor level loading and size --- 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()