Fix icon discussion
- Fix size of discussion icon - Update x and y when page is resize - Fix blanc link in chat
This commit is contained in:
parent
c41c058fb0
commit
4de9b8ba40
BIN
front/dist/resources/objects/talk.png
vendored
BIN
front/dist/resources/objects/talk.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 516 B |
2
front/dist/resources/style/style.css
vendored
2
front/dist/resources/style/style.css
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user