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.

64 lines
1.8 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_HUD_PVE_WINPANEL_H
  8. #define TF_HUD_PVE_WINPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/EditablePanel.h>
  13. #include <game/client/iviewport.h>
  14. #include <vgui/IScheme.h>
  15. #include "hud.h"
  16. #include "hudelement.h"
  17. #include "tf_shareddefs.h"
  18. using namespace vgui;
  19. class CCreditDisplayPanel;
  20. class CTFPVEWinPanel : public EditablePanel, public CGameEventListener, public IViewPortPanel
  21. {
  22. private:
  23. DECLARE_CLASS_SIMPLE( CTFPVEWinPanel, EditablePanel );
  24. public:
  25. CTFPVEWinPanel( IViewPort *pViewPort );
  26. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  27. virtual void ApplySettings( KeyValues *inResourceData );
  28. virtual void FireGameEvent( IGameEvent * event );
  29. virtual void OnTick();
  30. virtual int GetRenderGroupPriority() { return 70; }
  31. virtual void SetParent( vgui::VPANEL parent ) { BaseClass::SetParent( parent ); }
  32. virtual const char *GetName( void ){ return PANEL_PVE_WIN; }
  33. virtual void SetData( KeyValues *data ){ return; }
  34. virtual void Reset();
  35. virtual void Update();
  36. virtual bool NeedsUpdate( void ) { return false; }
  37. virtual bool HasInputElements( void ) { return true; }
  38. virtual void ShowPanel( bool bShow ){ };
  39. vgui::VPANEL GetVPanel( void ) { return BaseClass::GetVPanel(); }
  40. virtual bool IsVisible() { return BaseClass::IsVisible(); }
  41. virtual GameActionSet_t GetPreferredActionSet() { return GAME_ACTION_SET_NONE; }
  42. private:
  43. vgui::ScalableImagePanel *m_pRespecBackground;
  44. vgui::EditablePanel *m_pRespecContainerPanel;
  45. vgui::Label *m_pRespecTextLabel;
  46. vgui::Label *m_pRespecCountLabel;
  47. bool m_bShouldBeVisible;
  48. };
  49. #endif //TF_HUD_PVE_WINPANEL_H