//========= Copyright © 2005, EF:TC Mod, All rights reserved. =================// // // File: hud_health_image.cpp // Purpose: HUD - Health graphic // Authors: Chris Adams // Created: 30/07/05 // Last Updated: 30/07/05 // //=============================================================================// #include "hud.h" #include "cbase.h" #include "iclientmode.h" #include "hud_macros.h" #include "vgui_controls/controls.h" #include "vgui/ISurface.h" #include "hudelement.h" #include "hud_image.h" #include "tier0/memdbgon.h" using namespace vgui; class CHudHealthImage : public HudImagePanel { DECLARE_CLASS_SIMPLE( CHudHealthImage, HudImagePanel ); public: CHudHealthImage( const char *pElementName ); }; DECLARE_HUDELEMENT( CHudHealthImage ); CHudHealthImage::CHudHealthImage( const char *pElementName ) : BaseClass( NULL, "HudHealthImage" ) { SetHiddenBits( HIDEHUD_HEALTH | HIDEHUD_PLAYERDEAD | HIDEHUD_NEEDSUIT ); SetImage( "hud/hud_health" ); }