Team Fortress 2 Source Code as on 22/4/2020
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.

73 lines
2.0 KiB

  1. //========= Copyright 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 & ); // 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. 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. virtual void StartMessageMode( int iMessageModeType );
  43. virtual void StopMessageMode( void );
  44. virtual void MsgFunc_SayText2( bf_read &msg );
  45. virtual void MsgFunc_RadioText( bf_read &msg );
  46. void MsgFunc_RawAudio( bf_read &msg );
  47. int GetChatInputOffset( void );
  48. virtual Color GetTextColorForClient( TextColor colorNum, int clientIndex );
  49. virtual Color GetClientColor( int clientIndex );
  50. virtual int GetFilterForString( const char *pString );
  51. };
  52. #endif //CS_HUD_CHAT_H