def __init__(self, reason=None): if reason is None: reason = DownloadBlockerPanel.Reasons.GENERIC height = 0.59999999999999998 GuiPanel.GuiPanel.__init__(self, PLocalizer.DownloadBlockerPanelTitle, GoldenRectangle.getLongerEdge(height), height) self._reason = reason self._message = DirectLabel( parent=self, relief=None, text=DownloadBlockerPanel._Messages[self._reason], text_pos=(0.20000000000000001, 0), text_scale=0.071999999999999995, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG2, text_shadow=PiratesGuiGlobals.TextShadow, text_wordwrap=9, pos=(0.291294, 0, 0.400258), textMayChange=1) taskMgr.doMethodLater(10, self.destroy, 'downloadBlockerTimer', extraArgs=[])
def __init__(self, reason = None): if reason is None: reason = DownloadBlockerPanel.Reasons.GENERIC height = 0.59999999999999998 GuiPanel.GuiPanel.__init__(self, PLocalizer.DownloadBlockerPanelTitle, GoldenRectangle.getLongerEdge(height), height) self._reason = reason self._message = DirectLabel(parent = self, relief = None, text = DownloadBlockerPanel._Messages[self._reason], text_pos = (0.20000000000000001, 0), text_scale = 0.071999999999999995, text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, text_wordwrap = 9, pos = (0.291294, 0, 0.400258), textMayChange = 1) taskMgr.doMethodLater(10, self.destroy, 'downloadBlockerTimer', extraArgs = [])
def __init__(self): message = TeleportBlockerPanel._Messages.get( localAvatar.getMaxTeleportFlag().getWord(), "You can't teleport from here") height = 0.59999999999999998 GuiPanel.GuiPanel.__init__(self, PLocalizer.TeleportBlockerPanelTitle, GoldenRectangle.getLongerEdge(height), height) self._message = DirectLabel(parent=self, relief=None, text=message, text_pos=(0.20000000000000001, 0), text_scale=0.071999999999999995, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG2, text_shadow=PiratesGuiGlobals.TextShadow, text_wordwrap=9, pos=(0.291294, 0, 0.400258), textMayChange=1) taskMgr.doMethodLater(10, self.destroy, 'teleportBlockerTimer', extraArgs=[])
def __init__(self): message = TeleportBlockerPanel._Messages.get(localAvatar.getMaxTeleportFlag().getWord(), "You can't teleport from here") height = 0.59999999999999998 GuiPanel.GuiPanel.__init__(self, PLocalizer.TeleportBlockerPanelTitle, GoldenRectangle.getLongerEdge(height), height) self._message = DirectLabel(parent = self, relief = None, text = message, text_pos = (0.20000000000000001, 0), text_scale = 0.071999999999999995, text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, text_wordwrap = 9, pos = (0.291294, 0, 0.400258), textMayChange = 1) taskMgr.doMethodLater(10, self.destroy, 'teleportBlockerTimer', extraArgs = [])