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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef DODMENUBACKGROUND_H
#define DODMENUBACKGROUND_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/EditablePanel.h>
#include <vgui/ISurface.h>
#include "vgui_controls/BitmapImagePanel.h"
using namespace vgui;
static int iTopDims[8] =
{
41, 30,
562, 30,
599, 67,
41, 67
};
static int iMainDims[8] =
{
41, 67,
599, 67,
599, 465,
41, 465
};
static int iBoxDims[8] =
{
69, 83,
86, 83,
86, 89,
69, 89
};
static int iLineDims[6] =
{
69, 89,
558, 89,
568, 99
};
class CDODMenuBackground : public vgui::EditablePanel
{
private:
DECLARE_CLASS_SIMPLE( CDODMenuBackground, vgui::EditablePanel );
public:
CDODMenuBackground( Panel *parent);
void Init();
void ApplySchemeSettings( IScheme *pScheme );
virtual void Paint( void );
private:
vgui::Vertex_t m_BackgroundTopVerts[4];
vgui::Vertex_t m_BackgroundMainVerts[4];
vgui::Vertex_t m_BoxVerts[4];
int m_LineDims[6];
int m_iBackgroundTexture;
};
#endif //DODMENUBACKGROUND_H
|