Exemplo n.º 1
0
    def onCancelClick(self):

        freeablo.playClickButtonSound()

        if self.currentMenu == 1:
            freeablo.showSelectHeroMenuNoFade()
        elif self.currentMenu == 2:
            freeablo.showChooseClassMenu()
        elif self.currentMenu == 3:
            self.showEnterMenu()
        elif self.currentMenu == 4:
            freeablo.showSelectHeroMenuNoFade()
        else:
            freeablo.showMainMenu()
Exemplo n.º 2
0
    def onOkClick(self):

        freeablo.playClickButtonSound()

        if self.currentMenu == 0:
            freeablo.showChooseClassMenu()
        elif self.currentMenu == 1:
            self.showEnterMenu()
        elif self.currentMenu == 2:
            if self.doc.GetElementById("nick").value == "":
                self.showInvalidNameMenu()
            else:
                freeablo.startGame()

        elif self.currentMenu == 3:
            self.showEnterMenu()
        elif self.currentMenu == 4:
            freeablo.startGame()
        else:
            freeablo.startGame()