Team Fortress 2 Source Code as on 22/4/2020
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.

76 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef OPTTEXTURES_H
  7. #define OPTTEXTURES_H
  8. #pragma once
  9. class COPTTextures : public CPropertyPage
  10. {
  11. DECLARE_DYNCREATE( COPTTextures )
  12. public:
  13. //=========================================================================
  14. //
  15. // Construction/Deconstruction
  16. //
  17. COPTTextures();
  18. ~COPTTextures();
  19. //=========================================================================
  20. //
  21. // Dialog Data
  22. //
  23. //{{AFX_DATA(COPTTextures)
  24. enum { IDD = IDD_OPTIONS_TEXTURES };
  25. CListBox m_TextureFiles;
  26. CSliderCtrl m_cBrightness;
  27. CListBox m_MaterialExcludeList;
  28. //}}AFX_DATA
  29. //=========================================================================
  30. //
  31. // Overrides
  32. // ClassWizard generate virtual function overrides
  33. //
  34. //{{AFX_VIRTUAL(COPTTextures)
  35. public:
  36. virtual BOOL OnApply();
  37. BOOL OnSetActive( void );
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. BOOL m_bDeleted;
  44. CGameConfig *m_pMaterialConfig; // copy of the current gaming config
  45. BOOL BrowseForFolder( char *pszTitle, char *pszDirectory );
  46. void MaterialExcludeUpdate( void );
  47. //=========================================================================
  48. //
  49. // Generated message map functions
  50. //
  51. //{{AFX_MSG(COPTTextures)
  52. virtual BOOL OnInitDialog();
  53. afx_msg void OnExtract();
  54. afx_msg void OnAddtexfile();
  55. afx_msg void OnRemovetexfile();
  56. afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  57. afx_msg void OnAddtexfile2();
  58. afx_msg void OnMaterialExcludeAdd( void );
  59. afx_msg void OnMaterialExcludeRemove( void );
  60. afx_msg void OnMaterialExcludeListSel( void );
  61. //}}AFX_MSG
  62. DECLARE_MESSAGE_MAP()
  63. };
  64. #endif // OPTTEXTURES_H