summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/cstriketeammenu.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/cstriketeammenu.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/cstriketeammenu.h')
-rw-r--r--game/client/cstrike/VGUI/cstriketeammenu.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/cstriketeammenu.h b/game/client/cstrike/VGUI/cstriketeammenu.h
new file mode 100644
index 0000000..7b2ab0e
--- /dev/null
+++ b/game/client/cstrike/VGUI/cstriketeammenu.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CSTEAMMENU_H
+#define CSTEAMMENU_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <teammenu.h>
+
+//-----------------------------------------------------------------------------
+// Purpose: Displays the team menu
+//-----------------------------------------------------------------------------
+class CCSTeamMenu : public CTeamMenu
+{
+private:
+ DECLARE_CLASS_SIMPLE( CCSTeamMenu, CTeamMenu );
+
+public:
+ CCSTeamMenu(IViewPort *pViewPort);
+ ~CCSTeamMenu();
+
+ void Update();
+ void ShowPanel( bool bShow );
+ virtual void SetVisible(bool state);
+
+private:
+ enum { NUM_TEAMS = 3 };
+
+ // VGUI2 override
+ virtual void OnCommand( const char *command);
+ virtual void OnKeyCodePressed( vgui::KeyCode code );
+ // helper functions
+ void SetVisibleButton(const char *textEntryName, bool state);
+
+ bool m_bVIPMap;
+
+ // Background panel -------------------------------------------------------
+
+public:
+ virtual void PaintBackground();
+ virtual void PerformLayout();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ bool m_backgroundLayoutFinished;
+
+ // End background panel ---------------------------------------------------
+};
+
+#endif // CSTEAMMENU_H