From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- engine/vgui_DebugSystemPanel.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 engine/vgui_DebugSystemPanel.h (limited to 'engine/vgui_DebugSystemPanel.h') diff --git a/engine/vgui_DebugSystemPanel.h b/engine/vgui_DebugSystemPanel.h new file mode 100644 index 0000000..d052fdd --- /dev/null +++ b/engine/vgui_DebugSystemPanel.h @@ -0,0 +1,40 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef VGUI_DEBUGSYSTEMPANEL_H +#define VGUI_DEBUGSYSTEMPANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include +#include + +class CDebugMenuButton; +class CDebugOptionsPanel; + +//----------------------------------------------------------------------------- +// Purpose: A simple panel to contain a debug menu button w/ cascading menus +//----------------------------------------------------------------------------- +class CDebugSystemPanel : public vgui::Panel +{ + typedef vgui::Panel BaseClass; +public: + + CDebugSystemPanel( vgui::Panel *parent, char const *panelName ); + + // Trap visibility so that we can force the cursor on + virtual void SetVisible( bool state ); + virtual void OnCommand( char const *command ); + +private: + CDebugMenuButton *m_pDebugMenu; + + vgui::DHANDLE< CDebugOptionsPanel > m_hDebugOptions; +}; + +#endif // VGUI_DEBUGSYSTEMPANEL_H -- cgit v1.2.3