コード例 #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()
コード例 #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()
コード例 #3
0
ファイル: menu.py プロジェクト: FlyingTarrasque/freeablo
 def activate(self):
     freeablo.playClickButtonSound()
     currentEntry = self.entries[self.current]
     if("func" in currentEntry):
         currentEntry["func"](currentEntry["args"]) if "args" in currentEntry \
             else currentEntry["func"]()
コード例 #4
0
ファイル: menu.py プロジェクト: KevinMilcz/freeablo
 def activate(self):
     freeablo.playClickButtonSound()
     currentEntry = self.entries[self.current]
     if ("func" in currentEntry):
         currentEntry["func"](currentEntry["args"]) if "args" in currentEntry \
             else currentEntry["func"]()
コード例 #5
0
 def onDeleteClick(self):
     freeablo.playClickButtonSound()
     self.menu.deleteEntry(self.menu.current)