Merge pull request #702 from thecodingmachine/fixMenuDiscussion

Fix icon discussion
This commit is contained in:
grégoire parant
2021-02-03 23:14:47 +01:00
committed by GitHub
4 changed files with 4 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 516 B

+1 -1
View File
@@ -1117,7 +1117,7 @@ div.modal-report-user{
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
.discussion .messages .message p.a{ .discussion .messages .message p a{
color: white; color: white;
} }
+2 -4
View File
@@ -3,14 +3,12 @@ import {discussionManager} from "../../WebRtc/DiscussionManager";
export const openChatIconName = 'openChatIcon'; export const openChatIconName = 'openChatIcon';
export class OpenChatIcon extends Phaser.GameObjects.Image { export class OpenChatIcon extends Phaser.GameObjects.Image {
constructor(scene: Phaser.Scene, x: number, y: number) { constructor(scene: Phaser.Scene, x: number, y: number) {
super(scene, x, y, openChatIconName); super(scene, x, y, openChatIconName, 3);
scene.add.existing(this); scene.add.existing(this);
this.setScrollFactor(0, 0); this.setScrollFactor(0, 0);
this.setOrigin(0, 1); this.setOrigin(0, 1);
this.displayWidth = 30;
this.displayHeight = 30;
this.setInteractive(); this.setInteractive();
this.setVisible(false) this.setVisible(false);
this.setDepth(99999); this.setDepth(99999);
this.on("pointerup", () => discussionManager.showDiscussionPart()); this.on("pointerup", () => discussionManager.showDiscussionPart());
+1
View File
@@ -1202,6 +1202,7 @@ export class GameScene extends ResizableScene implements CenterListener {
private reposition(): void { private reposition(): void {
this.presentationModeSprite.setY(this.game.renderer.height - 2); this.presentationModeSprite.setY(this.game.renderer.height - 2);
this.chatModeSprite.setY(this.game.renderer.height - 2); this.chatModeSprite.setY(this.game.renderer.height - 2);
this.openChatIcon.setY(this.game.renderer.height - 2);
// Recompute camera offset if needed // Recompute camera offset if needed
this.updateCameraOffset(); this.updateCameraOffset();