summaryrefslogtreecommitdiff
path: root/engine/vgui_DebugSystemPanel.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/vgui_DebugSystemPanel.h
downloadarchived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz
archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip
Diffstat (limited to 'engine/vgui_DebugSystemPanel.h')
-rw-r--r--engine/vgui_DebugSystemPanel.h40
1 files changed, 40 insertions, 0 deletions
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 <vgui_controls/Panel.h>
+#include <vgui_controls/PHandle.h>
+
+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