summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_arena_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_arena_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_arena_winpanel.h')
-rw-r--r--game/client/tf/tf_hud_arena_winpanel.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_arena_winpanel.h b/game/client/tf/tf_hud_arena_winpanel.h
new file mode 100644
index 0000000..1487b16
--- /dev/null
+++ b/game/client/tf/tf_hud_arena_winpanel.h
@@ -0,0 +1,81 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_ARENA_WINPANEL_H
+#define TF_ARENA_WINPANEL_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 "tf_gamerules.h"
+
+using namespace vgui;
+
+#define NUM_NOTABLE_PLAYERS 3
+#define NUM_CATEGORIES 2
+#define NUM_ITEMS_PER_CATEGORY 3
+
+class CTFArenaWinPanel : public EditablePanel, public CGameEventListener, public IViewPortPanel
+{
+private:
+ DECLARE_CLASS_SIMPLE( CTFArenaWinPanel, EditablePanel );
+
+public:
+ CTFArenaWinPanel( IViewPort *pViewPort );
+
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ virtual void ApplySettings( KeyValues *inResourceData );
+ virtual void FireGameEvent( IGameEvent * event );
+ virtual void OnTick();
+
+ virtual int GetRenderGroupPriority() { return 70; }
+ void SetupPlayerStats( void );
+
+ virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); }
+ virtual const char *GetName( void ){ return PANEL_ARENA_WIN; }
+ virtual void SetData( KeyValues *data ){ return; }
+ virtual void Reset();
+ virtual void Update();
+ virtual bool NeedsUpdate( void ) { return false; }
+ virtual bool HasInputElements( void ) { return true; }
+ virtual void ShowPanel( bool bShow ){ };
+ virtual void SetVisible( bool state );
+ vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); }
+ virtual bool IsVisible() { return BaseClass::IsVisible(); }
+ bool IsFlawlessVictory( void );
+
+ virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_NONE; }
+
+private:
+ EditablePanel *m_pTeamScorePanel;
+ EditablePanel *m_pWinnerPanel;
+ EditablePanel *m_pLoserPanel;
+
+ Panel *m_pArenaStreakPanel;
+ Panel *m_pArenaStreakLabel;
+
+ float m_flTimeUpdateTeamScore;
+ float m_flFlipScoresTimes;
+ int m_iBlueTeamScore;
+ int m_iRedTeamScore;
+
+ bool m_bShouldBeVisible;
+ bool m_bWasFlawlessVictory;
+
+ int m_iWinningPlayerTeam;
+
+ CUtlVector<PlayerArenaRoundScore_t> m_vecPlayerScore;
+
+ wchar_t m_wzTeamLose[256];
+};
+
+#endif //TF_ARENA_WINPANEL_H \ No newline at end of file