summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_winpanel.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/tf/tf_hud_winpanel.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/tf_hud_winpanel.h')
-rw-r--r--game/client/tf/tf_hud_winpanel.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_winpanel.h b/game/client/tf/tf_hud_winpanel.h
new file mode 100644
index 0000000..ef99030
--- /dev/null
+++ b/game/client/tf/tf_hud_winpanel.h
@@ -0,0 +1,66 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TFWINPANEL_H
+#define TFWINPANEL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/EditablePanel.h>
+#include <game/client/iviewport.h>
+#include <vgui/IScheme.h>
+#include "hud.h"
+#include "hudelement.h"
+#include "econ_controls.h"
+#include "vgui_avatarimage.h"
+
+using namespace vgui;
+
+#define NUM_NOTABLE_PLAYERS 3
+#define NUM_CATEGORIES 2
+#define NUM_ITEMS_PER_CATEGORY 3
+
+class CTFWinPanel : public EditablePanel, public CHudElement
+{
+private:
+ DECLARE_CLASS_SIMPLE( CTFWinPanel, EditablePanel );
+
+public:
+ CTFWinPanel( const char *pElementName );
+
+ virtual void Reset();
+ virtual void Init();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ virtual void ApplySettings( KeyValues *inResourceData );
+ virtual void FireGameEvent( IGameEvent * event );
+ virtual void OnThink();
+ virtual bool ShouldDraw( void );
+ virtual void SetVisible( bool state );
+
+ virtual int GetRenderGroupPriority() { return 70; }
+
+private:
+ void UpdateTeamInfo();
+
+private:
+ EditablePanel *m_pTeamScorePanel;
+ CExLabel *m_pRedTeamName;
+ CExLabel *m_pBlueTeamName;
+ CAvatarImagePanel *m_pRedLeaderAvatarImage;
+ CAvatarImagePanel *m_pBlueLeaderAvatarImage;
+ EditablePanel *m_pRedLeaderAvatarBG;
+ EditablePanel *m_pBlueLeaderAvatarBG;
+
+ float m_flTimeUpdateTeamScore;
+ int m_iBlueTeamScore;
+ int m_iRedTeamScore;
+
+ bool m_bShouldBeVisible;
+};
+
+#endif //TFWINPANEL_H