summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/tf_vgui_video.h
blob: 63b93e0c9a0823b1862110a5a30ab77ce0e2aa6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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