summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/cstrikeclassmenu.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/cstrike/VGUI/cstrikeclassmenu.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/cstrike/VGUI/cstrikeclassmenu.h')
-rw-r--r--game/client/cstrike/VGUI/cstrikeclassmenu.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/cstrikeclassmenu.h b/game/client/cstrike/VGUI/cstrikeclassmenu.h
new file mode 100644
index 0000000..96a991f
--- /dev/null
+++ b/game/client/cstrike/VGUI/cstrikeclassmenu.h
@@ -0,0 +1,107 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CSCLASSMENU_H
+#define CSCLASSMENU_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <classmenu.h>
+#include <vgui_controls/EditablePanel.h>
+#include <filesystem.h>
+#include <cs_shareddefs.h>
+#include "cbase.h"
+#include "cs_gamerules.h"
+#include "vgui_controls/ImagePanel.h"
+#include "backgroundpanel.h"
+
+using namespace vgui;
+
+
+//-----------------------------------------------------------------------------
+// These are maintained in a list so the renderer can draw a 3D character
+// model on top of them.
+//-----------------------------------------------------------------------------
+
+class CCSClassImagePanel : public vgui::ImagePanel
+{
+public:
+
+ typedef vgui::ImagePanel BaseClass;
+
+ CCSClassImagePanel( vgui::Panel *pParent, const char *pName );
+ virtual ~CCSClassImagePanel();
+ virtual void ApplySettings( KeyValues *inResourceData );
+ virtual void Paint();
+
+
+public:
+ char m_ModelName[128];
+};
+
+extern CUtlVector<CCSClassImagePanel*> g_ClassImagePanels;
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Draws the Terrorist class menu
+//-----------------------------------------------------------------------------
+
+class CClassMenu_TER : public CClassMenu
+{
+private:
+ DECLARE_CLASS_SIMPLE( CClassMenu_TER, CClassMenu );
+
+ // Background panel -------------------------------------------------------
+
+public:
+ virtual void PaintBackground();
+ virtual void PerformLayout();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ bool m_backgroundLayoutFinished;
+
+ // End background panel ---------------------------------------------------
+
+public:
+ CClassMenu_TER(IViewPort *pViewPort);
+ virtual Panel* CreateControlByName(const char *controlName);
+ const char *GetName( void );
+ void ShowPanel(bool bShow);
+ void Update();
+ virtual void SetVisible(bool state);
+};
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Draws the Counter-Terrorist class menu
+//-----------------------------------------------------------------------------
+
+class CClassMenu_CT : public CClassMenu
+{
+private:
+ DECLARE_CLASS_SIMPLE( CClassMenu_CT, CClassMenu );
+
+ // Background panel -------------------------------------------------------
+
+public:
+ virtual void PaintBackground();
+ virtual void PerformLayout();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ bool m_backgroundLayoutFinished;
+
+ // End background panel ---------------------------------------------------
+
+public:
+ CClassMenu_CT(IViewPort *pViewPort);
+ virtual Panel *CreateControlByName(const char *controlName);
+ const char *GetName( void );
+ void ShowPanel(bool bShow);
+ void Update();
+ virtual void SetVisible(bool state);
+};
+
+#endif // CSCLASSMENU_H