def __init__(self, potionGame): self.potionGame = potionGame GuiPanel.__init__(self, PLocalizer.PotionGui['FailTitle'], 1, 0.4, showClose=False, titleSize=1.5) self.setPos((-0.5, 0, 0)) self.bQuit = RequestButton(width=2.0, text=PLocalizer.PotionGui['StopButton'], command=self.quit) self.bQuit.reparentTo(self) self.bQuit.setPos(0.25, 0, 0.05) self.bPlayAgain = RequestButton(width=2.0, text=PLocalizer.PotionGui['PlayAgainButton'], command=self.playAgain) self.bPlayAgain.reparentTo(self) self.bPlayAgain.setPos(0.65, 0, 0.05) self.message = None self.message2 = None self.message3 = None return
def __init__(self, fishingGame): NodePath.__init__(self, 'FishingResults') self.reparentTo(base.a2dRightCenter) self.gameObject = fishingGame self.setPos(-1.0, 0.0, -0.25) self.background = loader.loadModel('models/minigames/pir_m_gui_fsh_rewardScreen') self.background.reparentTo(self) self.background.setScale(0.80000000000000004, 0.75, 0.75) self.background.setPos(0.65000000000000002, 0.75, 0.75) self.bAgain = RequestButton(width = 1.5, text = PLocalizer.FishingGui['PlayAgainButton'], command = self.playAgain) self.bAgain.reparentTo(self) self.bAgain.setPos(0.57999999999999996, 0, 0.10000000000000001) self.bAgain.setScale(1.2, 1.2, 1.2) self.titleText = PLocalizer.FishingGui['WinTitle'] self.messageText = PLocalizer.FishingGui['WinText'] self.title = DirectLabel(parent = self, relief = None, text = self.titleText, text_scale = PiratesGuiGlobals.TextScaleTitleJumbo, text_font = PiratesGlobals.getPirateOutlineFont(), text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG1, text_shadow = PiratesGuiGlobals.TextLT14, pos = (0.62, 0, 1.3), textMayChange = 0) self.message = DirectLabel(parent = self, relief = None, text = self.messageText, text_scale = PiratesGuiGlobals.TextScaleTitleSmall, text_align = TextNode.ACenter, text_fg = PiratesGuiGlobals.TextFG2, text_shadow = PiratesGuiGlobals.TextShadow, text_wordwrap = 17, pos = (0.64000000000000001, 0, 1.1499999999999999), textMayChange = 0) self.fishName = None self.levelUnlockDetails = None self.fishWeight = None self.fishXpAmt = 0 self.fishXp = None self.fishXpBonus = None self.fishGoldAmt = 0 self.fishGold = None self.fishGoldBonus = None self.collectionCard = loader.loadModel('models/gui/treasure_gui')
def __init__(self, potionGame): self.potionGame = potionGame GuiPanel.__init__(self, '', 1.5, 1.0, showClose=False, titleSize=1.5) self.setPos((-0.75, 0, -0.4)) self.bQuit = RequestButton(width=1.5, text=PLocalizer.PotionGui['StopButton'], command=self.quit) self.bQuit.reparentTo(self) self.bQuit.setPos(0.15, 0, 0.05) self.bQuit.setScale(1.2, 1.2, 1.2) self.bAgain = RequestButton( width=1.5, text=PLocalizer.PotionGui['PlayAgainButton'], command=self.playAgain) self.bAgain.reparentTo(self) self.bAgain.setPos(1.25, 0, 0.05) self.bAgain.setScale(1.2, 1.2, 1.2) self.titleText = PLocalizer.PotionGui['WinTitle'] self.messageText = PLocalizer.PotionGui['WinText'] self.Title = DirectLabel( parent=self, relief=None, text=self.titleText, text_scale=PiratesGuiGlobals.TextScaleTitleJumbo, text_font=PiratesGlobals.getPirateOutlineFont(), text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG1, text_shadow=PiratesGuiGlobals.TextLT14, pos=(0.75, 0, 0.83), textMayChange=0) self.message = DirectLabel( parent=self, relief=None, text=self.messageText, text_scale=PiratesGuiGlobals.TextScaleTitleSmall, text_align=TextNode.ACenter, text_fg=PiratesGuiGlobals.TextFG2, text_shadow=PiratesGuiGlobals.TextShadow, text_wordwrap=17, pos=(0.75, 0, 0.72), textMayChange=0) self.potionName = None self.potionDesc = None self.potionXp = None self.potionImg = None return
def __init__(self): GuiPanel.__init__(self, PLocalizer.GypsyPotionCraftingTitle, 1, 0.40000000000000002, showClose = False, titleSize = 1.5) self.setPos((-0.5, 0, 0)) self.bQuit = RequestButton(text = PLocalizer.GypsyPotionCraftingClose, command = self.quit) self.bQuit.reparentTo(self) self.bQuit.setPos(0.45000000000000001, 0, 0.029999999999999999) self.message = None self.callBack = None
def __init__(self): GuiPanel.__init__(self, 'Training needed', 1, 0.40000000000000002, showClose=False, titleSize=1.5) self.setPos((-0.5, 0, 0)) self.bQuit = RequestButton(text='OK', command=self.quit) self.bQuit.reparentTo(self) self.bQuit.setPos(0.45000000000000001, 0, 0.050000000000000003) self.message = None