From b4403f32677b8a67a83a653a68ade9a50ec6b7fe Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Sat, 28 Sep 2024 03:07:44 +0200 Subject: [PATCH] Chat res. fix --- src/components/gui/Chat.vue | 2 +- src/components/sprites/Character.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/gui/Chat.vue b/src/components/gui/Chat.vue index 9e63b4a..5747a35 100644 --- a/src/components/gui/Chat.vue +++ b/src/components/gui/Chat.vue @@ -90,7 +90,7 @@ gameStore.connection?.on('chat:message', (data: ChatMessage) => { return metrics.width } - chatBubble.width = calculateTextWidth(data.message, 'Arial', 13) + 10 + chatBubble.width = calculateTextWidth(data.message, 'Arial', 13) + 15 chatText.setText(data.message) charChatContainer.setVisible(true) diff --git a/src/components/sprites/Character.vue b/src/components/sprites/Character.vue index f8c4f90..95e216c 100644 --- a/src/components/sprites/Character.vue +++ b/src/components/sprites/Character.vue @@ -132,8 +132,8 @@ const createChatBubble = (container: Phaser.GameObjects.Container) => { const createChatText = (text: Phaser.GameObjects.Text) => { text.setName(`${props.character.name}_chatText`) - text.setResolution(10) text.setFontSize(13) + text.setFontStyle('bold') text.setFontFamily('Arial') }