summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_pve_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_pve_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_pve_winpanel.h')
-rw-r--r--game/client/tf/tf_hud_pve_winpanel.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_pve_winpanel.h b/game/client/tf/tf_hud_pve_winpanel.h
new file mode 100644
index 0000000..4662962
--- /dev/null
+++ b/game/client/tf/tf_hud_pve_winpanel.h
@@ -0,0 +1,64 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_HUD_PVE_WINPANEL_H
+#define TF_HUD_PVE_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_shareddefs.h"
+
+using namespace vgui;
+
+class CCreditDisplayPanel;
+
+
+class CTFPVEWinPanel : public EditablePanel, public CGameEventListener, public IViewPortPanel
+{
+private:
+ DECLARE_CLASS_SIMPLE( CTFPVEWinPanel, EditablePanel );
+
+public:
+ CTFPVEWinPanel( 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; }
+
+ virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); }
+ virtual const char *GetName( void ){ return PANEL_PVE_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 ){ };
+ vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); }
+ virtual bool IsVisible() { return BaseClass::IsVisible(); }
+
+ virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_NONE; }
+
+private:
+
+ vgui::ScalableImagePanel *m_pRespecBackground;
+ vgui::EditablePanel *m_pRespecContainerPanel;
+ vgui::Label *m_pRespecTextLabel;
+ vgui::Label *m_pRespecCountLabel;
+
+ bool m_bShouldBeVisible;
+};
+
+#endif //TF_HUD_PVE_WINPANEL_H