renamed api method "exitSceneTo"
This commit is contained in:
@@ -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();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user