This is great. The only challenge is when the course resets the sound is still off... but when my course starts my variable thinks the sound is on so my sound indicator doesn't match what's happening...
Any ideas...
My thought is to execute a trigger when user clicks the replay button that switches the volume on if it's off and does nothing if it's on... but I don't know how to write that..
2 Replies
For anyone who needs it! Below works as of 5/19/22. :)
var appState = window.DS ? DS.appState : require("helpers/appState");
appState.onToggleVolume();
This is great. The only challenge is when the course resets the sound is still off... but when my course starts my variable thinks the sound is on so my sound indicator doesn't match what's happening...
Any ideas...
My thought is to execute a trigger when user clicks the replay button that switches the volume on if it's off and does nothing if it's on... but I don't know how to write that..
has anyone solved this?