Barotrauma Client Doc
Barotrauma.ChatManager Class Reference

A class used for handling special key actions in chat boxes. For example tab completion or up/down arrow key history. More...

Public Member Functions

 ChatManager (bool loop, short maxCount)
 
 ChatManager ()
 
void Store (string message)
 
void Clear ()
 Call this function whenever we should stop doing special stuff and return normal behavior. For example when you deselect the chat box. More...
 

Static Public Member Functions

static void RegisterKeys (GUITextBox element, ChatManager manager)
 Registers special input actions to the selected input field More...
 

Detailed Description

A class used for handling special key actions in chat boxes. For example tab completion or up/down arrow key history.

Definition at line 13 of file ChatManager.cs.

Constructor & Destructor Documentation

◆ ChatManager() [1/2]

Barotrauma.ChatManager.ChatManager ( bool  loop,
short  maxCount 
)

Definition at line 35 of file ChatManager.cs.

◆ ChatManager() [2/2]

Barotrauma.ChatManager.ChatManager ( )

Definition at line 42 of file ChatManager.cs.

Member Function Documentation

◆ Clear()

void Barotrauma.ChatManager.Clear ( )

Call this function whenever we should stop doing special stuff and return normal behavior. For example when you deselect the chat box.

Definition at line 112 of file ChatManager.cs.

◆ RegisterKeys()

static void Barotrauma.ChatManager.RegisterKeys ( GUITextBox  element,
ChatManager  manager 
)
static

Registers special input actions to the selected input field

Parameters
elementGUI Element we want to register
managerInstance

Definition at line 53 of file ChatManager.cs.

◆ Store()

void Barotrauma.ChatManager.Store ( string  message)

Definition at line 84 of file ChatManager.cs.