Fixing sound stop function in scripting API

The sound "stop()" method was broken in scripting API.
This commit adds the missing listener in GameScene
This commit is contained in:
David Négrier 2022-04-26 15:06:50 +02:00
parent eaacb4b31a
commit 7b9c616788

View File

@ -1106,6 +1106,13 @@ ${escapedMessage}
})
);
this.iframeSubscriptionList.push(
iframeListener.stopSoundStream.subscribe((stopSoundEvent) => {
const url = new URL(stopSoundEvent.url, this.MapUrlFile);
soundManager.stopSound(this.sound, url.toString());
})
);
this.iframeSubscriptionList.push(
iframeListener.addActionsMenuKeyToRemotePlayerStream.subscribe((data) => {
this.MapPlayersByKey.get(data.id)?.registerActionsMenuAction({