summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_vgui_video.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/tf_vgui_video.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/vgui/tf_vgui_video.h')
-rw-r--r--game/client/tf/vgui/tf_vgui_video.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/game/client/tf/vgui/tf_vgui_video.h b/game/client/tf/vgui/tf_vgui_video.h
new file mode 100644
index 0000000..63b93e0
--- /dev/null
+++ b/game/client/tf/vgui/tf_vgui_video.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: VGUI panel which can play back video, in-engine
+//
+//=============================================================================
+
+#ifndef TF_VGUI_VIDEO_H
+#define TF_VGUI_VIDEO_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "vgui_video.h"
+
+class CTFVideoPanel : public VideoPanel
+{
+ DECLARE_CLASS_SIMPLE( CTFVideoPanel, VideoPanel );
+public:
+
+ CTFVideoPanel( vgui::Panel *parent, const char *panelName );
+ ~CTFVideoPanel();
+
+ virtual void OnClose();
+ virtual void OnKeyCodePressed( vgui::KeyCode code ){}
+ virtual void ApplySettings( KeyValues *inResourceData );
+
+ virtual void GetPanelPos( int &xpos, int &ypos );
+ virtual void Shutdown();
+
+ float GetStartDelay(){ return m_flStartAnimDelay; }
+ float GetEndDelay(){ return m_flEndAnimDelay; }
+
+protected:
+ virtual void ReleaseVideo();
+ virtual void OnVideoOver();
+
+private:
+ float m_flStartAnimDelay;
+ float m_flEndAnimDelay;
+};
+
+#endif // TF_VGUI_VIDEO_H