diff --git a/direct/src/gui/OnscreenPanel.py b/direct/src/gui/OnscreenPanel.py index a8df8e637d..6f5adf1907 100644 --- a/direct/src/gui/OnscreenPanel.py +++ b/direct/src/gui/OnscreenPanel.py @@ -298,3 +298,13 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath): 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) + +