def destroy(self): self.button = None self.background = None self.friendsButton = None self.crewButton = None self.guildButton = None self.publicButton = None GuiPanel.destroy(self)
def __init__(self, parent, *args, **kw): self.guiSetup = False optiondefs = (('parent', parent, None), ('pos', (-0.57999999999999996, 0, -0.089999999999999997), None), ('command', None, None), ('extraArgs', [], None), ('ownShip', 0, None)) self.defineoptions(kw, optiondefs) GuiPanel.__init__(self, title = PLocalizer.BoardPermTitle, h = 0.80000000000000004, w = 0.5, titleSize = 1.5, showClose = False) self.initialiseoptions(BoardingPermissionPanel) self.titleLabel['text_align'] = TextNode.ACenter self.titleLabel.setPos(0.23000000000000001, 0, 0.71999999999999997) self.setupGui()
def __init__(self, parent, *args, **kw): self.guiSetup = False optiondefs = (('parent', parent, None), ('pos', (-0.57999999999999996, 0, -0.089999999999999997), None), ('command', None, None), ('extraArgs', [], None), ('ownShip', 0, None)) self.defineoptions(kw, optiondefs) GuiPanel.__init__(self, title = PLocalizer.BoardPermTitle, h = 0.80000000000000004, w = 0.5, titleSize = 1.5, showClose = False, **None) self.initialiseoptions(BoardingPermissionPanel) self.titleLabel['text_align'] = TextNode.ACenter self.titleLabel.setPos(0.23000000000000001, 0, 0.71999999999999997) self.setupGui()
class ObjectivesPanel(DirectFrame): __module__ = __name__ def __init__(self, name, holder=None, mouseFade=False): DirectFrame.__init__(self, relief=None, frameSize=(0.0, PiratesGuiGlobals.ObjectivesPanelWidth, 0.0, PiratesGuiGlobals.ObjectivesPanelHeight)) self.initialiseoptions(ObjectivesPanel) self.childFrame = GuiPanel(name, PiratesGuiGlobals.ObjectivesPanelWidth, PiratesGuiGlobals.ObjectivesPanelHeight) self.childFrame.initialiseoptions(GuiPanel) self.childFrame.reparentTo(self) self.list = ListFrame(PiratesGuiGlobals.ObjectivesPageWidth, PiratesGuiGlobals.ObjectivesPageHeight, name, holder, hideAll=False) self.list.setup() self.list.reparentTo(self.childFrame) self.childFrame.closeButton.hide() if mouseFade: self.childFrame.setMouseFade(True) else: self.childFrame.hide() return def destroy(self): DirectFrame.destroy(self) self.list.destroy() def cleanup(self): self.list.cleanup()
class ObjectivesPanel(DirectFrame): def __init__(self, name, holder = None, mouseFade = False): DirectFrame.__init__(self, relief = None, frameSize = (0.0, PiratesGuiGlobals.ObjectivesPanelWidth, 0.0, PiratesGuiGlobals.ObjectivesPanelHeight)) self.initialiseoptions(ObjectivesPanel) self.childFrame = GuiPanel(name, PiratesGuiGlobals.ObjectivesPanelWidth, PiratesGuiGlobals.ObjectivesPanelHeight) self.childFrame.initialiseoptions(GuiPanel) self.childFrame.reparentTo(self) self.list = ListFrame(PiratesGuiGlobals.ObjectivesPageWidth, PiratesGuiGlobals.ObjectivesPageHeight, name, holder, hideAll = False) self.list.setup() self.list.reparentTo(self.childFrame) self.childFrame.closeButton.hide() if mouseFade: self.childFrame.setMouseFade(True) else: self.childFrame.hide() def destroy(self): DirectFrame.destroy(self) self.list.destroy() def cleanup(self): self.list.cleanup()