From 39709fa4f16cb658dce5c770178b03d73da6a435 Mon Sep 17 00:00:00 2001 From: example Date: Sun, 9 May 2021 00:41:41 +0200 Subject: [PATCH] script-property wieder auf string gesetzt, malen.js vereinfacht --- malen.js | 19 +------------------ quer.json | 4 ++-- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/malen.js b/malen.js index 0f6e851..7899f1f 100644 --- a/malen.js +++ b/malen.js @@ -1,18 +1 @@ -let helloWorldPopup; - -// Open the popup when we enter a given zone -helloWorldPopup = WA.onEnterZone('malen-1', () => { - WA.openPopup("popupRectangle", 'Hello world!', [{ - label: "Close", - className: "primary", - callback: (popup) => { - // Close the popup when the "Close" button is pressed. - popup.close(); - } - }); -}]); - -// Close the popup when we leave the zone. -WA.onLeaveZone('malen-1', () => { - helloWorldPopup.close(); -}); +WA.sendChatMessage('Hello world', 'Mr Robot'); diff --git a/quer.json b/quer.json index 2eb1cb8..464eb8b 100644 --- a/quer.json +++ b/quer.json @@ -52,7 +52,7 @@ "offsety":-384, "opacity":1, "type":"imagelayer", - "visible":true, + "visible":false, "x":0, "y":0 }, @@ -300,7 +300,7 @@ "properties":[ { "name":"script", - "type":"file", + "type":"string", "value":"malen.js" }], "renderorder":"right-down",