added loadPage Api call

This commit is contained in:
jonny 2021-04-21 11:20:17 +02:00
parent 5dc2f0ac47
commit 6c6789411a
4 changed files with 37 additions and 0 deletions

View file

@ -841,6 +841,12 @@ ${escapedMessage}
this.iframeSubscriptionList.push(iframeListener.enablePlayerControlStream.subscribe(()=>{
this.userInputManager.restoreControls();
}));
this.iframeSubscriptionList.push(iframeListener.loadPageStream.subscribe((url:string)=>{
this.loadNextGame(url).then(()=>{
this.scene.systems.settings.isTransition=true
this.onMapExit(url)
})
}));
let scriptedBubbleSprite : Sprite;
this.iframeSubscriptionList.push(iframeListener.displayBubbleStream.subscribe(()=>{
scriptedBubbleSprite = new Sprite(this,this.CurrentPlayer.x + 25,this.CurrentPlayer.y,'circleSprite-white');