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.

37 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef COMMENTARYEXPLANATIONDIALOG_H
  7. #define COMMENTARYEXPLANATIONDIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/Frame.h"
  12. #include "utlvector.h"
  13. #include <vgui/KeyCode.h>
  14. //-----------------------------------------------------------------------------
  15. // Purpose: Dialog that explains the commentary mode
  16. //-----------------------------------------------------------------------------
  17. class CCommentaryExplanationDialog : public vgui::Frame
  18. {
  19. DECLARE_CLASS_SIMPLE( CCommentaryExplanationDialog, vgui::Frame );
  20. public:
  21. CCommentaryExplanationDialog(vgui::Panel *parent, char *pszFinishCommand);
  22. ~CCommentaryExplanationDialog();
  23. virtual void OnKeyCodeTyped(vgui::KeyCode code);
  24. virtual void OnKeyCodePressed(vgui::KeyCode code);
  25. virtual void OnCommand( const char *command );
  26. virtual void OnClose( void );
  27. private:
  28. char m_pszFinishCommand[ 512 ];
  29. };
  30. #endif // COMMENTARYEXPLANATIONDIALOG_H