diff --git a/public/assets/sounds/walk.wav b/public/assets/sounds/walk.wav index f7b188f..17f7fdd 100644 Binary files a/public/assets/sounds/walk.wav and b/public/assets/sounds/walk.wav differ diff --git a/src/App.vue b/src/App.vue index 8a6634f..b46b7b0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,7 @@ - + @@ -48,10 +48,9 @@ addEventListener('click', (event) => { const classList = ['btn-cyan', 'btn-red', 'btn-indigo', 'btn-empty', 'btn-sound'] const target = event.target as HTMLElement // console.log(target) // Uncomment to log the clicked element - if (!classList.some((className) => target.classList.contains(className))) { - return // Only play sound if the clicked element is a button + if (classList.some((className) => target.classList.contains(className))) { + playSound('/assets/sounds/button-click.wav') } - playSound('/assets/sounds/button-click.wav') }) // Watch for "G" key press and toggle the gm panel diff --git a/src/components/gameMaster/GmPanel.vue b/src/components/gameMaster/GmPanel.vue index 843de09..56e6113 100644 --- a/src/components/gameMaster/GmPanel.vue +++ b/src/components/gameMaster/GmPanel.vue @@ -6,7 +6,7 @@ - +