Counter Strike : Global Offensive Source Code
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.

40 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VGUI_DEBUGSYSTEMPANEL_H
  8. #define VGUI_DEBUGSYSTEMPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Panel.h>
  13. #include <vgui_controls/PHandle.h>
  14. class CDebugMenuButton;
  15. class CDebugOptionsPanel;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: A simple panel to contain a debug menu button w/ cascading menus
  18. //-----------------------------------------------------------------------------
  19. class CDebugSystemPanel : public vgui::Panel
  20. {
  21. typedef vgui::Panel BaseClass;
  22. public:
  23. CDebugSystemPanel( vgui::Panel *parent, char const *panelName );
  24. // Trap visibility so that we can force the cursor on
  25. virtual void SetVisible( bool state );
  26. virtual void OnCommand( char const *command );
  27. private:
  28. CDebugMenuButton *m_pDebugMenu;
  29. vgui::DHANDLE< CDebugOptionsPanel > m_hDebugOptions;
  30. };
  31. #endif // VGUI_DEBUGSYSTEMPANEL_H