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 DOD_HUD_CHAT_H
  8. #define DOD_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. void MsgFunc_SayText(bf_read &msg);
  21. private:
  22. CHudChatLine( const CHudChatLine & ); // not defined, not accessible
  23. };
  24. //-----------------------------------------------------------------------------
  25. // Purpose: The prompt and text entry area for chat messages
  26. //-----------------------------------------------------------------------------
  27. class CHudChatInputLine : public CBaseHudChatInputLine
  28. {
  29. DECLARE_CLASS_SIMPLE( CHudChatInputLine, CBaseHudChatInputLine );
  30. public:
  31. CHudChatInputLine( CBaseHudChat *parent, char const *panelName ) : CBaseHudChatInputLine( parent, panelName ) {}
  32. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  33. };
  34. class CHudChat : public CBaseHudChat
  35. {
  36. DECLARE_CLASS_SIMPLE( CHudChat, CBaseHudChat );
  37. public:
  38. CHudChat( const char *pElementName );
  39. virtual void CreateChatInputLine( void );
  40. virtual void CreateChatLines( void );
  41. virtual void Init( void );
  42. virtual void Reset( void );
  43. virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
  44. void MsgFunc_SayText( bf_read &msg );
  45. virtual void MsgFunc_VoiceSubtitle( bf_read &msg );
  46. void MsgFunc_HandSignalSubtitle( bf_read &msg );
  47. int GetChatInputOffset( void );
  48. void FindLocalizableSubstrings( char *szChat, int chatLength );
  49. virtual Color GetDefaultTextColor( void );
  50. virtual Color GetClientColor( int clientIndex );
  51. virtual bool IsVisible( void );
  52. };
  53. #endif //DOD_HUD_CHAT_H