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.

38 lines
1001 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TF_HUD_MINIGAME_H
  7. #define TF_HUD_MINIGAME_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "hud.h"
  12. #include "hudelement.h"
  13. #include <vgui_controls/EditablePanel.h>
  14. #include "tf_logic_halloween_2014.h"
  15. //-----------------------------------------------------------------------------
  16. // Purpose:
  17. //-----------------------------------------------------------------------------
  18. class CHudMiniGame : public CHudElement, public vgui::EditablePanel
  19. {
  20. DECLARE_CLASS_SIMPLE( CHudMiniGame, vgui::EditablePanel );
  21. public:
  22. CHudMiniGame( const char *pElementName );
  23. virtual void ApplySchemeSettings( vgui::IScheme *scheme ) OVERRIDE;
  24. virtual bool ShouldDraw( void ) OVERRIDE;
  25. virtual void OnTick() OVERRIDE;
  26. private:
  27. CTFMiniGame *m_pActiveMinigame;
  28. char m_szResFilename[MAX_PATH];
  29. };
  30. #endif // TF_HUD_MINIGAME_H