mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-04-07 08:54:25 +00:00
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================
|
|
|
|
#ifndef TF_HUD_MEDICCALLERS_H
|
|
#define TF_HUD_MEDICCALLERS_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include <vgui_controls/EditablePanel.h>
|
|
#include <game/client/iviewport.h>
|
|
#include <vgui/IScheme.h>
|
|
#include "hud.h"
|
|
#include "hudelement.h"
|
|
#include "tf_imagepanel.h"
|
|
#include "c_tf_player.h"
|
|
|
|
enum
|
|
{
|
|
DRAW_ARROW_UP,
|
|
DRAW_ARROW_LEFT,
|
|
DRAW_ARROW_RIGHT
|
|
};
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose:
|
|
//-----------------------------------------------------------------------------
|
|
class CTFMedicCallerPanel : public vgui::EditablePanel
|
|
{
|
|
DECLARE_CLASS_SIMPLE( CTFMedicCallerPanel, vgui::EditablePanel );
|
|
public:
|
|
CTFMedicCallerPanel( vgui::Panel *parent, const char *name );
|
|
~CTFMedicCallerPanel( void );
|
|
|
|
virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
|
|
virtual void PerformLayout( void );
|
|
virtual void OnTick( void );
|
|
virtual void PaintBackground( void );
|
|
virtual void Paint( void );
|
|
|
|
void GetCallerPosition( const Vector &vecDelta, float flRadius, float *xpos, float *ypos, float *flRotation );
|
|
void SetPlayer( C_TFPlayer *pPlayer, float flDuration, Vector &vecOffset );
|
|
static void AddMedicCaller( C_TFPlayer *pPlayer, float flDuration, Vector &vecOffset );
|
|
|
|
private:
|
|
IMaterial *m_pArrowMaterial;
|
|
float m_flRemoveAt;
|
|
Vector m_vecOffset;
|
|
CHandle<C_TFPlayer> m_hPlayer;
|
|
int m_iDrawArrow;
|
|
bool m_bOnscreen;
|
|
};
|
|
|
|
#endif // TF_HUD_MEDICCALLERS_H
|