Merge branch 'menu-commands-apiref' of github.com:jonnytest1/workadventure into metadataScriptingApi
This commit is contained in:
commit
85fe92f604
13 changed files with 233 additions and 192 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue