51 lines
1.6 KiB
C++
51 lines
1.6 KiB
C++
|
//====== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. =======
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#include "matsys_controls/assetpicker.h"
|
|||
|
|
|||
|
// NOTE: This has to be the last file included!
|
|||
|
#include "tier0/memdbgon.h"
|
|||
|
|
|||
|
|
|||
|
using namespace vgui;
|
|||
|
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
//
|
|||
|
// Asset Picker with no preview
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
// Purpose: Constructor
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
CAssetPicker::CAssetPicker( vgui::Panel *pParent, const char *pAssetType,
|
|||
|
const char *pExt, const char *pSubDir, const char *pTextType ) :
|
|||
|
BaseClass( pParent, pAssetType, pExt, pSubDir, pTextType )
|
|||
|
{
|
|||
|
CreateStandardControls( this );
|
|||
|
LoadControlSettingsAndUserConfig( "resource/assetpicker.res" );
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
//
|
|||
|
// Purpose: Modal picker frame
|
|||
|
//
|
|||
|
//-----------------------------------------------------------------------------
|
|||
|
CAssetPickerFrame::CAssetPickerFrame( vgui::Panel *pParent, const char *pTitle,
|
|||
|
const char *pAssetType, const char *pExt, const char *pSubDir, const char *pTextType ) :
|
|||
|
BaseClass( pParent )
|
|||
|
{
|
|||
|
SetAssetPicker( new CAssetPicker( this, pAssetType, pExt, pSubDir, pTextType ) );
|
|||
|
LoadControlSettingsAndUserConfig( "resource/assetpickerframe.res" );
|
|||
|
SetTitle( pTitle, false );
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|