diff --git a/front/dist/resources/style/style.css b/front/dist/resources/style/style.css index e78a195d..ff79245c 100644 --- a/front/dist/resources/style/style.css +++ b/front/dist/resources/style/style.css @@ -806,7 +806,7 @@ input[type=range]:focus::-ms-fill-upper { right: 0; } .main-container .audio-playing img{ - width: 30px; + /*width: 30px;*/ border-radius: 50%; background-color: #ffda01; padding: 10px; @@ -814,6 +814,7 @@ input[type=range]:focus::-ms-fill-upper { .main-container .audio-playing p{ color: white; margin-left: 10px; + margin-top: 14px; } /* VIDEO QUALITY */ diff --git a/front/src/Connexion/AdminMessagesService.ts b/front/src/Connexion/AdminMessagesService.ts index 7f96a673..1750dd28 100644 --- a/front/src/Connexion/AdminMessagesService.ts +++ b/front/src/Connexion/AdminMessagesService.ts @@ -5,6 +5,7 @@ export enum AdminMessageEventTypes { admin = 'message', audio = 'audio', ban = 'ban', + banned = 'banned', } interface AdminMessageEvent { diff --git a/front/src/Connexion/RoomConnection.ts b/front/src/Connexion/RoomConnection.ts index a31b7476..946238b2 100644 --- a/front/src/Connexion/RoomConnection.ts +++ b/front/src/Connexion/RoomConnection.ts @@ -188,7 +188,7 @@ export class RoomConnection implements RoomConnection { } else if (message.hasSendusermessage()) { adminMessagesService.onSendusermessage(message.getSendusermessage() as SendUserMessage); } else if (message.hasBanusermessage()) { - adminMessagesService.onSendusermessage(message.getSendusermessage() as BanUserMessage); + adminMessagesService.onSendusermessage(message.getBanusermessage() as BanUserMessage); } else if (message.hasWorldfullwarningmessage()) { worldFullWarningStream.onMessage(); } else if (message.hasRefreshroommessage()) { diff --git a/front/src/index.ts b/front/src/index.ts index aab45a9b..89582cd4 100644 --- a/front/src/index.ts +++ b/front/src/index.ts @@ -34,7 +34,7 @@ const fps : Phaser.Types.Core.FPSConfig = { /** * Use setTimeout instead of requestAnimationFrame to run the game loop. */ - forceSetTimeOut: true, + forceSetTimeOut: false, /** * Calculate the average frame delta from this many consecutive frame intervals. */