More whitespace around chat bubble
This commit is contained in:
parent
6cee0b93e6
commit
b2266f5a10
@ -90,7 +90,7 @@ gameStore.connection?.on('chat:message', (data: ChatMessage) => {
|
|||||||
return metrics.width
|
return metrics.width
|
||||||
}
|
}
|
||||||
|
|
||||||
chatBubble.width = calculateTextWidth(data.message.substring(0, 90), 'Arial', 13) + 15
|
chatBubble.width = calculateTextWidth(data.message.substring(0, 90), 'Arial', 13) + 30
|
||||||
|
|
||||||
// setText but with max. char limit of 90
|
// setText but with max. char limit of 90
|
||||||
chatText.setText(data.message.substring(0, 90))
|
chatText.setText(data.message.substring(0, 90))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user