#include <chat.h>
|
| CChat () |
|
int | Sizeof () const override |
|
bool | IsActive () const |
|
void | AddLine (int ClientId, int Team, const char *pLine) |
|
void | EnableMode (int Team) |
|
void | DisableMode () |
|
void | RegisterCommand (const char *pName, const char *pParams, const char *pHelpText) |
|
void | UnregisterCommand (const char *pName) |
|
void | Echo (const char *pString) |
|
void | OnWindowResize () override |
|
void | OnConsoleInit () override |
|
void | OnStateChange (int NewState, int OldState) override |
|
void | OnRefreshSkins () override |
|
void | OnRender () override |
|
void | OnPrepareLines (float y) |
|
void | Reset () |
|
void | OnRelease () override |
|
void | OnMessage (int MsgType, void *pRawMsg) override |
|
bool | OnInput (const IInput::CEvent &Event) override |
|
void | OnInit () override |
|
void | RebuildChat () |
|
void | ClearLines () |
|
void | EnsureCoherentFontSize () const |
|
void | EnsureCoherentWidth () const |
|
float | FontSize () const |
|
float | MessagePaddingX () const |
|
float | MessagePaddingY () const |
|
float | MessageTeeSize () const |
|
float | MessageRounding () const |
|
void | SendChat (int Team, const char *pLine) |
|
void | SendChatQueued (const char *pLine) |
|
virtual | ~CComponent () |
|
virtual int | Sizeof () const =0 |
|
class CGameClient * | GameClient () const |
|
class IClient * | Client () const |
|
virtual void | OnStateChange (int NewState, int OldState) |
|
virtual void | OnConsoleInit () |
|
virtual void | OnInit () |
|
virtual void | OnShutdown () |
|
virtual void | OnReset () |
|
virtual void | OnWindowResize () |
|
virtual void | OnRefreshSkins () |
|
virtual void | OnRender () |
|
virtual void | OnNewSnapshot () |
|
virtual void | OnRelease () |
|
virtual void | OnMapLoad () |
|
virtual void | OnMessage (int Msg, void *pRawMsg) |
|
virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
|
virtual bool | OnInput (const IInput::CEvent &Event) |
|
|
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 |
---|
MAX_LINES | |
MAX_LINE_LENGTH | |
◆ anonymous enum
Enumerator |
---|
CLIENT_MSG | |
SERVER_MSG | |
MODE_NONE | |
MODE_ALL | |
MODE_TEAM | |
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 | ) |
|
◆ OnRefreshSkins()
void CChat::OnRefreshSkins |
( |
| ) |
|
|
overridevirtual |
Called when skins have been invalidated and must be updated.
Reimplemented from CComponent.
◆ 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
constexpr float CChat::CHAT_FONTSIZE_WIDTH_RATIO = 2.5f |
|
staticconstexprprivate |
◆ CHAT_HEIGHT_FULL
constexpr float CChat::CHAT_HEIGHT_FULL = 200.0f |
|
staticconstexprprivate |
◆ CHAT_HEIGHT_MIN
constexpr 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_CommandsNeedSorting
bool CChat::m_CommandsNeedSorting |
|
private |
◆ 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_ServerSupportsCommandInfo
bool CChat::m_ServerSupportsCommandInfo |
|
private |
◆ m_Show
◆ m_vCommands
std::vector<CCommand> CChat::m_vCommands |
|
private |
◆ MESSAGE_TEE_PADDING_RIGHT
constexpr float CChat::MESSAGE_TEE_PADDING_RIGHT = 0.5f |
|
staticconstexpr |
◆ ms_aDisplayText
char CChat::ms_aDisplayText = {'\0'} |
|
staticprivate |
The documentation for this class was generated from the following files: