def setSelected(self, num, playSound=True): if self.current != num: if playSound: freeablo.playSound("sfx/items/titlemov.wav") if self.current != -1: self.setNotSelected(self.current) elem = self.getEntryElement(num) elem.inner_rml = self.fmtSelected % self.entries[num]["text"] self.current = num
def openScrollbox(rml, openingSound): global DIALOGUE_PATH freeablo.stopSound() if openingSound != "": freeablo.playSound(openingSound) if rml != "": rml = DIALOGUE_PATH + rml freeablo.openDialogueScrollbox(rml)
def activate(self): freeablo.playSound("sfx/items/titlslct.wav") currentEntry = self.entries[self.current] if ("func" in currentEntry): currentEntry["func"](currentEntry["args"]) if "args" in currentEntry \ else currentEntry["func"]()
def activate(self): freeablo.playSound("sfx/items/titlslct.wav") currentEntry = self.entries[self.current] if("func" in currentEntry): currentEntry["func"](currentEntry["args"]) if "args" in currentEntry \ else currentEntry["func"]()
def activate(self): freeablo.playSound("sfx/items/titlslct.wav") currentEntry = self.entries[self.current] if "func" in currentEntry: currentEntry["func"]()