Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ NewTextMultiline()

void Terraria.GameContent.UI.Chat.LegacyChatMonitor.NewTextMultiline ( string text,
bool force = false,
Color c = default(Color),
int WidthLimit = -1 )
inline

Implements Terraria.GameContent.UI.Chat.IChatMonitor.

Definition at line 161 of file LegacyChatMonitor.cs.

162 {
163 if (c == default(Color))
164 {
165 c = Color.White;
166 }
167 List<List<TextSnippet>> list = ((WidthLimit == -1) ? Utils.WordwrapStringSmart(text, c, FontAssets.MouseText.Value, TextMaxLengthForScreen, 10) : Utils.WordwrapStringSmart(text, c, FontAssets.MouseText.Value, WidthLimit, 10));
168 for (int i = 0; i < list.Count; i++)
169 {
170 NewText(list[i]);
171 }
172 }
void NewText(string newText, byte R=byte.MaxValue, byte G=byte.MaxValue, byte B=byte.MaxValue)

References Terraria.GameContent.FontAssets.MouseText, Terraria.GameContent.UI.Chat.LegacyChatMonitor.NewText(), Terraria.GameContent.UI.Chat.LegacyChatMonitor.TextMaxLengthForScreen, Microsoft.Xna.Framework.Color.White, and Terraria.Utils.WordwrapStringSmart().

Referenced by Terraria.GameContent.UI.Chat.LegacyChatMonitor.NewText().