mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 12:12:10 -04:00
*** empty log message ***
This commit is contained in:
parent
b4ef8e54e3
commit
4335175d94
@ -191,6 +191,9 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
|
||||
"""show(self):
|
||||
Show everything and hang hooks
|
||||
"""
|
||||
if not self.panelSetup:
|
||||
return 0
|
||||
|
||||
NodePath.show(self)
|
||||
|
||||
# show the buttons that are meant to be shown
|
||||
@ -206,6 +209,9 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
|
||||
"""hide(self):
|
||||
Hide everything and remove hooks
|
||||
"""
|
||||
if not self.panelSetup:
|
||||
return 0
|
||||
|
||||
NodePath.hide(self)
|
||||
|
||||
# hide the shown buttons and remove all hooks
|
||||
@ -241,6 +247,8 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
|
||||
when cleanup() is called.
|
||||
"""
|
||||
|
||||
assert self.panelSetup
|
||||
|
||||
if label == None:
|
||||
label = name
|
||||
if drawOrder == None:
|
||||
@ -290,6 +298,8 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
|
||||
|
||||
"""
|
||||
|
||||
assert self.panelSetup
|
||||
|
||||
if drawOrder == None:
|
||||
drawOrder = self.panelDrawOrder + 10
|
||||
if font == None:
|
||||
@ -336,6 +346,7 @@ class OnscreenPanel(PandaObject.PandaObject, NodePath):
|
||||
managed buttons along with it.
|
||||
|
||||
"""
|
||||
assert self.panelSetup
|
||||
NodePath.setPos(self, x, y, z)
|
||||
|
||||
for button in self.panelButtons:
|
||||
|
Loading…
x
Reference in New Issue
Block a user