Beispiel #1
0
    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
Beispiel #2
0
    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
Beispiel #3
0
def openScrollbox(rml, openingSound):

    global DIALOGUE_PATH

    freeablo.stopSound()

    if openingSound != "":
        freeablo.playSound(openingSound)

    if rml != "":
        rml = DIALOGUE_PATH + rml
        freeablo.openDialogueScrollbox(rml)
Beispiel #4
0
 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"]()
Beispiel #5
0
 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"]()
Beispiel #6
0
 def activate(self):
     freeablo.playSound("sfx/items/titlslct.wav")
     currentEntry = self.entries[self.current]
     if "func" in currentEntry:
         currentEntry["func"]()