blob: ce067db7b422e76be3917d74222a9ac242582cf3 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef DODTEXTWINDOW_H
#define DODTEXTWINDOW_H
#ifdef _WIN32
#pragma once
#endif
#include "vguitextwindow.h"
#include "dodmenubackground.h"
#include <vgui_controls/Panel.h>
using namespace vgui;
//-----------------------------------------------------------------------------
// Purpose: displays the MOTD
//-----------------------------------------------------------------------------
class CDODTextWindow : public CTextWindow
{
private:
DECLARE_CLASS_SIMPLE( CDODTextWindow, CTextWindow );
public:
CDODTextWindow(IViewPort *pViewPort);
virtual ~CDODTextWindow();
virtual void Update();
virtual void SetVisible(bool state);
virtual void ShowPanel( bool bShow );
virtual void OnKeyCodePressed(vgui::KeyCode code);
virtual Panel *CreateControlByName( const char *controlName );
protected:
ButtonCode_t m_iScoreBoardKey;
public:
virtual void PaintBackground();
virtual void PerformLayout();
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
CDODMenuBackground *m_pBackground;
};
#endif // DODTEXTWINDOW_H
|