Merge branch 'menu-commands-apiref' of github.com:jonnytest1/workadventure into metadataScriptingApi

This commit is contained in:
GRL 2021-06-23 09:18:20 +02:00
commit 85fe92f604
13 changed files with 233 additions and 192 deletions

View file

@ -5,11 +5,9 @@
</head>
<body>
<script>
let chatbotEnabled = false;
WA.registerMenuCommand('help', () => {
chatbotEnabled = true;
WA.sendChatMessage("HELP", 'Mr Robot');
});
WA.ui.registerMenuCommand("test", () => {
WA.chat.sendChatMessage("test clicked", "menu cmd")
})
</script>
</body>
</html>