Revert "Merge branch 'update-game-tiles' into metadataScriptingApi"
This reverts commit796a9418d3
, reversing changes made to3506063e65
.
This commit is contained in:
parent
796a9418d3
commit
1110f4fb7f
6 changed files with 42 additions and 79 deletions
|
@ -26,6 +26,8 @@ interface WorkAdventureApi {
|
|||
onEnterZone(name: string, callback: () => void): void;
|
||||
onLeaveZone(name: string, callback: () => void): void;
|
||||
openPopup(targetObject: string, message: string, buttons: ButtonDescriptor[]): Popup;
|
||||
openTab(url: string): void;
|
||||
goToPage(url: string): void;
|
||||
openCoWebSite(url: string): void;
|
||||
closeCoWebSite(): void;
|
||||
disablePlayerControls() : void;
|
||||
|
@ -165,7 +167,7 @@ window.WA = {
|
|||
|
||||
loadTileset(name: string, imgUrl : string, tilewidth : number, tileheight : number, margin : number, spacing : number): void {
|
||||
postToParent({
|
||||
type: "updateTileEvent",
|
||||
type: "tilsetEvent",
|
||||
data: {
|
||||
name: name,
|
||||
imgUrl: imgUrl,
|
||||
|
@ -274,6 +276,24 @@ window.WA = {
|
|||
window.parent.postMessage({ 'type': 'removeBubble' }, '*');
|
||||
},
|
||||
|
||||
openTab(url: string): void {
|
||||
window.parent.postMessage({
|
||||
"type": 'openTab',
|
||||
"data": {
|
||||
url
|
||||
} as OpenTabEvent
|
||||
}, '*');
|
||||
},
|
||||
|
||||
goToPage(url: string): void {
|
||||
window.parent.postMessage({
|
||||
"type": 'goToPage',
|
||||
"data": {
|
||||
url
|
||||
} as GoToPageEvent
|
||||
}, '*');
|
||||
},
|
||||
|
||||
openCoWebSite(url: string): void {
|
||||
window.parent.postMessage({
|
||||
"type": 'openCoWebSite',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue