From 0e96a25d816ef20acff5d1b2043bdb4684aba3da Mon Sep 17 00:00:00 2001 From: Vishal Date: Wed, 15 Jan 2025 15:38:59 +0530 Subject: [PATCH] A little more interesting sounds --- src/assets/ba_data/python/bauiv1lib/help.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/assets/ba_data/python/bauiv1lib/help.py b/src/assets/ba_data/python/bauiv1lib/help.py index 613515db..88a0830e 100644 --- a/src/assets/ba_data/python/bauiv1lib/help.py +++ b/src/assets/ba_data/python/bauiv1lib/help.py @@ -401,6 +401,8 @@ class HelpWindow(bui.MainWindow): texture=bui.gettexture('buttonPunch'), color=(1, 0.7, 0.3), selectable=False, + enable_sound=False, + on_activate_call=bui.getsound('spazAttack01').play, ) txt_scale = getres(f'{self._r}.punchInfoTextScale') @@ -427,6 +429,8 @@ class HelpWindow(bui.MainWindow): texture=bui.gettexture('buttonBomb'), color=(1, 0.3, 0.3), selectable=False, + enable_sound=False, + on_activate_call=bui.getsound('explosion01').play, ) txt = bui.Lstr(resource=f'{self._r}.bombInfoText').evaluate() @@ -454,6 +458,8 @@ class HelpWindow(bui.MainWindow): texture=bui.gettexture('buttonPickUp'), color=(0.5, 0.5, 1), selectable=False, + enable_sound=False, + on_activate_call=bui.getsound('spazPickup01').play, ) txtl = bui.Lstr(resource=f'{self._r}.pickUpInfoText') @@ -480,6 +486,8 @@ class HelpWindow(bui.MainWindow): texture=bui.gettexture('buttonJump'), color=(0.4, 1, 0.4), selectable=False, + enable_sound=False, + on_activate_call=bui.getsound('spazJump01').play, ) txt = bui.Lstr(resource=f'{self._r}.jumpInfoText').evaluate()