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.

79 lines
2.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TF_HUD_OBJECTIVESTATUS_H
  8. #define TF_HUD_OBJECTIVESTATUS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tf_controls.h"
  13. #include "tf_imagepanel.h"
  14. #include "tf_hud_flagstatus.h"
  15. #include "tf_hud_escort.h"
  16. #include "tf_hud_training.h"
  17. #include "hud_controlpointicons.h"
  18. #include "GameEventListener.h"
  19. #define MAX_BOSS_STUN_SKILL_SHOTS 3
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Parent panel for the various objective displays
  22. //-----------------------------------------------------------------------------
  23. class CTFHudPasstime;
  24. class CTFHudObjectiveStatus : public CHudElement, public vgui::EditablePanel
  25. {
  26. DECLARE_CLASS_SIMPLE( CTFHudObjectiveStatus, vgui::EditablePanel );
  27. public:
  28. CTFHudObjectiveStatus( const char *pElementName );
  29. virtual void ApplySchemeSettings( vgui::IScheme *pScheme );
  30. virtual void Reset();
  31. virtual void Think();
  32. virtual bool ShouldDraw() OVERRIDE;
  33. virtual int GetRenderGroupPriority( void ) { return 60; } // higher than build menus
  34. CControlPointProgressBar *GetControlPointProgressBar( void );
  35. //=============================================================================
  36. // HPE_BEGIN
  37. // [msmith] Functions for training stuff.
  38. //=============================================================================
  39. void SetTrainingText( char *msg);
  40. void SetTrainingObjective (char *obj);
  41. //=============================================================================
  42. // HPE_END
  43. //=============================================================================
  44. private:
  45. void SetVisiblePanels( void );
  46. private:
  47. float m_flNextThink;
  48. CTFHudFlagObjectives *m_pFlagPanel;
  49. CHudControlPointIcons *m_pControlPointIconsPanel;
  50. CControlPointProgressBar *m_pControlPointProgressBar;
  51. CTFHudEscort *m_pEscortPanel;
  52. CTFHudMultipleEscort *m_pMultipleEscortPanel;
  53. class CTFHUDRobotDestruction *m_pRobotDestructionPanel;
  54. CTFHudPasstime *m_pHudPasstime;
  55. //=============================================================================
  56. // HPE_BEGIN:
  57. // [msmith] HUD for training stuff.
  58. //=============================================================================
  59. CTFHudTraining *m_pTrainingPanel;
  60. //=============================================================================
  61. // HPE_END
  62. //=============================================================================
  63. };
  64. #endif // TF_HUD_OBJECTIVESTATUS_H