Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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

//========= 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