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.

64 lines
1.6 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. class CHudChatLine : public CBaseHudChatLine
  14. {
  15. DECLARE_CLASS_SIMPLE( CHudChatLine, CBaseHudChatLine );
  16. public:
  17. CHudChatLine( vgui::Panel *parent, const char *panelName ) : CBaseHudChatLine( parent, panelName ) {}
  18. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  19. void MsgFunc_SayText(bf_read &msg);
  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 ApplySchemeSettings(vgui::IScheme *pScheme);
  43. int GetChatInputOffset( void );
  44. virtual Color GetClientColor( int clientIndex );
  45. };
  46. #endif //CS_HUD_CHAT_H