Browse Source

*** empty log message ***

gregw 25 years ago
parent
commit
4e3e00531f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      direct/src/gui/OnscreenPanel.py

+ 10 - 0
direct/src/gui/OnscreenPanel.py

@@ -298,3 +298,13 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
         
         
         return self.panelName
         return self.panelName
 
 
+
+    def setPos(self, x, y, z):
+        """setPos(self, x, y, x)
+        """
+        NodePath.setPos(self, x, y, z)
+        for button in self.panelButtons:
+            button.unmanage()
+            button.manage(self)
+
+