Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
// 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();
|
|
}
|