diff --git a/menu.py b/menu.py index 28d33ab..9a49c62 100644 --- a/menu.py +++ b/menu.py @@ -198,7 +198,7 @@ class Menu: # Speak initial sound name soundName = soundList[self.currentIndex] displayName = soundName.replace("/", " in folder ") - self.game.speech.speak(f"Sound 1 of {len(soundList)}: {displayName}") + self.game.speech.speak(f"{displayname}: 1 of {len(soundList)}") while True: key, _ = self.game.wait(validKeys) @@ -216,7 +216,7 @@ class Menu: self.currentIndex += 1 soundName = soundList[self.currentIndex] displayName = soundName.replace("/", " in folder ") - self.game.speech.speak(f"Sound {self.currentIndex + 1} of {len(soundList)}: {displayName}") + self.game.speech.speak(f"{displayname}: {self.currentIndex + 1} of {len(soundList)}") if key in [pyglet.window.key.UP, pyglet.window.key.W]: if self.currentIndex > 0: @@ -224,7 +224,7 @@ class Menu: self.currentIndex -= 1 soundName = soundList[self.currentIndex] displayName = soundName.replace("/", " in folder ") - self.game.speech.speak(f"Sound {self.currentIndex + 1} of {len(soundList)}: {displayName}") + self.game.speech.speak(f"{displayName}: {self.currentIndex + 1} of {len(soundList)}") if key == pyglet.window.key.RETURN: soundName = soundList[self.currentIndex]