summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_overview.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/vgui/tf_overview.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/vgui/tf_overview.h')
-rw-r--r--game/client/tf/vgui/tf_overview.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_overview.h b/game/client/tf/vgui/tf_overview.h
new file mode 100644
index 0000000..e7c3a37
--- /dev/null
+++ b/game/client/tf/vgui/tf_overview.h
@@ -0,0 +1,80 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef TF_OVERVIEW_H
+#define TF_OVERVIEW_H
+
+#include <mapoverview.h>
+#include "tf_shareddefs.h"
+
+class CTFMapOverview : public CMapOverview
+{
+ DECLARE_CLASS_SIMPLE( CTFMapOverview, CMapOverview );
+
+ CTFMapOverview( const char *pElementName );
+
+ int m_CameraIcons[MAX_TEAMS];
+ int m_CapturePoints[MAX_CONTROL_POINTS];
+
+ void ShowLargeMap( void );
+ void HideLargeMap( void );
+ void ToggleZoom( void );
+
+ void PlayerChat( int index );
+
+ void DrawQuad( Vector pos, int scale, float angle, int textureID, int alpha );
+ void DrawHorizontalSwipe( Vector pos, int scale, int textureID, float flCapPercentage, bool bSwipeLeft );
+ bool DrawCapturePoint( int iCP, MapObject_t *obj );
+
+ void SetDisabled( bool disabled ){ m_bDisabled = disabled; }
+ bool IsDisabled( void ){ return m_bDisabled; }
+
+ virtual void Paint();
+ virtual bool ShouldDraw( void );
+ virtual void VidInit( void );
+ virtual void SetMap( const char * map );
+
+protected:
+ virtual void SetMode(int mode);
+ virtual void InitTeamColorsAndIcons();
+ virtual void FireGameEvent( IGameEvent *event );
+ virtual void DrawCamera();
+ virtual void DrawMapPlayers();
+ virtual void Update();
+ virtual void UpdateSizeAndPosition();
+ virtual void UpdateMapOverlayTexture();
+
+ virtual void DrawMapOverlayTexture();
+
+ // rules that define if you can see a player on the overview or not
+ virtual bool CanPlayerBeSeen( MapPlayer_t *player );
+
+ void DrawVoiceIconForPlayer( int playerIndex );
+
+ virtual bool DrawIcon( MapObject_t *obj );
+
+protected:
+ void UpdateCapturePoints();
+
+private:
+ int m_iLastMode;
+
+ int m_iVoiceIcon;
+ int m_iChatIcon;
+
+ bool m_bDisabled;
+
+ float m_flPlayerChatTime[MAX_PLAYERS];
+
+ int m_nMapTextureOverlayID; // texture id for current overlay image (shown over the current overview image)
+
+#define TF_MAP_ZOOM_LEVELS 2
+};
+
+extern CTFMapOverview *GetTFOverview( void );
+
+#endif // TF_OVERVIEW_H