diff options
| author | sD <stoned@derpymail.org> | 2020-08-17 20:02:04 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-08-17 20:02:04 +0200 |
| commit | b0fb74ce9cb02291df59f15be526d0ee2a147fd7 (patch) | |
| tree | 72726876f5d5e66ed73c3bac9edfa68b3898927e /webAO/client.js | |
| parent | 27f0055d083eb8b5753d4a3730efc9accb04b683 (diff) | |
add sfx to evidence popup
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js index bdf372f..6d6a3a7 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1336,7 +1336,7 @@ class Viewport { this.shoutaudio.src = `${AO_HOST}misc/default/objection.wav`; this.testimonyAudio = document.getElementById("client_testimonyaudio"); - this.testimonyAudio.src = `${AO_HOST}sounds/general/sfx-notguilty.wav`; + this.testimonyAudio.src = `${AO_HOST}sounds/general/sfx-guilty.wav`; this.music = document.getElementById("client_musicaudio"); this.music.src = `${AO_HOST}sounds/music/trial (aa).mp3`; @@ -1862,6 +1862,9 @@ async changeBackground(position) { eviBox.style.height = "36.5%"; eviBox.style.opacity = 1; + this.testimonyAudio.src = AO_HOST + "sounds/general/sfx-evidenceshoop.wav"; + this.testimonyAudio.play(); + if (this.chatmsg.side === "def") { // Only def show evidence on right eviBox.style.right = "1em"; |
