Counter Strike : Global Offensive Source Code
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.

41 lines
934 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef HUD_CROSSHAIR_H
  8. #define HUD_CROSSHAIR_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "hudelement.h"
  13. #include <vgui_controls/Panel.h>
  14. namespace vgui
  15. {
  16. class IScheme;
  17. };
  18. //-----------------------------------------------------------------------------
  19. // Purpose:
  20. //-----------------------------------------------------------------------------
  21. class CHudVehicle : public CHudElement, public vgui::Panel
  22. {
  23. DECLARE_CLASS_SIMPLE( CHudVehicle, vgui::Panel );
  24. public:
  25. explicit CHudVehicle( const char *pElementName );
  26. virtual bool ShouldDraw();
  27. virtual void ApplySchemeSettings( vgui::IScheme *scheme );
  28. virtual void Paint( void );
  29. private:
  30. IClientVehicle *GetLocalPlayerVehicle();
  31. };
  32. #endif // HUD_CROSSHAIR_H