diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/vgui_imagehealthpanel.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/vgui_imagehealthpanel.h')
| -rw-r--r-- | mp/src/game/client/vgui_imagehealthpanel.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/mp/src/game/client/vgui_imagehealthpanel.h b/mp/src/game/client/vgui_imagehealthpanel.h new file mode 100644 index 00000000..b320c585 --- /dev/null +++ b/mp/src/game/client/vgui_imagehealthpanel.h @@ -0,0 +1,53 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This is a panel which is rendered image on top of an entity
+//
+// $Revision: $
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef VGUI_IMAGEHEALTHPANEL_H
+#define VGUI_IMAGEHEALTHPANEL_H
+
+#include "vgui_EntityPanel.h"
+#include "vgui_EntityImagePanel.h"
+#include "vgui_HealthBar.h"
+#include "vgui_bitmappanel.h"
+
+//-----------------------------------------------------------------------------
+// forward declarations
+//-----------------------------------------------------------------------------
+
+class C_BaseEntity;
+class KeyValues;
+class BitmapImage;
+
+//-----------------------------------------------------------------------------
+// This is a base class for a panel which always is rendered on top of an entity
+//-----------------------------------------------------------------------------
+
+class CEntityImageHealthPanel : public CEntityPanel
+{
+public:
+ DECLARE_CLASS( CEntityImageHealthPanel, CEntityPanel );
+
+ // constructor
+ CEntityImageHealthPanel( vgui::Panel *parent, const char *panelName );
+ ~CEntityImageHealthPanel();
+
+ // initialization
+ bool Init( KeyValues* pInitData, C_BaseEntity* pEntity );
+
+ // called when we're ticked...
+ virtual void OnTick();
+ virtual bool ShouldDraw( void );
+ virtual void ComputeAndSetSize( void );
+
+private:
+ CHealthBarPanel *m_CommanderHealthBar;
+ CHealthBarPanel *m_NormalHealthBar;
+ CHealthBarPanel *m_ResourceLevelBar;
+ CEntityTeamImagePanel *m_pImagePanel;
+};
+
+#endif // VGUI_IMAGEHEALTHPANEL_H
\ No newline at end of file |