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.

42 lines
1000 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: VGUI panel which can play back video, in-engine
  4. //
  5. //=============================================================================
  6. #ifndef TF_VGUI_VIDEO_H
  7. #define TF_VGUI_VIDEO_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_video.h"
  12. class CTFVideoPanel : public VideoPanel
  13. {
  14. DECLARE_CLASS_SIMPLE( CTFVideoPanel, VideoPanel );
  15. public:
  16. CTFVideoPanel( vgui::Panel *parent, const char *panelName );
  17. ~CTFVideoPanel();
  18. virtual void OnClose();
  19. virtual void OnKeyCodePressed( vgui::KeyCode code ){}
  20. virtual void ApplySettings( KeyValues *inResourceData );
  21. virtual void GetPanelPos( int &xpos, int &ypos );
  22. virtual void Shutdown();
  23. float GetStartDelay(){ return m_flStartAnimDelay; }
  24. float GetEndDelay(){ return m_flEndAnimDelay; }
  25. protected:
  26. virtual void ReleaseVideo();
  27. virtual void OnVideoOver();
  28. private:
  29. float m_flStartAnimDelay;
  30. float m_flEndAnimDelay;
  31. };
  32. #endif // TF_VGUI_VIDEO_H