summaryrefslogtreecommitdiff
path: root/game/client/dod/VGUI/dodmenubackground.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/client/dod/VGUI/dodmenubackground.h')
-rw-r--r--game/client/dod/VGUI/dodmenubackground.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/game/client/dod/VGUI/dodmenubackground.h b/game/client/dod/VGUI/dodmenubackground.h
new file mode 100644
index 0000000..a79b145
--- /dev/null
+++ b/game/client/dod/VGUI/dodmenubackground.h
@@ -0,0 +1,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 \ No newline at end of file