summaryrefslogtreecommitdiff
path: root/game/client/cstrike/VGUI/win_panel_round.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/win_panel_round.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/win_panel_round.h')
-rw-r--r--game/client/cstrike/VGUI/win_panel_round.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/game/client/cstrike/VGUI/win_panel_round.h b/game/client/cstrike/VGUI/win_panel_round.h
new file mode 100644
index 0000000..f5a6d7e
--- /dev/null
+++ b/game/client/cstrike/VGUI/win_panel_round.h
@@ -0,0 +1,65 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Create and display a win panel at the end of a round displaying interesting stats and info about the round.
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CSWINPANEL_ROUND_H
+#define CSWINPANEL_ROUND_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "VGUI/bordered_panel.h"
+#include <game/client/iviewport.h>
+#include <vgui/IScheme.h>
+#include "hud.h"
+#include "hudelement.h"
+#include "c_cs_player.h"
+#include "vgui_avatarimage.h"
+
+#include "cs_shareddefs.h"
+
+using namespace vgui;
+
+class WinPanel_Round : public BorderedPanel, public CHudElement
+{
+private:
+ DECLARE_CLASS_SIMPLE( WinPanel_Round, BorderedPanel );
+
+public:
+ WinPanel_Round(const char *pElementName);
+ ~WinPanel_Round();
+
+ virtual void Reset();
+ virtual void Init();
+ virtual void VidInit();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
+ virtual void FireGameEvent( IGameEvent * event );
+ virtual bool ShouldDraw( void );
+ virtual void Paint( void ) {};
+ virtual void OnScreenSizeChanged(int nOldWide, int nOldTall);
+
+ virtual void OnThink();
+
+ void InitLayout();
+ void Show();
+ void Hide();
+
+protected:
+ void SetMVP( C_CSPlayer* pPlayer, CSMvpReason_t reason );
+ void SetFunFactLabel( const wchar *szFunFact );
+
+private:
+ bool m_bShowTimerDefend;
+ bool m_bShowTimerAttack;
+
+ bool m_bShouldBeVisible;
+
+ // fade tracking
+ bool m_bIsFading;
+ float m_fFadeBeginTime;
+};
+
+#endif //CSWINPANEL_ROUND_H \ No newline at end of file