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.

43 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef CHATPANEL_H
  8. #define CHATPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <KeyValues.h>
  13. #include <vgui_controls/Frame.h>
  14. #include <vgui_controls/PHandle.h>
  15. #include <vgui_controls/ListPanel.h>
  16. #include <vgui_controls/PropertyPage.h>
  17. //-----------------------------------------------------------------------------
  18. // Purpose: Dialog for displaying information about a game server
  19. //-----------------------------------------------------------------------------
  20. class CChatPanel : public vgui::PropertyPage
  21. {
  22. DECLARE_CLASS_SIMPLE( CChatPanel, vgui::PropertyPage );
  23. public:
  24. CChatPanel(vgui::Panel *parent, const char *name);
  25. ~CChatPanel();
  26. // property page handlers
  27. virtual void OnPageShow();
  28. virtual void OnPageHide();
  29. void DoInsertString(const char *str);
  30. private:
  31. MESSAGE_FUNC( OnSendChat, "SendChat" );
  32. vgui::RichText *m_pServerChatPanel;
  33. vgui::TextEntry *m_pEnterChatPanel;
  34. vgui::Button *m_pSendChatButton;
  35. };
  36. #endif // CHATPANEL_H