We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The widget selection sound is not playing when I change the selected widget.
To Reproduce As an example, use the example code that added the widget selection sound:
import pygame import pygame_menu pygame.init() surface = pygame.display.set_mode((600, 400)) def set_difficulty(value, difficulty): pass def start_the_game(): print('Press button') engine = pygame_menu.sound.Sound() engine.set_sound(pygame_menu.sound.SOUND_TYPE_WIDGET_SELECTION, pygame_menu.sound.SOUND_EXAMPLES[-1]) menu = pygame_menu.Menu('Welcome', 400, 300, theme=pygame_menu.themes.THEME_BLUE) menu.set_sound(engine, recursive=True) menu.add.text_input('Name :', default='John Doe') menu.add.selector('Difficulty :', [('Hard', 1), ('Easy', 2)], onchange=set_difficulty) menu.add.button('Play', start_the_game) menu.add.button('Quit', pygame_menu.events.EXIT) menu.center_content() menu.mainloop(surface)
Expected behavior When you move between widgets, the sound should be played.
The text was updated successfully, but these errors were encountered:
It seems that when used the keys instead of a joystick to select the widget, apply_sound is not set to True:
apply_sound
True
pygame-menu/pygame_menu/menu.py
Line 2457 in 41d3d50
Sorry, something went wrong.
Hi @vnmabus. Fixed in #402
Successfully merging a pull request may close this issue.
Describe the bug
The widget selection sound is not playing when I change the selected widget.
To Reproduce
As an example, use the example code that added the widget selection sound:
Expected behavior
When you move between widgets, the sound should be played.
The text was updated successfully, but these errors were encountered: