Commit 61557dc 1 parent 17736d9 commit 61557dc Copy full SHA for 61557dc
File tree 2 files changed +5
-3
lines changed
NitroxClient/MonoBehaviours/Gui/Chat
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,15 @@ protected void Awake()
76
76
77
77
private void SetupChatMessagesComponent ( )
78
78
{
79
- chatText = chatScrollRect . AddComponent < Text > ( ) ;
79
+ chatText = new GameObject ( "ChatText" ) . AddComponent < Text > ( ) ;
80
+ chatText . transform . SetParent ( chatScrollRect . transform ) ;
80
81
chatText . font = Resources . GetBuiltinResource ( typeof ( Font ) , "Arial.ttf" ) as Font ;
81
82
chatText . name = "ChatText" ;
82
83
chatText . alignByGeometry = false ;
83
- chatText . horizontalOverflow = HorizontalWrapMode . Overflow ;
84
+ chatText . horizontalOverflow = HorizontalWrapMode . Wrap ;
84
85
chatText . verticalOverflow = VerticalWrapMode . Truncate ;
85
- chatText . fontSize = 12 ;
86
+ chatText . fontSize = 17 ;
87
+ chatText . fontStyle = FontStyle . Bold ;
86
88
chatText . lineSpacing = 0.8f ;
87
89
88
90
}
You can’t perform that action at this time.
0 commit comments