MMXSavingOptionsDlg.cpp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. // MMXSavingOptionsDlg.cpp: Implementierungsdatei
  17. //
  18. #include "stdafx.h"
  19. #include "finalsun.h"
  20. #include "MMXSavingOptionsDlg.h"
  21. #include "variables.h"
  22. #ifdef _DEBUG
  23. #define new DEBUG_NEW
  24. #undef THIS_FILE
  25. static char THIS_FILE[] = __FILE__;
  26. #endif
  27. /////////////////////////////////////////////////////////////////////////////
  28. // Dialogfeld CMMXSavingOptionsDlg
  29. CMMXSavingOptionsDlg::CMMXSavingOptionsDlg(CWnd* pParent /*=NULL*/)
  30. : CDialog(CMMXSavingOptionsDlg::IDD, pParent)
  31. {
  32. //{{AFX_DATA_INIT(CMMXSavingOptionsDlg)
  33. m_Description = _T("");
  34. m_AirWar = FALSE;
  35. m_Cooperative = FALSE;
  36. m_Duel = FALSE;
  37. m_Maxplayers = 0;
  38. m_Meatgrind = FALSE;
  39. m_MegaWealth = FALSE;
  40. m_MinPlayers = 0;
  41. m_NavalWar = FALSE;
  42. m_NukeWar = FALSE;
  43. m_Standard = TRUE;
  44. //}}AFX_DATA_INIT
  45. m_Description=Map->GetIniFile().sections["Basic"].values["Name"];
  46. }
  47. void CMMXSavingOptionsDlg::DoDataExchange(CDataExchange* pDX)
  48. {
  49. CDialog::DoDataExchange(pDX);
  50. //{{AFX_DATA_MAP(CMMXSavingOptionsDlg)
  51. DDX_Text(pDX, IDC_DESCRIPTION, m_Description);
  52. DDX_Check(pDX, IDC_AIRWAR, m_AirWar);
  53. DDX_Check(pDX, IDC_COOPERATIVE, m_Cooperative);
  54. DDX_Check(pDX, IDC_DUEL, m_Duel);
  55. DDX_CBIndex(pDX, IDC_MAXPLAYERS, m_Maxplayers);
  56. DDX_Check(pDX, IDC_MEATGRIND, m_Meatgrind);
  57. DDX_Check(pDX, IDC_MEGAWEALTH, m_MegaWealth);
  58. DDX_CBIndex(pDX, IDC_MINPLAYERS, m_MinPlayers);
  59. DDX_Check(pDX, IDC_NAVALWAR, m_NavalWar);
  60. DDX_Check(pDX, IDC_NUKEWAR, m_NukeWar);
  61. DDX_Check(pDX, IDC_STANDARD, m_Standard);
  62. //}}AFX_DATA_MAP
  63. }
  64. BEGIN_MESSAGE_MAP(CMMXSavingOptionsDlg, CDialog)
  65. //{{AFX_MSG_MAP(CMMXSavingOptionsDlg)
  66. // HINWEIS: Der Klassen-Assistent fügt hier Zuordnungsmakros für Nachrichten ein
  67. //}}AFX_MSG_MAP
  68. END_MESSAGE_MAP()
  69. /////////////////////////////////////////////////////////////////////////////
  70. // Behandlungsroutinen für Nachrichten CMMXSavingOptionsDlg