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:
parent
eaacb4b31a
commit
7b9c616788
@ -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(
|
this.iframeSubscriptionList.push(
|
||||||
iframeListener.addActionsMenuKeyToRemotePlayerStream.subscribe((data) => {
|
iframeListener.addActionsMenuKeyToRemotePlayerStream.subscribe((data) => {
|
||||||
this.MapPlayersByKey.get(data.id)?.registerActionsMenuAction({
|
this.MapPlayersByKey.get(data.id)?.registerActionsMenuAction({
|
||||||
|
Loading…
Reference in New Issue
Block a user