Merge branch 'quer' of gitea:berhsi/leonardo-map into quer
This commit is contained in:
commit
8e7ee40a82
19
malen.js
19
malen.js
|
@ -1,18 +1 @@
|
||||||
let helloWorldPopup;
|
WA.sendChatMessage('Hello world', 'Mr Robot');
|
||||||
|
|
||||||
// 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();
|
|
||||||
});
|
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
"offsety":-384,
|
"offsety":-384,
|
||||||
"opacity":1,
|
"opacity":1,
|
||||||
"type":"imagelayer",
|
"type":"imagelayer",
|
||||||
"visible":true,
|
"visible":false,
|
||||||
"x":0,
|
"x":0,
|
||||||
"y":0
|
"y":0
|
||||||
},
|
},
|
||||||
|
@ -300,7 +300,7 @@
|
||||||
"properties":[
|
"properties":[
|
||||||
{
|
{
|
||||||
"name":"script",
|
"name":"script",
|
||||||
"type":"file",
|
"type":"string",
|
||||||
"value":"malen.js"
|
"value":"malen.js"
|
||||||
}],
|
}],
|
||||||
"renderorder":"right-down",
|
"renderorder":"right-down",
|
||||||
|
|
Loading…
Reference in a new issue