From 5adfa5973564bec0638d661339240c1df61f41d5 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Fri, 30 Dec 2011 04:23:40 -0600 Subject: Tried for a windows build, failed. Added some icons. --- src/editorui/editormain.py | 3 ++- src/editorui/paths.py | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'src/editorui') diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py index 46660f4..6161e7d 100644 --- a/src/editorui/editormain.py +++ b/src/editorui/editormain.py @@ -64,7 +64,7 @@ class KPMapScene(QtGui.QGraphicsScene): @QtCore.pyqtSlot(int) - def viewportUpdateProxy(self, value): + def viewportUpdateProxy(self, valueA = None, value = None): self.views()[0].viewport().update() @@ -252,6 +252,7 @@ class KPMapScene(QtGui.QGraphicsScene): elif isinstance(layer, KPPathLayer): for pnLayer in reversed(KP.mainWindow.pathNodeList.getLayers()): + if not pnLayer.visible: continue # Render Tiles left, top = pnLayer.cacheBasePos diff --git a/src/editorui/paths.py b/src/editorui/paths.py index 55bfac0..b240b22 100644 --- a/src/editorui/paths.py +++ b/src/editorui/paths.py @@ -142,7 +142,6 @@ class KPEditorNode(KPEditorItem): self.transitionProxy = self.HiddenProxy(self.transition, self, -102, 24) self.transition.currentIndexChanged.connect(self.transitionChange) - self._updatePosition() @@ -183,6 +182,7 @@ class KPEditorNode(KPEditorItem): self.update() + KP.mainWindow.pathNodeList.update() @QtCore.pyqtSlot(int) @@ -191,6 +191,8 @@ class KPEditorNode(KPEditorItem): node = self._nodeRef() node.level[0] = world + KP.mainWindow.pathNodeList.update() + @QtCore.pyqtSlot(int) def stageChange(self, stage): @@ -198,6 +200,8 @@ class KPEditorNode(KPEditorItem): node = self._nodeRef() node.level[1] = stage + KP.mainWindow.pathNodeList.update() + @QtCore.pyqtSlot(int) def foreignIDChange(self, ID): @@ -205,6 +209,8 @@ class KPEditorNode(KPEditorItem): node = self._nodeRef() node.foreignID = ID + KP.mainWindow.pathNodeList.update() + @QtCore.pyqtSlot(int) def transitionChange(self, index): @@ -212,6 +218,8 @@ class KPEditorNode(KPEditorItem): node = self._nodeRef() node.transition = index + KP.mainWindow.pathNodeList.update() + @QtCore.pyqtSlot(str) def mapChangeChange(self, mapname): @@ -219,6 +227,8 @@ class KPEditorNode(KPEditorItem): node = self._nodeRef() node.mapChange = mapname + KP.mainWindow.pathNodeList.update() + def _updatePosition(self): self.ignoreMovement = True -- cgit v1.2.3