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/game_controls/intromenu.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/game_controls/intromenu.h')
| -rw-r--r-- | game/client/game_controls/intromenu.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/game/client/game_controls/intromenu.h b/game/client/game_controls/intromenu.h new file mode 100644 index 0000000..30e366a --- /dev/null +++ b/game/client/game_controls/intromenu.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef INTROMENU_H +#define INTROMENU_H +#ifdef _WIN32 +#pragma once +#endif + + +#include <vgui_controls/Frame.h> +#include <vgui_controls/Button.h> +#include <vgui_controls/Label.h> + +#include <game/client/iviewport.h> + +namespace vgui +{ + class TextEntry; +} + +class CIntroMenu : public vgui::Frame, public IViewPortPanel +{ +private: + DECLARE_CLASS_SIMPLE( CIntroMenu, vgui::Frame ); + +public: + CIntroMenu( IViewPort *pViewPort ); + virtual ~CIntroMenu(); + + virtual void ApplySchemeSettings( vgui::IScheme *pScheme ); + + virtual const char *GetName( void ){ return PANEL_INTRO; } + virtual void SetData( KeyValues *data ){ return; } + virtual void Reset(); + virtual void Update(); + virtual bool NeedsUpdate( void ) { return false; } + virtual bool HasInputElements( void ) { return true; } + virtual void ShowPanel( bool bShow ); + + // both vgui::Frame and IViewPortPanel define these, so explicitly define them here as passthroughs to vgui + vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); } + virtual bool IsVisible() { return BaseClass::IsVisible(); } + virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); } + + virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_IN_GAME_HUD; } + +protected: + // vgui overrides + virtual void OnCommand( const char *command ); + + IViewPort *m_pViewPort; + vgui::Label *m_pTitleLabel; +}; + +#endif // INTROMENU_H |