Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DODMENUBACKGROUND_H
  8. #define DODMENUBACKGROUND_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/EditablePanel.h>
  13. #include <vgui/ISurface.h>
  14. #include "vgui_controls/BitmapImagePanel.h"
  15. using namespace vgui;
  16. static int iTopDims[8] =
  17. {
  18. 41, 30,
  19. 562, 30,
  20. 599, 67,
  21. 41, 67
  22. };
  23. static int iMainDims[8] =
  24. {
  25. 41, 67,
  26. 599, 67,
  27. 599, 465,
  28. 41, 465
  29. };
  30. static int iBoxDims[8] =
  31. {
  32. 69, 83,
  33. 86, 83,
  34. 86, 89,
  35. 69, 89
  36. };
  37. static int iLineDims[6] =
  38. {
  39. 69, 89,
  40. 558, 89,
  41. 568, 99
  42. };
  43. class CDODMenuBackground : public vgui::EditablePanel
  44. {
  45. private:
  46. DECLARE_CLASS_SIMPLE( CDODMenuBackground, vgui::EditablePanel );
  47. public:
  48. CDODMenuBackground( Panel *parent);
  49. void Init();
  50. void ApplySchemeSettings( IScheme *pScheme );
  51. virtual void Paint( void );
  52. private:
  53. vgui::Vertex_t m_BackgroundTopVerts[4];
  54. vgui::Vertex_t m_BackgroundMainVerts[4];
  55. vgui::Vertex_t m_BoxVerts[4];
  56. int m_LineDims[6];
  57. int m_iBackgroundTexture;
  58. };
  59. #endif //DODMENUBACKGROUND_H