#include <chat.h>
|
| static void | ConSay (IConsole::IResult *pResult, void *pUserData) |
| static void | ConSayTeam (IConsole::IResult *pResult, void *pUserData) |
| static void | ConChat (IConsole::IResult *pResult, void *pUserData) |
| static void | ConShowChat (IConsole::IResult *pResult, void *pUserData) |
| static void | ConEcho (IConsole::IResult *pResult, void *pUserData) |
| static void | ConClearChat (IConsole::IResult *pResult, void *pUserData) |
| static void | ConchainChatOld (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
| static void | ConchainChatFontSize (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
| static void | ConchainChatWidth (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
◆ anonymous enum
| Enumerator |
|---|
| CLIENT_MSG | |
| SERVER_MSG | |
◆ anonymous enum
| Enumerator |
|---|
| MAX_LINES | |
| MAX_LINE_LENGTH | |
◆ anonymous enum
| Enumerator |
|---|
| MODE_NONE | |
| MODE_ALL | |
| MODE_TEAM | |
◆ anonymous enum
| Enumerator |
|---|
| CHAT_SERVER | |
| CHAT_HIGHLIGHT | |
| CHAT_CLIENT | |
| CHAT_NUM | |
◆ CChat()
◆ AddLine()
| void CChat::AddLine |
( |
int | ClientId, |
|
|
int | Team, |
|
|
const char * | pLine ) |
◆ ClearLines()
| void CChat::ClearLines |
( |
| ) |
|
◆ ConchainChatFontSize()
◆ ConchainChatOld()
◆ ConchainChatWidth()
◆ ConChat()
◆ ConClearChat()
◆ ConEcho()
◆ ConSay()
◆ ConSayTeam()
◆ ConShowChat()
◆ DisableMode()
| void CChat::DisableMode |
( |
| ) |
|
◆ Echo()
| void CChat::Echo |
( |
const char * | pString | ) |
|
◆ EnableMode()
| void CChat::EnableMode |
( |
int | Team | ) |
|
◆ EnsureCoherentFontSize()
| void CChat::EnsureCoherentFontSize |
( |
| ) |
const |
◆ EnsureCoherentWidth()
| void CChat::EnsureCoherentWidth |
( |
| ) |
const |
◆ FontSize()
| float CChat::FontSize |
( |
| ) |
const |
|
inline |
◆ IsActive()
| bool CChat::IsActive |
( |
| ) |
const |
|
inline |
◆ LineShouldHighlight()
| bool CChat::LineShouldHighlight |
( |
const char * | pLine, |
|
|
const char * | pName ) |
|
private |
◆ MessagePaddingX()
| float CChat::MessagePaddingX |
( |
| ) |
const |
|
inline |
◆ MessagePaddingY()
| float CChat::MessagePaddingY |
( |
| ) |
const |
|
inline |
◆ MessageRounding()
| float CChat::MessageRounding |
( |
| ) |
const |
|
inline |
◆ MessageTeeSize()
| float CChat::MessageTeeSize |
( |
| ) |
const |
|
inline |
◆ OnConsoleInit()
| void CChat::OnConsoleInit |
( |
| ) |
|
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
◆ OnInit()
Called to let the components run initialization code.
Reimplemented from CComponent.
◆ OnInput()
Called on a input event.
- Parameters
-
Reimplemented from CComponent.
◆ OnMessage()
| void CChat::OnMessage |
( |
int | Msg, |
|
|
void * | pRawMsg ) |
|
overridevirtual |
◆ OnPrepareLines()
| void CChat::OnPrepareLines |
( |
float | y | ) |
|
◆ OnRelease()
| void CChat::OnRelease |
( |
| ) |
|
|
overridevirtual |
Called when the input gets released, for example when a text box loses focus.
Reimplemented from CComponent.
◆ OnRender()
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
◆ OnStateChange()
| void CChat::OnStateChange |
( |
int | NewState, |
|
|
int | OldState ) |
|
overridevirtual |
◆ OnWindowResize()
| void CChat::OnWindowResize |
( |
| ) |
|
|
overridevirtual |
Called when the window has been resized.
Reimplemented from CComponent.
◆ RebuildChat()
| void CChat::RebuildChat |
( |
| ) |
|
◆ RegisterCommand()
| void CChat::RegisterCommand |
( |
const char * | pName, |
|
|
const char * | pParams, |
|
|
const char * | pHelpText ) |
◆ Reset()
◆ SendChat()
| void CChat::SendChat |
( |
int | Team, |
|
|
const char * | pLine ) |
◆ SendChatQueued()
| void CChat::SendChatQueued |
( |
const char * | pLine | ) |
|
◆ Sizeof()
| int CChat::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
◆ StoreSave()
| void CChat::StoreSave |
( |
const char * | pText | ) |
|
|
private |
◆ UnregisterCommand()
| void CChat::UnregisterCommand |
( |
const char * | pName | ) |
|
◆ CHAT_FONTSIZE_WIDTH_RATIO
| float CChat::CHAT_FONTSIZE_WIDTH_RATIO = 2.5f |
|
staticconstexprprivate |
◆ CHAT_HEIGHT_FULL
| float CChat::CHAT_HEIGHT_FULL = 200.0f |
|
staticconstexprprivate |
◆ CHAT_HEIGHT_MIN
| float CChat::CHAT_HEIGHT_MIN = 50.0f |
|
staticconstexprprivate |
◆ m_aCompletionBuffer
◆ m_aCurrentInputText
◆ m_aLastSoundPlayed
| int64_t CChat::m_aLastSoundPlayed[CHAT_NUM] |
|
private |
◆ m_aLines
◆ m_aPlayerCompletionList
◆ m_CompletionChosen
| int CChat::m_CompletionChosen |
|
private |
◆ m_CompletionUsed
| bool CChat::m_CompletionUsed |
|
private |
◆ m_CurrentLine
◆ m_EditingNewLine
| bool CChat::m_EditingNewLine |
|
private |
◆ m_History
◆ m_Input
◆ m_IsInputCensored
| bool CChat::m_IsInputCensored |
|
private |
◆ m_LastChatSend
| int64_t CChat::m_LastChatSend |
|
private |
◆ m_Mode
◆ m_PendingChatCounter
| int CChat::m_PendingChatCounter |
|
private |
◆ m_pHistoryEntry
◆ m_PlaceholderLength
| int CChat::m_PlaceholderLength |
|
private |
◆ m_PlaceholderOffset
| int CChat::m_PlaceholderOffset |
|
private |
◆ m_PlayerCompletionListLength
| int CChat::m_PlayerCompletionListLength |
|
private |
◆ m_PrevScoreBoardShowed
| bool CChat::m_PrevScoreBoardShowed |
|
private |
◆ m_PrevShowChat
| bool CChat::m_PrevShowChat |
|
private |
◆ m_ServerCommandsNeedSorting
| bool CChat::m_ServerCommandsNeedSorting |
|
private |
◆ m_ServerSupportsCommandInfo
| bool CChat::m_ServerSupportsCommandInfo |
|
private |
◆ m_Show
◆ m_vServerCommands
| std::vector<CCommand> CChat::m_vServerCommands |
|
private |
◆ MESSAGE_TEE_PADDING_RIGHT
| float CChat::MESSAGE_TEE_PADDING_RIGHT = 0.5f |
|
staticconstexpr |
◆ ms_aDisplayText
| char CChat::ms_aDisplayText = "" |
|
staticprivate |
The documentation for this class was generated from the following files: