diff options
author | Treeki <treeki@gmail.com> | 2012-09-26 05:38:44 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-09-26 05:38:44 +0200 |
commit | 64df3b0e7503b2da43d5448f788bb560e5a6881c (patch) | |
tree | 878c5caaebfa82e938158651c86daaa4834fd022 /src/ui.py | |
parent | 04d6d49eed7b952f3ba61f1364e538c6e5c8d5a2 (diff) | |
download | koopatlas-64df3b0e7503b2da43d5448f788bb560e5a6881c.tar.gz koopatlas-64df3b0e7503b2da43d5448f788bb560e5a6881c.zip |
added world change nodes. I hope this works.
Diffstat (limited to '')
-rw-r--r-- | src/ui.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1140,6 +1140,7 @@ class KPMainWindow(QtGui.QMainWindow): m = mb.addMenu('Map') self.ma = m.addAction('Set Background...', self.setMapBackground) + self.ma = m.addAction('World Editor...', self.showWorldEditor) w = mb.addMenu('Window') self.wa = w.addAction('Show Grid', self.showGrid, QKeySequence("Ctrl+G")) @@ -1635,6 +1636,12 @@ class KPMainWindow(QtGui.QMainWindow): if newBG is not None: KP.map.bgName = newBG + @QtCore.pyqtSlot() + def showWorldEditor(self): + from worldeditor import KPWorldEditor + dlg = KPWorldEditor(KP.map, self) + dlg.show() + # Window ######################## @QtCore.pyqtSlot() |