Fixed typo in menu.py.

This commit is contained in:
Storm Dragon 2025-03-15 18:34:30 -04:00
parent f51bd6dee4
commit 4d0436c5a9

View File

@ -30,7 +30,7 @@ def game_menu(sounds, playCallback=None, *customOptions):
Standard menu structure: Standard menu structure:
1. Play (always first) 1. Play (always first)
2. High Scores (if scores exist) 2. High Scores
3. Custom options (if provided) 3. Custom options (if provided)
4. Learn Sounds 4. Learn Sounds
5. Instructions (if available) 5. Instructions (if available)
@ -61,7 +61,7 @@ def game_menu(sounds, playCallback=None, *customOptions):
allOptions = ["play"] allOptions = ["play"]
# Add high scores option if scores exist # Add high scores option if scores exist
if Scoreboard.hasHighScores(): if Scoreboard.has_high_scores():
allOptions.append("high_scores") allOptions.append("high_scores")
# Add custom options (other menu items, etc.) # Add custom options (other menu items, etc.)
@ -204,7 +204,7 @@ def game_menu(sounds, playCallback=None, *customOptions):
elif selectedOption == "learn_sounds": elif selectedOption == "learn_sounds":
learn_sounds(sounds) learn_sounds(sounds)
elif selectedOption == "high_scores": elif selectedOption == "high_scores":
Scoreboard.displayHighScores() Scoreboard.displayHigh_scores()
elif selectedOption == "donate": elif selectedOption == "donate":
donate() donate()