summaryrefslogtreecommitdiff
path: root/src/ui.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-26 05:38:44 +0200
committerTreeki <treeki@gmail.com>2012-09-26 05:38:44 +0200
commit64df3b0e7503b2da43d5448f788bb560e5a6881c (patch)
tree878c5caaebfa82e938158651c86daaa4834fd022 /src/ui.py
parent04d6d49eed7b952f3ba61f1364e538c6e5c8d5a2 (diff)
downloadkoopatlas-64df3b0e7503b2da43d5448f788bb560e5a6881c.tar.gz
koopatlas-64df3b0e7503b2da43d5448f788bb560e5a6881c.zip
added world change nodes. I hope this works.
Diffstat (limited to '')
-rw-r--r--src/ui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui.py b/src/ui.py
index 05923e3..c154225 100644
--- a/src/ui.py
+++ b/src/ui.py
@@ -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()