//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef CS_HUD_CHAT_H #define CS_HUD_CHAT_H #ifdef _WIN32 #pragma once #endif #include //-------------------------------------------------------------------------------------------------------------- class CHudChatLine : public CBaseHudChatLine { DECLARE_CLASS_SIMPLE( CHudChatLine, CBaseHudChatLine ); public: CHudChatLine( vgui::Panel *parent, const char *panelName ); virtual void ApplySchemeSettings(vgui::IScheme *pScheme); private: CHudChatLine( const CHudChatLine & ); // = delete; // not defined, not accessible }; //----------------------------------------------------------------------------- // Purpose: The prompt and text entry area for chat messages //----------------------------------------------------------------------------- class CHudChatInputLine : public CBaseHudChatInputLine { DECLARE_CLASS_SIMPLE( CHudChatInputLine, CBaseHudChatInputLine ); public: CHudChatInputLine( CBaseHudChat *parent, char const *panelName ) : CBaseHudChatInputLine( parent, panelName ) {} virtual void ApplySchemeSettings(vgui::IScheme *pScheme); }; class CHudChat : public CBaseHudChat { DECLARE_CLASS_SIMPLE( CHudChat, CBaseHudChat ); public: explicit CHudChat( const char *pElementName ); virtual void CreateChatInputLine( void ); virtual void CreateChatLines( void ); virtual void Init( void ); virtual void Reset( void ); bool MsgFunc_SayText2( const CCSUsrMsg_SayText2 &msg ); bool MsgFunc_RadioText( const CCSUsrMsg_RadioText &msg ); bool MsgFunc_RawAudio( const CCSUsrMsg_RawAudio &msg ); int GetChatInputOffset( void ); virtual Color GetTextColorForClient( TextColor colorNum, int clientIndex ); virtual Color GetClientColor( int clientIndex ); virtual int GetFilterForString( const char *pString ); }; #endif //CS_HUD_CHAT_H