summaryrefslogtreecommitdiff
path: root/game/client/tf/tf_hud_passtime_ball_offscreen_arrow.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_passtime_ball_offscreen_arrow.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_passtime_ball_offscreen_arrow.h')
-rw-r--r--game/client/tf/tf_hud_passtime_ball_offscreen_arrow.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/game/client/tf/tf_hud_passtime_ball_offscreen_arrow.h b/game/client/tf/tf_hud_passtime_ball_offscreen_arrow.h
new file mode 100644
index 0000000..9c015cd
--- /dev/null
+++ b/game/client/tf/tf_hud_passtime_ball_offscreen_arrow.h
@@ -0,0 +1,60 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_HUD_PASSTIME_BALL_OFFSCREEN_ARROW_H
+#define TF_HUD_PASSTIME_BALL_OFFSCREEN_ARROW_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/EditablePanel.h>
+#include <game/client/iviewport.h>
+#include "ehandle.h"
+
+class C_TFPlayer;
+
+//-----------------------------------------------------------------------------
+class CTFHudPasstimeOffscreenArrow : public vgui::EditablePanel
+{
+ DECLARE_CLASS_SIMPLE( CTFHudPasstimeOffscreenArrow, vgui::EditablePanel );
+public:
+ CTFHudPasstimeOffscreenArrow( vgui::Panel *pParent, const char *name );
+ ~CTFHudPasstimeOffscreenArrow();
+ virtual void ApplySchemeSettings( vgui::IScheme *pScheme ) OVERRIDE;
+ virtual void PaintBackground() OVERRIDE;
+
+protected:
+ virtual C_BaseEntity *PreparePaint( vgui::ImagePanel *pImage, C_TFPlayer *pLocalPlayer ) = 0;
+
+private:
+ IMaterial *m_pArrowMaterial;
+ vgui::ImagePanel *m_pImage;
+};
+
+//-----------------------------------------------------------------------------
+class CTFHudPasstimeBallOffscreenArrow : public CTFHudPasstimeOffscreenArrow
+{
+ DECLARE_CLASS_SIMPLE( CTFHudPasstimeBallOffscreenArrow, CTFHudPasstimeOffscreenArrow );
+public:
+ CTFHudPasstimeBallOffscreenArrow( vgui::Panel *pParent );
+private:
+ virtual C_BaseEntity *PreparePaint( vgui::ImagePanel *pImage, C_TFPlayer *pLocalPlayer ) OVERRIDE;
+};
+
+//-----------------------------------------------------------------------------
+class CTFHudPasstimePlayerOffscreenArrow : public CTFHudPasstimeOffscreenArrow
+{
+ DECLARE_CLASS_SIMPLE( CTFHudPasstimePlayerOffscreenArrow, CTFHudPasstimeOffscreenArrow );
+public:
+ CTFHudPasstimePlayerOffscreenArrow( vgui::Panel *pParent, int iPlayerIndex );
+private:
+ virtual C_BaseEntity *PreparePaint( vgui::ImagePanel *pImage, C_TFPlayer *pLocalPlayer ) OVERRIDE;
+
+ int m_iPlayerIndex;
+};
+
+#endif // TF_HUD_PASSTIME_BALL_OFFSCREEN_ARROW_H