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.

44 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DOD_HUD_TNT_PICKUP_H
  8. #define DOD_HUD_TNT_PICKUP_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/EditablePanel.h>
  13. #include "IconPanel.h"
  14. //-----------------------------------------------------------------------------
  15. //
  16. //-----------------------------------------------------------------------------
  17. class CDODHudTNTPickupPanel : public CHudElement, public vgui::EditablePanel
  18. {
  19. public:
  20. DECLARE_CLASS_SIMPLE( CDODHudTNTPickupPanel, vgui::EditablePanel );
  21. CDODHudTNTPickupPanel( const char *pElementName );
  22. virtual void Init();
  23. virtual void VidInit();
  24. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  25. virtual void OnScreenSizeChanged( int iOldWide, int iOldTall );
  26. virtual void FireGameEvent( IGameEvent *event );
  27. virtual void OnThink( void );
  28. private:
  29. bool m_bInitLayout;
  30. CIconPanel *m_pTNTImage;
  31. vgui::Panel *m_pBackground;
  32. vgui::Label *m_pPickupLabel;
  33. float m_flShowUntilTime;
  34. };
  35. #endif // DOD_HUD_TNT_PICKUP_H