From 9351719873db6a523dcc5953ab18aabae530158a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 31 Aug 2020 14:10:01 +0200 Subject: [PATCH] Adding the notion of silent zone --- back/src/Assets/Maps/Floor0/floor0.json | 2 +- front/src/Phaser/Game/GameScene.ts | 8 ++++++++ website/dist/create-map.html | 13 +++++++++++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/back/src/Assets/Maps/Floor0/floor0.json b/back/src/Assets/Maps/Floor0/floor0.json index bf80c6e3..38bf49e7 100644 --- a/back/src/Assets/Maps/Floor0/floor0.json +++ b/back/src/Assets/Maps/Floor0/floor0.json @@ -260,7 +260,7 @@ "x":0, "y":0 }], - "nextlayerid":20, + "nextlayerid":21, "nextobjectid":1, "orientation":"orthogonal", "renderorder":"right-down", diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index c30bdf61..a17eab22 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -450,6 +450,14 @@ export class GameScene extends Phaser.Scene implements CenterListener { })); this.connection.setSilent(true); } + }) + + this.gameMap.onPropertyChange('silent', (newValue, oldValue) => { + if (newValue === undefined || newValue === false || newValue === '') { + this.connection.setSilent(false); + } else { + this.connection.setSilent(true); + } }); } diff --git a/website/dist/create-map.html b/website/dist/create-map.html index f1a4f7b8..6eb1a266 100644 --- a/website/dist/create-map.html +++ b/website/dist/create-map.html @@ -156,7 +156,7 @@

In order to create a zone that opens websites:

Opening a Jitsi meet when walking on the map

@@ -165,7 +165,16 @@

In order to create Jitsi meet zones:

+ +

Making a "silent" zone

+

On your map, you can define special silent zones where nobody is allowed to talk. + In these zones, users will not speak to each others, even if they are next to each others.

+

In order to create a silent zone:

+

Pushing the map