Renaming changeTile to setTiles

This commit is contained in:
David Négrier 2021-06-28 14:58:49 +02:00
parent 319db95bc8
commit 1e57028e6e
11 changed files with 85 additions and 85 deletions

View file

@ -1,31 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<script>
var script = document.createElement('script');
// Don't do this at home kids! The "document.referrer" part is actually inserting a XSS security.
// We are OK in this precise case because the HTML page is hosted on the "maps" domain that contains only static files.
script.setAttribute('src', document.referrer + 'iframe_api.js');
document.head.appendChild(script);
window.addEventListener('load', () => {
WA.room.changeTile([
{x: 0, y: 0, tile: 92, layer: 'changeTile'},
{x: 0, y: 2, tile: 'Red', layer: 'changeTile'},
{x: 0, y: 3, tile: 99, layer: 'changeTile'},
{x: 0, y: 5, tile: 117, layer: 'changeTile'},
{x: 0, y: 6, tile: 117, layer: 'changeTile'},
{x: 0, y: 9, tile: 74, layer: 'changeTile'}
]);
WA.room.changeTile([
{x: 6, y: 4, tile: 'blue', layer: 'changeTile'},
{x: 7, y: 4, tile: 109, layer: 'changeTile'},
{x: 8, y: 4, tile: 109, layer: 'changeTile'},
{x: 9, y: 4, tile: 'blue', layer: 'changeTile'}
]);
});
</script>
</head>
<body>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<script>
var script = document.createElement('script');
// Don't do this at home kids! The "document.referrer" part is actually inserting a XSS security.
// We are OK in this precise case because the HTML page is hosted on the "maps" domain that contains only static files.
script.setAttribute('src', document.referrer + 'iframe_api.js');
document.head.appendChild(script);
window.addEventListener('load', () => {
WA.room.setTiles([
{x: 0, y: 0, tile: 92, layer: 'setTiles'},
{x: 0, y: 2, tile: 'Red', layer: 'setTiles'},
{x: 0, y: 3, tile: 99, layer: 'setTiles'},
{x: 0, y: 5, tile: 117, layer: 'setTiles'},
{x: 0, y: 6, tile: 117, layer: 'setTiles'},
{x: 0, y: 9, tile: 74, layer: 'setTiles'}
]);
WA.room.setTiles([
{x: 6, y: 4, tile: 'blue', layer: 'setTiles'},
{x: 7, y: 4, tile: 109, layer: 'setTiles'},
{x: 8, y: 4, tile: 109, layer: 'setTiles'},
{x: 9, y: 4, tile: 'blue', layer: 'setTiles'}
]);
});
</script>
</head>
<body>
</body>
</html>

View file

@ -20,7 +20,7 @@
"width":10,
"x":0,
"y":0
},
},
{
"data":[33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 41, 42, 42, 42, 42, 42, 42, 42, 42, 43, 49, 50, 50, 50, 50, 50, 50, 50, 50, 51],
"height":10,
@ -32,7 +32,7 @@
"width":10,
"x":0,
"y":0
},
},
{
"data":[0, 0, 0, 0, 0, 0, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0, 128, 128, 128, 128, 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,
@ -43,8 +43,8 @@
{
"name":"openWebsite",
"type":"string",
"value":"changeTile.html"
},
"value":"setTiles.html"
},
{
"name":"openWebsiteAllowApi",
"type":"bool",
@ -55,19 +55,19 @@
"width":10,
"x":0,
"y":0
},
},
{
"data":[65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 65, 65, 65, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 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, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":10,
"id":8,
"name":"changeTile",
"name":"setTiles",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":10,
"x":0,
"y":0
},
},
{
"draworder":"topdown",
"id":5,
@ -124,7 +124,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":1,
"properties":[
@ -133,7 +133,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":2,
"properties":[
@ -142,7 +142,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":3,
"properties":[
@ -151,7 +151,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":4,
"properties":[
@ -160,7 +160,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":8,
"properties":[
@ -169,7 +169,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":9,
"properties":[
@ -178,7 +178,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":10,
"properties":[
@ -187,7 +187,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":11,
"properties":[
@ -196,7 +196,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":12,
"properties":[
@ -205,7 +205,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":16,
"properties":[
@ -214,7 +214,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":17,
"properties":[
@ -223,7 +223,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":18,
"properties":[
@ -232,7 +232,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":19,
"properties":[
@ -241,7 +241,7 @@
"type":"bool",
"value":true
}]
},
},
{
"id":20,
"properties":[
@ -252,7 +252,7 @@
}]
}],
"tilewidth":32
},
},
{
"columns":8,
"firstgid":65,
@ -273,7 +273,7 @@
"type":"string",
"value":"customMenu.json"
}]
},
},
{
"id":27,
"properties":[
@ -281,18 +281,18 @@
"name":"jitsiRoom",
"type":"string",
"value":"TEST"
},
},
{
"name":"jitsiTrigger",
"type":"string",
"value":"onaction"
},
},
{
"name":"jitsiUrl",
"type":"string",
"value":"meet.jit.si"
}]
},
},
{
"id":34,
"properties":[
@ -300,13 +300,13 @@
"name":"name",
"type":"string",
"value":"Red"
},
},
{
"name":"openWebsite",
"type":"string",
"value":"https:\/\/fr.wikipedia.org\/wiki\/Wikip%C3%A9dia:Accueil_principal"
}]
},
},
{
"id":40,
"properties":[
@ -315,7 +315,7 @@
"type":"string",
"value":""
}]
},
},
{
"id":44,
"properties":[
@ -323,13 +323,13 @@
"name":"collides",
"type":"bool",
"value":true
},
},
{
"name":"name",
"type":"string",
"value":"blue"
}]
},
},
{
"id":52,
"properties":[