Summary

Methods

Init()client
Clears the text of the chat text entry.
OnEnter()client
Sends the typed text to the server, runs the ChatBoxTextTyped hook and closes the chat box.
Submits the text on Enter, otherwise runs the ChatBoxKeyCodeTyped hook.
Draws the text entry.
Sets the text of the entry and moves the caret to its end.
Think()client
Keeps the entry at the bottom of the chat box and cuts the text to the max_chat_length config.

Methods

Clears the text of the chat text entry.

Sends the typed text to the server, runs the ChatBoxTextTyped hook and closes the chat box.

Submits the text on Enter, otherwise runs the ChatBoxKeyCodeTyped hook.

A string returned by the hook replaces the text in the entry.

Parameters

  • code Number The KEY_* enum of the key

Draws the text entry.

The ChatboxEntryPaint hook can return true to draw it itself.

Parameters

  • w
  • h

Sets the text of the entry and moves the caret to its end.

Parameters

  • text String The new text

Keeps the entry at the bottom of the chat box and cuts the text to the max_chat_length config.

Runs the ChatBoxTextChanged hook with the old and new text when the text changes.

Defined in