Refactoring displayActionMessage signature. Now accepting an options object. This should allow for more options in the future.
This commit is contained in:
parent
87e4367455
commit
bc1c6a4986
7 changed files with 84 additions and 36 deletions
|
@ -2,8 +2,11 @@ WA.onInit().then(() => {
|
|||
let message;
|
||||
|
||||
WA.room.onEnterZone("carpet", () => {
|
||||
message = WA.ui.displayActionMessage("This is a test message. Press space to display a chat message. Walk out to hide the message.", () => {
|
||||
WA.chat.sendChatMessage("Hello world!", "The bot");
|
||||
message = WA.ui.displayActionMessage({
|
||||
message: "This is a test message. Press space to display a chat message. Walk out to hide the message.",
|
||||
callback: () => {
|
||||
WA.chat.sendChatMessage("Hello world!", "The bot");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue