Chat res. fix

This commit is contained in:
Dennis Postma 2024-09-28 03:07:44 +02:00
parent fa12ce2ec8
commit b4403f3267
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ gameStore.connection?.on('chat:message', (data: ChatMessage) => {
return metrics.width return metrics.width
} }
chatBubble.width = calculateTextWidth(data.message, 'Arial', 13) + 10 chatBubble.width = calculateTextWidth(data.message, 'Arial', 13) + 15
chatText.setText(data.message) chatText.setText(data.message)
charChatContainer.setVisible(true) charChatContainer.setVisible(true)

View File

@ -132,8 +132,8 @@ const createChatBubble = (container: Phaser.GameObjects.Container) => {
const createChatText = (text: Phaser.GameObjects.Text) => { const createChatText = (text: Phaser.GameObjects.Text) => {
text.setName(`${props.character.name}_chatText`) text.setName(`${props.character.name}_chatText`)
text.setResolution(10)
text.setFontSize(13) text.setFontSize(13)
text.setFontStyle('bold')
text.setFontFamily('Arial') text.setFontFamily('Arial')
} }