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

AddText() private method

Used to add text messages to the chat box
private AddText ( ConsoleMessage c, string texts, ConsoleMessage msgs ) : void
c ConsoleMessage
texts string
msgs ConsoleMessage
return void
        private void AddText(ConsoleMessage c, string[] texts, ConsoleMessage[] msgs)
        {
            for (int i = 0; i < texts.Length; i++)
            {
                string str = texts[i];
                msgs[i] = new ConsoleMessage(str, c.Channel, c.Color);
                msgs[i].NoShow = i > 0;
                if (!string.IsNullOrWhiteSpace(msgs[i].Text))
                    ChatBox.MessageBuffer.Add(msgs[i]);
            }
        }