forked from noxious/client
Chat res. fix
This commit is contained in:
parent
fa12ce2ec8
commit
b4403f3267
@ -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)
|
||||
|
@ -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')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user