Team Fortress 2 Source Code as on 22/4/2020
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.

48 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DOD_HUD_PLAYERSTATUS_TNT_H
  8. #define DOD_HUD_PLAYERSTATUS_TNT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "dodcornercutpanel.h"
  13. #include "IconPanel.h"
  14. using namespace vgui;
  15. //-----------------------------------------------------------------------------
  16. // Purpose: FireSelect panel
  17. //-----------------------------------------------------------------------------
  18. class CDoDHudTNT : public CDoDCutEditablePanel
  19. {
  20. DECLARE_CLASS_SIMPLE( CDoDHudTNT, CDoDCutEditablePanel );
  21. public:
  22. CDoDHudTNT( vgui::Panel *parent, const char *name );
  23. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  24. virtual void ApplySettings( KeyValues *inResourceData );
  25. virtual void OnThink();
  26. virtual void SetVisible( bool state );
  27. private:
  28. CIconPanel *m_pIconTNT;
  29. CIconPanel *m_pIconTNT_Missing;
  30. bool m_bHasTNT;
  31. int m_iIconX;
  32. int m_iIconY;
  33. int m_iIconW;
  34. int m_iIconH;
  35. CPanelAnimationVar( float, m_flIconAlpha, "icon_alpha", "255" );
  36. };
  37. #endif // DOD_HUD_PLAYERSTATUS_TNT_H