renamed api method "exitSceneTo"
This commit is contained in:
parent
99926a89b2
commit
99bd9d88d9
@ -19,7 +19,7 @@ interface WorkAdventureApi {
|
|||||||
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
|
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
|
||||||
openTab(url : string): void;
|
openTab(url : string): void;
|
||||||
goToPage(url : string): void;
|
goToPage(url : string): void;
|
||||||
loadPage(url : string): void;
|
exitSceneTo(url : string): void;
|
||||||
openCoWebSite(url : string): void;
|
openCoWebSite(url : string): void;
|
||||||
closeCoWebSite(): void;
|
closeCoWebSite(): void;
|
||||||
disablePlayerControl() : void;
|
disablePlayerControl() : void;
|
||||||
@ -124,7 +124,7 @@ window.WA = {
|
|||||||
},'*');
|
},'*');
|
||||||
},
|
},
|
||||||
|
|
||||||
loadPage(url : string) : void{
|
exitSceneTo(url : string) : void{
|
||||||
window.parent.postMessage({
|
window.parent.postMessage({
|
||||||
"type" : 'loadPage',
|
"type" : 'loadPage',
|
||||||
"data" : {
|
"data" : {
|
||||||
|
@ -39,7 +39,7 @@ WA.onEnterZone(zoneName, () => {
|
|||||||
label: "load grouped map",
|
label: "load grouped map",
|
||||||
className: "popUpElement",
|
className: "popUpElement",
|
||||||
callback: (popup => {
|
callback: (popup => {
|
||||||
WA.loadPage(urlRelativeMap);
|
WA.exitSceneTo(urlRelativeMap);
|
||||||
popup.close();
|
popup.close();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user