aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h')
-rw-r--r--mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h b/mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h
new file mode 100644
index 00000000..0e7c9b80
--- /dev/null
+++ b/mp/src/game/client/sdk/vgui/vgui_rootpanel_sdk.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef VGUI_ROOTPANEL_SDK_H
+#define VGUI_ROOTPANEL_SDK_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include <vgui_controls/Panel.h>
+#include <vgui_controls/EditablePanel.h>
+#include "utlvector.h"
+
+
+class CPanelEffect;
+
+
+// Serial under of effect, for safe lookup
+typedef unsigned int EFFECT_HANDLE;
+
+//-----------------------------------------------------------------------------
+// Purpose: Sits between engine and client .dll panels
+// Responsible for drawing screen overlays
+//-----------------------------------------------------------------------------
+class C_SDKRootPanel : public vgui::Panel
+{
+ typedef vgui::Panel BaseClass;
+public:
+ C_SDKRootPanel( vgui::VPANEL parent );
+ virtual ~C_SDKRootPanel( void );
+
+ // Draw Panel effects here
+ virtual void PostChildPaint();
+
+ // Clear list of Panel Effects
+ virtual void LevelInit( void );
+ virtual void LevelShutdown( void );
+
+ // Run effects and let them decide whether to remove themselves
+ void OnTick( void );
+
+private:
+
+ // Render all panel effects
+ void RenderPanelEffects( void );
+
+ // List of current panel effects
+ CUtlVector< CPanelEffect *> m_Effects;
+};
+
+
+#endif // VGUI_ROOTPANEL_SDK_H