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.

74 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. class CHudChatLine : public CBaseHudChatLine
  14. {
  15. DECLARE_CLASS_SIMPLE( CHudChatLine, CBaseHudChatLine );
  16. public:
  17. CHudChatLine( vgui::Panel *parent, const char *panelName );
  18. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  19. private:
  20. CHudChatLine( const CHudChatLine & ); // not defined, not accessible
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Purpose: The prompt and text entry area for chat messages
  24. //-----------------------------------------------------------------------------
  25. class CHudChatInputLine : public CBaseHudChatInputLine
  26. {
  27. DECLARE_CLASS_SIMPLE( CHudChatInputLine, CBaseHudChatInputLine );
  28. public:
  29. CHudChatInputLine( CBaseHudChat *parent, char const *panelName ) : CBaseHudChatInputLine( parent, panelName ) {}
  30. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  31. };
  32. class CHudChat : public CBaseHudChat
  33. {
  34. DECLARE_CLASS_SIMPLE( CHudChat, CBaseHudChat );
  35. public:
  36. CHudChat( const char *pElementName );
  37. virtual void CreateChatInputLine( void );
  38. virtual void Init( void );
  39. virtual void Reset( void );
  40. int GetChatInputOffset( void );
  41. void CreateChatLines( void );
  42. virtual bool ShouldDraw( void );
  43. virtual Color GetTextColorForClient( TextColor colorNum, int clientIndex );
  44. virtual Color GetClientColor( int clientIndex );
  45. virtual int GetFilterForString( const char *pString );
  46. virtual const char *GetDisplayedSubtitlePlayerName( int clientIndex );
  47. virtual bool IsVisible();
  48. virtual int GetFilterFlags( void );
  49. #if defined( _X360 )
  50. // hide behind other panels ( stats , build menu ) in 360
  51. virtual int GetRenderGroupPriority( void ) { return 35; } // less than statpanel
  52. #endif
  53. };
  54. #endif //CS_HUD_CHAT_H