Skip to content

Commit 61557dc

Browse files
killzomsSunrunner37
authored andcommitted
* Updated NitroxChat (#671)
* * Updated NitroxChat * Updated AssetBundle
1 parent 17736d9 commit 61557dc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

AssetBundles/chatlog

-25 Bytes
Binary file not shown.

NitroxClient/MonoBehaviours/Gui/Chat/PlayerChatLog.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ protected void Awake()
7676

7777
private void SetupChatMessagesComponent()
7878
{
79-
chatText = chatScrollRect.AddComponent<Text>();
79+
chatText = new GameObject("ChatText").AddComponent<Text>();
80+
chatText.transform.SetParent(chatScrollRect.transform);
8081
chatText.font = Resources.GetBuiltinResource(typeof(Font), "Arial.ttf") as Font;
8182
chatText.name = "ChatText";
8283
chatText.alignByGeometry = false;
83-
chatText.horizontalOverflow = HorizontalWrapMode.Overflow;
84+
chatText.horizontalOverflow = HorizontalWrapMode.Wrap;
8485
chatText.verticalOverflow = VerticalWrapMode.Truncate;
85-
chatText.fontSize = 12;
86+
chatText.fontSize = 17;
87+
chatText.fontStyle = FontStyle.Bold;
8688
chatText.lineSpacing = 0.8f;
8789

8890
}

0 commit comments

Comments
 (0)