Bricklayer.Client.Interface.GameScreen.AddChat C# (CSharp) Method

AddChat() public method

Adds a chat message to the chat box
public AddChat ( string username, string message ) : void
username string
message string
return void
        public void AddChat(string username, string message)
        {
            message = WrapText(ChatBox.GetFont(), username + ": " + message, ChatBox.Width - 24);
            ConsoleMessage c = new ConsoleMessage(message, 0);
            string[] texts = c.Text.Split(new string[1] { TomShane.Neoforce.Controls.Manager.StringNewline }, System.StringSplitOptions.None);
            ConsoleMessage[] msgs = new ConsoleMessage[texts.Length];

            AddText(c, texts, msgs);
        }