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.

50 lines
1.6 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #include "matsys_controls/assetpicker.h"
  7. // NOTE: This has to be the last file included!
  8. #include "tier0/memdbgon.h"
  9. using namespace vgui;
  10. //-----------------------------------------------------------------------------
  11. //
  12. // Asset Picker with no preview
  13. //
  14. //-----------------------------------------------------------------------------
  15. //-----------------------------------------------------------------------------
  16. // Purpose: Constructor
  17. //-----------------------------------------------------------------------------
  18. CAssetPicker::CAssetPicker( vgui::Panel *pParent, const char *pAssetType,
  19. const char *pExt, const char *pSubDir, const char *pTextType ) :
  20. BaseClass( pParent, pAssetType, pExt, pSubDir, pTextType )
  21. {
  22. CreateStandardControls( this );
  23. LoadControlSettingsAndUserConfig( "resource/assetpicker.res" );
  24. }
  25. //-----------------------------------------------------------------------------
  26. //
  27. // Purpose: Modal picker frame
  28. //
  29. //-----------------------------------------------------------------------------
  30. CAssetPickerFrame::CAssetPickerFrame( vgui::Panel *pParent, const char *pTitle,
  31. const char *pAssetType, const char *pExt, const char *pSubDir, const char *pTextType ) :
  32. BaseClass( pParent )
  33. {
  34. SetAssetPicker( new CAssetPicker( this, pAssetType, pExt, pSubDir, pTextType ) );
  35. LoadControlSettingsAndUserConfig( "resource/assetpickerframe.res" );
  36. SetTitle( pTitle, false );
  37. }