Radegast.Rendering.SceneWindow.txtChat_TextChanged C# (CSharp) Method

txtChat_TextChanged() private method

private txtChat_TextChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void txtChat_TextChanged(object sender, EventArgs e)
        {
            if (txtChat.Text.Length > 0)
            {
                btnSay.Enabled = cbChatType.Enabled = true;
                if (!txtChat.Text.StartsWith("/"))
                {
                    if (!Instance.State.IsTyping && !Instance.GlobalSettings["no_typing_anim"])
                    {
                        Instance.State.SetTyping(true);
                    }
                }
            }
            else
            {
                btnSay.Enabled = cbChatType.Enabled = false;
                if (!Instance.GlobalSettings["no_typing_anim"])
                {
                    Instance.State.SetTyping(false);
                }
            }
        }
SceneWindow