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.
50 lines
1.3 KiB
50 lines
1.3 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
//============================================================================= |
|
|
|
#ifndef TF_HUD_SPECTATOR_EXTRAS_H |
|
#define TF_HUD_SPECTATOR_EXTRAS_H |
|
#ifdef _WIN32 |
|
#pragma once |
|
#endif |
|
|
|
#include "hudelement.h" |
|
#include <vgui_controls/EditablePanel.h> |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: |
|
//----------------------------------------------------------------------------- |
|
class CTFHudSpectatorExtras : public CHudElement, public vgui::EditablePanel |
|
{ |
|
DECLARE_CLASS_SIMPLE( CTFHudSpectatorExtras, vgui::EditablePanel ); |
|
public: |
|
CTFHudSpectatorExtras( const char *pElementName ); |
|
virtual ~CTFHudSpectatorExtras(){} |
|
|
|
virtual bool ShouldDraw( void ) OVERRIDE; |
|
virtual void OnTick() OVERRIDE; |
|
virtual void Paint() OVERRIDE; |
|
|
|
void RemoveEntity( int nRemove ); |
|
|
|
private: |
|
void Reset( void ); |
|
|
|
typedef struct |
|
{ |
|
int m_nEntIndex; |
|
wchar_t m_wszName[MAX_ID_STRING]; |
|
int m_nNameWidth; |
|
float m_flHealth; |
|
Color m_clrGlowColor; |
|
bool m_bDrawName; |
|
int m_nOffset; |
|
} spec_extra_t; |
|
|
|
CUtlVector< spec_extra_t > m_vecEntitiesToDraw; |
|
CPanelAnimationVar( vgui::HFont, m_hNameFont, "player_name_font", "SpectatorVerySmall" ); |
|
}; |
|
|
|
#endif // TF_HUD_SPECTATOR_EXTRAS_H
|
|
|