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/cstrike/VGUI/counterstrikeviewport.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/cstrike/VGUI/counterstrikeviewport.h')
| -rw-r--r-- | game/client/cstrike/VGUI/counterstrikeviewport.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/counterstrikeviewport.h b/game/client/cstrike/VGUI/counterstrikeviewport.h new file mode 100644 index 0000000..2559167 --- /dev/null +++ b/game/client/cstrike/VGUI/counterstrikeviewport.h @@ -0,0 +1,61 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef COUNTERSTRIKEVIEWPORT_H +#define COUNTERSTRIKEVIEWPORT_H + +#include "cs_shareddefs.h" +#include "baseviewport.h" + + +using namespace vgui; + +namespace vgui +{ + class Panel; + class Label; + class CBitmapImagePanel; +} + +class CCSTeamMenu; +class CCSClassMenu; +class CCSSpectatorGUI; +class CCSClientScoreBoard; +class CBuyMenu; +class CCSClientScoreBoardDialog; + + + +//============================================================================== +class CounterStrikeViewport : public CBaseViewport +{ + +private: + DECLARE_CLASS_SIMPLE( CounterStrikeViewport, CBaseViewport ); + +public: + + IViewPortPanel* CreatePanelByName(const char *szPanelName); + void CreateDefaultPanels( void ); + + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); + virtual void Start( IGameUIFuncs *pGameUIFuncs, IGameEventManager2 * pGameEventManager ); + + int GetDeathMessageStartHeight( void ); + + virtual void ShowBackGround(bool bShow) + { + m_pBackGround->SetVisible( false ); // CS:S menus paint their own backgrounds... + } + +private: + void CenterWindow( vgui::Frame *win ); + +}; + + +#endif // COUNTERSTRIKEVIEWPORT_H |