Make the learn sound menu a little less verbose.
This commit is contained in:
		
							
								
								
									
										6
									
								
								menu.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								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] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user