You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
934 B
47 lines
934 B
5 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
// $Workfile: $
|
||
|
// $Date: $
|
||
|
// $NoKeywords: $
|
||
|
//=============================================================================//
|
||
|
#if !defined( PLAYEROVERLAYHEALTH_H )
|
||
|
#define PLAYEROVERLAYHEALTH_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "vgui_basepanel.h"
|
||
|
|
||
|
class KeyValues;
|
||
|
|
||
|
class CHudPlayerOverlay;
|
||
|
|
||
|
class CHudPlayerOverlayHealth : public CBasePanel
|
||
|
{
|
||
|
public:
|
||
|
DECLARE_CLASS( CHudPlayerOverlayHealth, CBasePanel );
|
||
|
|
||
|
CHudPlayerOverlayHealth( CHudPlayerOverlay *baseOverlay );
|
||
|
virtual ~CHudPlayerOverlayHealth( void );
|
||
|
|
||
|
bool Init( KeyValues* pInitData );
|
||
|
void SetHealth( float health );
|
||
|
|
||
|
virtual void Paint( void );
|
||
|
|
||
|
virtual void OnCursorEntered();
|
||
|
virtual void OnCursorExited();
|
||
|
|
||
|
private:
|
||
|
float m_Health;
|
||
|
|
||
|
Color m_fgColor;
|
||
|
Color m_bgColor;
|
||
|
|
||
|
CHudPlayerOverlay *m_pBaseOverlay;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif // PLAYEROVERLAYHEALTH_H
|