Counter Strike : Global Offensive Source Code
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.
 
 
 
 
 
 

59 lines
1.5 KiB

//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#ifndef TGAPICKER_H
#define TGAPICKER_H
#ifdef _WIN32
#pragma once
#endif
#include "matsys_controls/baseassetpicker.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CTGAPreviewPanel;
namespace vgui
{
class Splitter;
}
//-----------------------------------------------------------------------------
// Purpose: Base class for choosing raw assets
//-----------------------------------------------------------------------------
class CTGAPicker : public CBaseAssetPicker
{
DECLARE_CLASS_SIMPLE( CTGAPicker, CBaseAssetPicker );
public:
CTGAPicker( vgui::Panel *pParent );
virtual ~CTGAPicker();
private:
// Derived classes have this called when the previewed asset changes
virtual void OnSelectedAssetPicked( const char *pAssetName );
CTGAPreviewPanel *m_pTGAPreview;
vgui::Splitter *m_pPreviewSplitter;
};
//-----------------------------------------------------------------------------
// Purpose: Modal dialog for asset picker
//-----------------------------------------------------------------------------
class CTGAPickerFrame : public CBaseAssetPickerFrame
{
DECLARE_CLASS_SIMPLE( CTGAPickerFrame, CBaseAssetPickerFrame );
public:
CTGAPickerFrame( vgui::Panel *pParent, const char *pTitle );
};
#endif // TGAPICKER_H