Code:
function check_lines()
{
if (text_display.bottomScroll >= max_lines)
{
this.clear_text();
} // end if
} // End of the function
function add_text(what)
{
if (chat_text_enabled == 1)
{
if (textBuffer)
{
text_display.htmlText = textBuffer.add_text(what);
}
else
{
this.check_lines();
text_display.htmlText = text_display.htmlText + what;
} // end else if
if (!scrollbar.isRollOver)
{
this.updateScroll();
} // end if
} // end if
} // End of the function
function set_text(what)
{
if (chat_text_enabled == 1)
{
if (textBuffer)
{
text_display.htmlText = textBuffer.set_text(what);
}
else
{
this.check_lines();
text_display.htmlText = what;
} // end else if
if (!scrollbar.isScrolling2)
{
this.updateScroll();
} // end if
} // end if
} // End of the function
function get_text()
{
return (text_display.text);
} // End of the function
function get_htmltext()
{
return (text_display.htmlText);
} // End of the function