aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-07-13 18:41:23 +0200
committersD <stoned@derpymail.org>2020-07-13 18:41:23 +0200
commit37134ff18d3b131adc75dbfa1a2a0abbebf5c5e8 (patch)
tree1f1976c40e0ae1335ab027fd8bd594f12b7d5c21 /webAO
parent573b4bc2e82145d0c092daf964711a062d8fba9d (diff)
use the new testimony element
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 4f3d4fc..d4365dd 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -1329,6 +1329,9 @@ class Viewport {
this.shoutaudio = document.getElementById("client_shoutaudio");
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.music = document.getElementById("client_musicaudio");
this.music.src = `${AO_HOST}sounds/music/trial (aa).mp3`;
@@ -1474,7 +1477,8 @@ async changeBackground(position) {
return;
}
- (new Audio(client.resources[testimony].sfx)).play();
+ this.testimonyAudio.src = client.resources[testimony].sfx;
+ this.testimonyAudio.play();
const testimonyOverlay = document.getElementById("client_testimony");
testimonyOverlay.src = client.resources[testimony].src;