mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-08 16:36:41 +00:00
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
|
//========= 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
|