mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-01 23:19:18 +00:00
1
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
#ifndef HUD_BOSS_HEALTH_METER_H
|
||||
#define HUD_BOSS_HEALTH_METER_H
|
||||
|
||||
#include "hud.h"
|
||||
#include "hudelement.h"
|
||||
#include <vgui_controls/EditablePanel.h>
|
||||
#include <vgui_controls/ProgressBar.h>
|
||||
|
||||
|
||||
class CHudBossHealthMeter : public CHudElement, public vgui::EditablePanel
|
||||
{
|
||||
DECLARE_CLASS_SIMPLE( CHudBossHealthMeter, vgui::EditablePanel );
|
||||
|
||||
public:
|
||||
CHudBossHealthMeter( const char *pElementName );
|
||||
|
||||
virtual void ApplySchemeSettings( vgui::IScheme *scheme );
|
||||
virtual bool ShouldDraw( void );
|
||||
virtual void Init( void );
|
||||
|
||||
virtual void OnTick( void );
|
||||
|
||||
void Update( void ); // update HUD due to data changes
|
||||
|
||||
private:
|
||||
vgui::ContinuousProgressBar *m_pStunMeter;
|
||||
|
||||
vgui::EditablePanel *m_pHealthBarPanel;
|
||||
|
||||
vgui::ImagePanel *m_pBarImagePanel;
|
||||
Color m_bossActiveBarColor;
|
||||
|
||||
vgui::ImagePanel *m_pBorderImagePanel;
|
||||
Color m_bossActiveBorderColor;
|
||||
|
||||
Color m_inactiveColor;
|
||||
|
||||
CPanelAnimationVarAliasType( int, m_nHealthAlivePosY, "health_alive_pos_y", "42", "proportional_ypos" );
|
||||
CPanelAnimationVarAliasType( int, m_nHealthDeadPosY, "health_dead_pos_y", "90", "proportional_ypos" );
|
||||
CPanelAnimationVarAliasType( int, m_nHealthBarWide, "health_bar_wide", "168", "proportional_xpos" );
|
||||
};
|
||||
|
||||
#endif // HUD_BOSS_HEALTH_METER_H
|
||||
Reference in New Issue
Block a user