DlgChooseTextureType.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* Copyright (c) 2002-2012 Croteam Ltd.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of version 2 of the GNU General Public License as published by
  4. the Free Software Foundation
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. // DlgChooseTextureType.cpp : implementation file
  13. //
  14. #include "StdH.h"
  15. #include "DlgChooseTextureType.h"
  16. #ifdef _DEBUG
  17. #undef new
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CDlgChooseTextureType dialog
  24. CDlgChooseTextureType::CDlgChooseTextureType(CWnd* pParent /*=NULL*/)
  25. : CDialog(CDlgChooseTextureType::IDD, pParent)
  26. {
  27. //{{AFX_DATA_INIT(CDlgChooseTextureType)
  28. // NOTE: the ClassWizard will add member initialization here
  29. //}}AFX_DATA_INIT
  30. }
  31. void CDlgChooseTextureType::DoDataExchange(CDataExchange* pDX)
  32. {
  33. CDialog::DoDataExchange(pDX);
  34. //{{AFX_DATA_MAP(CDlgChooseTextureType)
  35. // NOTE: the ClassWizard will add DDX and DDV calls here
  36. //}}AFX_DATA_MAP
  37. }
  38. BEGIN_MESSAGE_MAP(CDlgChooseTextureType, CDialog)
  39. //{{AFX_MSG_MAP(CDlgChooseTextureType)
  40. ON_BN_CLICKED(ID_ANIMATED_TEXTURE, OnAnimatedTexture)
  41. ON_BN_CLICKED(ID_EFFECT_TEXTURE, OnEffectTexture)
  42. ON_BN_CLICKED(ID_NORMAL_TEXTURE, OnNormalTexture)
  43. //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CDlgChooseTextureType message handlers
  47. void CDlgChooseTextureType::OnNormalTexture()
  48. {
  49. EndDialog( 0);
  50. }
  51. void CDlgChooseTextureType::OnAnimatedTexture()
  52. {
  53. EndDialog( 1);
  54. }
  55. void CDlgChooseTextureType::OnEffectTexture()
  56. {
  57. EndDialog( 2);
  58. }
  59. void CDlgChooseTextureType::OnCancel()
  60. {
  61. EndDialog( -1);
  62. }