mirror of
https://github.com/clockworkpi/launcher.git
synced 2026-03-19 18:32:45 +01:00
disbale sound patch while over Sound Setting page in Settings
This commit is contained in:
@@ -202,27 +202,28 @@ def event_process(event,main_screen):
|
||||
exit()
|
||||
|
||||
if event.key == pygame.K_KP_PLUS:
|
||||
|
||||
main_screen.Draw()
|
||||
sound_patch.VolumeUp()
|
||||
sound_patch.Draw()
|
||||
|
||||
main_screen.SwapAndShow()
|
||||
#pygame.time.delay(200)
|
||||
#main_screen.Draw()
|
||||
#main_screen.SwapAndShow()
|
||||
if main_screen._CurrentPage._Name != "Sound volume": ## name from Menu/GameShell/10_Settings/Sound/pages.py
|
||||
main_screen.Draw()
|
||||
sound_patch.VolumeUp()
|
||||
sound_patch.Draw()
|
||||
|
||||
main_screen.SwapAndShow()
|
||||
#pygame.time.delay(200)
|
||||
#main_screen.Draw()
|
||||
#main_screen.SwapAndShow()
|
||||
|
||||
if event.key == pygame.K_KP_MINUS:
|
||||
main_screen.Draw()
|
||||
|
||||
sound_patch.VolumeDown()
|
||||
sound_patch.Draw()
|
||||
|
||||
main_screen.SwapAndShow()
|
||||
#pygame.time.delay(200)
|
||||
#main_screen.Draw()
|
||||
#main_screen.SwapAndShow()
|
||||
|
||||
if main_screen._CurrentPage._Name != "Sound volume":
|
||||
main_screen.Draw()
|
||||
|
||||
sound_patch.VolumeDown()
|
||||
sound_patch.Draw()
|
||||
|
||||
main_screen.SwapAndShow()
|
||||
#pygame.time.delay(200)
|
||||
#main_screen.Draw()
|
||||
#main_screen.SwapAndShow()
|
||||
|
||||
|
||||
###########################################################
|
||||
if event.key == pygame.K_ESCAPE:
|
||||
|
||||
Reference in New Issue
Block a user