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);
}
}
}