ChatBar.visible = true;
I used something like this to detect if it's open
HTML Code:
//#CLIENTSIDE
function onKeyPressed(code) {
if (keydown(8) || temp.code == 9) setTimer(0.05);
}
function onTimeout() {
if (ChatBar.visible) {
temp.text = ChatBar.text; //or ChatBar.getText()
if (temp.text != null) {
[Do your animation]
}
setTimer(0.1);
}
}