cwChatBox panelclient
Panel defined in core/libraries/cl_chatbox.lua
Summary
Methods
Init()client
Sizes and places the chat box and adds the overlay that scrolls the history with the mouse wheel.
Paint(w, h)client
Draws the background, the visible messages and, while a command is typed, the matching commands.
SetChatOpen(bIsOpen)client
Sets whether the chat box is open and starts its background fade.
Think()client
Runs the
AdjustChatboxInfo hook eight times a second and closes the chat box when Escape is held.Methods
Sizes and places the chat box and adds the overlay that scrolls the history with the mouse wheel.
Draws the background, the visible messages and, while a command is typed, the matching commands.
Messages stay visible for 12 seconds while the chat box is closed. The
PaintChatboxBackground hook can return true to draw the background itself.
Draws nothing while the player is choosing a character.
Parameters
- w
- h
Sets whether the chat box is open and starts its background fade.
Parameters
- bIsOpen Boolean Whether the chat box is open
Runs the AdjustChatboxInfo hook eight times a second and closes the chat box when Escape is held.