1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/game/client/hud_vehicle.h
2013-06-26 15:22:04 -07:00

42 lines
953 B
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef HUD_CROSSHAIR_H
#define HUD_CROSSHAIR_H
#ifdef _WIN32
#pragma once
#endif
#include "hudelement.h"
#include <vgui_controls/Panel.h>
namespace vgui
{
class IScheme;
};
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class CHudVehicle : public CHudElement, public vgui::Panel
{
DECLARE_CLASS_SIMPLE( CHudVehicle, vgui::Panel );
public:
CHudVehicle( const char *pElementName );
virtual bool ShouldDraw();
virtual void ApplySchemeSettings( vgui::IScheme *scheme );
virtual void Paint( void );
private:
IClientVehicle *GetLocalPlayerVehicle();
};
#endif // HUD_CROSSHAIR_H