From a52b1f612bdfacb1ae7b95b82c6a5aea43113360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 24 Jun 2020 18:09:59 +0200 Subject: [PATCH] Reorganizing on x axis too. --- front/src/Phaser/Login/EnableCameraScene.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/front/src/Phaser/Login/EnableCameraScene.ts b/front/src/Phaser/Login/EnableCameraScene.ts index 9a5100af..735bfb19 100644 --- a/front/src/Phaser/Login/EnableCameraScene.ts +++ b/front/src/Phaser/Login/EnableCameraScene.ts @@ -225,6 +225,12 @@ export class EnableCameraScene extends Phaser.Scene { bounds = div.getBoundingClientRect(); } + this.textField.x = this.game.renderer.width / 2; + this.cameraNameField.x = this.game.renderer.width / 2; + this.microphoneNameField.x = this.game.renderer.width / 2; + this.pressReturnField.x = this.game.renderer.width / 2; + this.pressReturnField.x = this.game.renderer.width / 2; + this.cameraNameField.y = bounds.top / RESOLUTION - 8; this.soundMeterSprite.x = this.game.renderer.width / 2 - this.soundMeterSprite.getWidth() / 2; @@ -245,6 +251,7 @@ export class EnableCameraScene extends Phaser.Scene { this.arrowUp.y = this.microphoneNameField.y; this.pressReturnField.y = Math.max(this.game.renderer.height - 30, this.microphoneNameField.y + 20); + this.logo.x = this.game.renderer.width - 30; this.logo.y = Math.max(this.game.renderer.height - 20, this.microphoneNameField.y + 30); }