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.
57 lines
1.4 KiB
57 lines
1.4 KiB
3 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
|
||
|
#ifndef C_CSRootPanel_H
|
||
|
#define C_CSRootPanel_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include <vgui_controls/Panel.h>
|
||
|
#include <vgui_controls/EditablePanel.h>
|
||
|
#include "utlvector.h"
|
||
|
|
||
|
class CPanelEffect;
|
||
|
class ITFHintItem;
|
||
|
|
||
|
// 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_CSRootPanel : public vgui::Panel
|
||
|
{
|
||
|
typedef vgui::Panel BaseClass;
|
||
|
public:
|
||
|
C_CSRootPanel( vgui::VPANEL parent );
|
||
|
virtual ~C_CSRootPanel( 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;
|
||
|
};
|
||
|
|
||
|
extern C_CSRootPanel *g_pTF2RootPanel;
|
||
|
|
||
|
#endif // C_CSRootPanel_H
|