Merge branch 'develop' of github.com:thecodingmachine/workadventure into metadataScriptAPIV2
This commit is contained in:
@@ -23,7 +23,7 @@ class WorkadventureChatCommands extends IframeApiContribution<WorkadventureChatC
|
||||
data: {
|
||||
'message': message,
|
||||
'author': author
|
||||
} as ChatEvent
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
||||
"type": 'openTab',
|
||||
"data": {
|
||||
url
|
||||
} as OpenTabEvent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
||||
"type": 'goToPage',
|
||||
"data": {
|
||||
url
|
||||
} as GoToPageEvent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
||||
"type": 'loadPage',
|
||||
"data": {
|
||||
url
|
||||
} as LoadPageEvent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
||||
"type": 'openCoWebSite',
|
||||
"data": {
|
||||
url
|
||||
} as OpenCoWebSiteEvent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -108,10 +108,10 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
|
||||
subject.subscribe(callback);
|
||||
}
|
||||
showLayer(layerName: string): void {
|
||||
sendToWorkadventure({type: 'showLayer', data: {'name': layerName} as LayerEvent});
|
||||
sendToWorkadventure({type: 'showLayer', data: {'name': layerName}});
|
||||
}
|
||||
hideLayer(layerName: string): void {
|
||||
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName} as LayerEvent});
|
||||
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName}});
|
||||
}
|
||||
setProperty(layerName: string, propertyName: string, propertyValue: string | number | boolean | undefined): void {
|
||||
sendToWorkadventure({
|
||||
@@ -120,7 +120,7 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
|
||||
'layerName': layerName,
|
||||
'propertyName': propertyName,
|
||||
'propertyValue': propertyValue,
|
||||
} as SetPropertyEvent
|
||||
}
|
||||
})
|
||||
}
|
||||
getCurrentRoom(): Promise<Room> {
|
||||
|
||||
@@ -90,7 +90,7 @@ class WorkAdventureUiCommands extends IframeApiContribution<WorkAdventureUiComma
|
||||
'type': 'registerMenuCommand',
|
||||
'data': {
|
||||
menutItem: commandDescriptor
|
||||
} as MenuItemRegisterEvent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user