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;
|
||||
openTab(url : string): void;
|
||||
goToPage(url : string): void;
|
||||
loadPage(url : string): void;
|
||||
exitSceneTo(url : string): void;
|
||||
openCoWebSite(url : string): void;
|
||||
closeCoWebSite(): void;
|
||||
disablePlayerControl() : void;
|
||||
@ -124,7 +124,7 @@ window.WA = {
|
||||
},'*');
|
||||
},
|
||||
|
||||
loadPage(url : string) : void{
|
||||
exitSceneTo(url : string) : void{
|
||||
window.parent.postMessage({
|
||||
"type" : 'loadPage',
|
||||
"data" : {
|
||||
|
@ -39,7 +39,7 @@ WA.onEnterZone(zoneName, () => {
|
||||
label: "load grouped map",
|
||||
className: "popUpElement",
|
||||
callback: (popup => {
|
||||
WA.loadPage(urlRelativeMap);
|
||||
WA.exitSceneTo(urlRelativeMap);
|
||||
popup.close();
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user