Barotrauma Client Doc
Barotrauma.ChatBox Class Reference

Classes

struct  ChatKeyStates
 

Public Member Functions

 ChatBox (GUIComponent parent, bool isSinglePlayer)
 
void Toggle ()
 
bool TypingChatMessage (GUITextBox textBox, string text)
 
void AddMessage (ChatMessage message)
 
void SetVisibility (bool visible)
 
void Update (float deltaTime)
 
void ApplySelectionInputs ()
 
void ApplySelectionInputs (GUITextBox inputBox, bool selectInputBox, ChatKeyStates chatKeyStates)
 

Public Attributes

readonly ChatManager ChatManager = new ChatManager()
 
bool CloseAfterMessageSent
 

Static Public Attributes

const string RadioChatString = "r; "
 
static bool PreferChatBoxOpen = true
 
const int ToggleButtonWidthRaw = 30
 

Properties

bool IsSinglePlayer [get]
 
bool ToggleOpen [get, set]
 
GUITextBox.OnEnterHandler OnEnterMessage [get, set]
 
GUIFrame GUIFrame [get]
 
GUITextBox InputBox [get]
 
GUIButton ToggleButton [get, set]
 

Detailed Description

Definition at line 11 of file ChatBox.cs.

Constructor & Destructor Documentation

◆ ChatBox()

Barotrauma.ChatBox.ChatBox ( GUIComponent  parent,
bool  isSinglePlayer 
)

Definition at line 87 of file ChatBox.cs.

Member Function Documentation

◆ AddMessage()

void Barotrauma.ChatBox.AddMessage ( ChatMessage  message)

Definition at line 389 of file ChatBox.cs.

◆ ApplySelectionInputs() [1/2]

void Barotrauma.ChatBox.ApplySelectionInputs ( )

◆ ApplySelectionInputs() [2/2]

void Barotrauma.ChatBox.ApplySelectionInputs ( GUITextBox  inputBox,
bool  selectInputBox,
ChatKeyStates  chatKeyStates 
)

Definition at line 835 of file ChatBox.cs.

◆ SetVisibility()

void Barotrauma.ChatBox.SetVisibility ( bool  visible)

Definition at line 579 of file ChatBox.cs.

◆ Toggle()

void Barotrauma.ChatBox.Toggle ( )

Definition at line 336 of file ChatBox.cs.

◆ TypingChatMessage()

bool Barotrauma.ChatBox.TypingChatMessage ( GUITextBox  textBox,
string  text 
)

Definition at line 342 of file ChatBox.cs.

◆ Update()

void Barotrauma.ChatBox.Update ( float  deltaTime)

Definition at line 614 of file ChatBox.cs.

Member Data Documentation

◆ ChatManager

readonly ChatManager Barotrauma.ChatBox.ChatManager = new ChatManager()

Definition at line 18 of file ChatBox.cs.

◆ CloseAfterMessageSent

bool Barotrauma.ChatBox.CloseAfterMessageSent

Definition at line 36 of file ChatBox.cs.

◆ PreferChatBoxOpen

bool Barotrauma.ChatBox.PreferChatBoxOpen = true
static

Definition at line 34 of file ChatBox.cs.

◆ RadioChatString

const string Barotrauma.ChatBox.RadioChatString = "r; "
static

Definition at line 13 of file ChatBox.cs.

◆ ToggleButtonWidthRaw

const int Barotrauma.ChatBox.ToggleButtonWidthRaw = 30
static

Definition at line 82 of file ChatBox.cs.

Property Documentation

◆ GUIFrame

GUIFrame Barotrauma.ChatBox.GUIFrame
get

Definition at line 59 of file ChatBox.cs.

◆ InputBox

GUITextBox Barotrauma.ChatBox.InputBox
get

Definition at line 61 of file ChatBox.cs.

◆ IsSinglePlayer

bool Barotrauma.ChatBox.IsSinglePlayer
get

Definition at line 20 of file ChatBox.cs.

◆ OnEnterMessage

GUITextBox.OnEnterHandler Barotrauma.ChatBox.OnEnterMessage
getset

Definition at line 53 of file ChatBox.cs.

◆ ToggleButton

GUIButton Barotrauma.ChatBox.ToggleButton
getset

Definition at line 65 of file ChatBox.cs.

◆ ToggleOpen

bool Barotrauma.ChatBox.ToggleOpen
getset

Definition at line 23 of file ChatBox.cs.