From 64df3b0e7503b2da43d5448f788bb560e5a6881c Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 26 Sep 2012 05:38:44 +0200 Subject: added world change nodes. I hope this works. --- src/ui.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui.py') 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() -- cgit v1.2.3