diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tfc/vgui/vgui_rootpanel_tfc.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tfc/vgui/vgui_rootpanel_tfc.h')
| -rw-r--r-- | game/client/tfc/vgui/vgui_rootpanel_tfc.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/game/client/tfc/vgui/vgui_rootpanel_tfc.h b/game/client/tfc/vgui/vgui_rootpanel_tfc.h new file mode 100644 index 0000000..7ed80e3 --- /dev/null +++ b/game/client/tfc/vgui/vgui_rootpanel_tfc.h @@ -0,0 +1,56 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef VGUI_ROOTPANEL_TFC_H +#define VGUI_ROOTPANEL_TFC_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_TFCRootPanel : public vgui::Panel +{ + typedef vgui::Panel BaseClass; +public: + C_TFCRootPanel( vgui::VPANEL parent ); + virtual ~C_TFCRootPanel( 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_TFC_H |