blob: 02043ecd7f4c183ac340e3a46e9a50600963827f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//========= 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 ); }
protected:
// vgui overrides
virtual void OnCommand( const char *command );
IViewPort *m_pViewPort;
vgui::Label *m_pTitleLabel;
};
#endif // INTROMENU_H
|