From b81b7b499f60dd1b5be37789c174623848fa2b34 Mon Sep 17 00:00:00 2001 From: cuu Date: Fri, 1 Jun 2018 18:02:37 +0800 Subject: [PATCH] disbale sound patch while over Sound Setting page in Settings --- sys.py/run.py | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/sys.py/run.py b/sys.py/run.py index a1a76fe..490d24e 100644 --- a/sys.py/run.py +++ b/sys.py/run.py @@ -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: