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()
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()
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"]()
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"]()
def onDeleteClick(self): freeablo.playClickButtonSound() self.menu.deleteEntry(self.menu.current)