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.

67 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SDK_HUD_CHAT_H
  8. #define SDK_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 PerformFadeout( void );
  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. void MsgFunc_TextMsg( bf_read &msg );
  46. void ChatPrintf( int iPlayerIndex, PRINTF_FORMAT_STRING const char *fmt, ... );
  47. int GetChatInputOffset( void );
  48. };
  49. #endif //SDK_HUD_CHAT_H