// DialogCharacterLodDist.cpp : implementation file // #include "stdafx.h" #include "worldcreator.h" #include "DialogCharacterLodDist.h" #include "BaseDataDefine.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDialogCharacterLodDist dialog CDialogCharacterLodDist::CDialogCharacterLodDist(CWnd* pParent /*=NULL*/) : CDialog(CDialogCharacterLodDist::IDD, pParent) { //{{AFX_DATA_INIT(CDialogCharacterLodDist) m_fLodLevel0 = fCHARACTERLODLEVELDIST[0]; m_fLodLevel1 = fCHARACTERLODLEVELDIST[1]; m_fLodLevel2 = fCHARACTERLODLEVELDIST[2]; //}}AFX_DATA_INIT } void CDialogCharacterLodDist::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDialogCharacterLodDist) DDX_Text(pDX, IDC_LODLEVEL0, m_fLodLevel0); DDX_Text(pDX, IDC_LODLEVEL1, m_fLodLevel1); DDX_Text(pDX, IDC_LODLEVEL2, m_fLodLevel2); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDialogCharacterLodDist, CDialog) //{{AFX_MSG_MAP(CDialogCharacterLodDist) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDialogCharacterLodDist message handlers void CDialogCharacterLodDist::OnOK() { // TODO: Add extra validation here UpdateData(TRUE); fCHARACTERLODLEVELDIST[0] = m_fLodLevel0; fCHARACTERLODLEVELDIST[1] = m_fLodLevel1; fCHARACTERLODLEVELDIST[2] = m_fLodLevel2; // CDialog::OnOK(); }