Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CS_HUD_CHAT_H
  8. #define CS_HUD_CHAT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <hud_basechat.h>
  13. //--------------------------------------------------------------------------------------------------------------
  14. class CHudChatLine : public CBaseHudChatLine
  15. {
  16. DECLARE_CLASS_SIMPLE( CHudChatLine, CBaseHudChatLine );
  17. public:
  18. CHudChatLine( vgui::Panel *parent, const char *panelName );
  19. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  20. private:
  21. CHudChatLine( const CHudChatLine & ); // = delete; // not defined, not accessible
  22. };
  23. //-----------------------------------------------------------------------------
  24. // Purpose: The prompt and text entry area for chat messages
  25. //-----------------------------------------------------------------------------
  26. class CHudChatInputLine : public CBaseHudChatInputLine
  27. {
  28. DECLARE_CLASS_SIMPLE( CHudChatInputLine, CBaseHudChatInputLine );
  29. public:
  30. CHudChatInputLine( CBaseHudChat *parent, char const *panelName ) : CBaseHudChatInputLine( parent, panelName ) {}
  31. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  32. };
  33. class CHudChat : public CBaseHudChat
  34. {
  35. DECLARE_CLASS_SIMPLE( CHudChat, CBaseHudChat );
  36. public:
  37. explicit CHudChat( const char *pElementName );
  38. virtual void CreateChatInputLine( void );
  39. virtual void CreateChatLines( void );
  40. virtual void Init( void );
  41. virtual void Reset( void );
  42. bool MsgFunc_SayText2( const CCSUsrMsg_SayText2 &msg );
  43. bool MsgFunc_RadioText( const CCSUsrMsg_RadioText &msg );
  44. bool MsgFunc_RawAudio( const CCSUsrMsg_RawAudio &msg );
  45. int GetChatInputOffset( void );
  46. virtual Color GetTextColorForClient( TextColor colorNum, int clientIndex );
  47. virtual Color GetClientColor( int clientIndex );
  48. virtual int GetFilterForString( const char *pString );
  49. };
  50. #endif //CS_HUD_CHAT_H