From f8b506144dffaa2ef103632efdee795cf1ff286d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 18 Oct 2021 14:34:47 +0200 Subject: [PATCH] When there are many virtual users (generated by chat), only the name of a first user is displayed. Adding a test case for this. --- maps/tests/script.js | 1 + maps/tests/script_api.json | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/maps/tests/script.js b/maps/tests/script.js index 52b201d6..f92deb84 100644 --- a/maps/tests/script.js +++ b/maps/tests/script.js @@ -40,6 +40,7 @@ WA.chat.onChatMessage((message => { WA.room.onEnterZone('myTrigger', () => { WA.chat.sendChatMessage("Don't step on my carpet!", 'Poly Parrot'); + WA.chat.sendChatMessage("Yeah, don't step on her carpet!", 'Peter Parrot'); }) WA.room.onLeaveZone('popupZone', () => { diff --git a/maps/tests/script_api.json b/maps/tests/script_api.json index 73ef9d01..8e5534e9 100644 --- a/maps/tests/script_api.json +++ b/maps/tests/script_api.json @@ -13,7 +13,7 @@ "width":10, "x":0, "y":0 - }, + }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 23, 23, 0, 0, 0, 0, 0, 0, 0, 0, 23, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "height":10, @@ -31,7 +31,7 @@ "width":10, "x":0, "y":0 - }, + }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 23, 0, 0, 0, 0, 0, 0, 0, 0, 23, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "height":10, @@ -49,7 +49,7 @@ "width":10, "x":0, "y":0 - }, + }, { "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], "height":10, @@ -61,7 +61,7 @@ "width":10, "x":0, "y":0 - }, + }, { "draworder":"topdown", "id":3, @@ -77,7 +77,7 @@ "width":104.442827410047, "x":142.817125079855, "y":147.448134926559 - }, + }, { "height":132.434722966794, "id":2, @@ -88,7 +88,7 @@ "width":125.735549178518, "x":13.649632619596, "y":50.8502491249093 - }, + }, { "height":67, "id":3, @@ -98,7 +98,7 @@ { "fontfamily":"Sans Serif", "pixelsize":11, - "text":"Test:\nWalk on top carpet\nResult:\nA message \"Don't step on my carpet\" is displayed", + "text":"Test:\nWalk on top carpet\nResult:\nA message \"Don't step on my carpet\" is displayed from Poly Parrot and another message from Peter Parrot", "wrap":true }, "type":"", @@ -106,7 +106,7 @@ "width":252.4375, "x":2.78125, "y":2.5 - }, + }, { "height":67, "id":4, @@ -161,4 +161,4 @@ "type":"map", "version":1.5, "width":10 -} \ No newline at end of file +}