Skip to content

Commit

Permalink
A little more interesting sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal332008 authored Jan 15, 2025
1 parent 44e179f commit 0e96a25
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/assets/ba_data/python/bauiv1lib/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def __init__(
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')
Expand All @@ -427,6 +429,8 @@ def __init__(
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()
Expand Down Expand Up @@ -454,6 +458,8 @@ def __init__(
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')
Expand All @@ -480,6 +486,8 @@ def __init__(
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()
Expand Down

0 comments on commit 0e96a25

Please sign in to comment.