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>
98 lines
2.2 KiB
C++
98 lines
2.2 KiB
C++
// DlgDuenAObject.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "worldcreator.h"
|
|
#include "DlgDuenAObject.h"
|
|
#include "MainFrm.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgDuenAObject dialog
|
|
|
|
|
|
CDlgDuenAObject::CDlgDuenAObject(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CDlgDuenAObject::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CDlgDuenAObject)
|
|
m_fDelay = 0.0f;
|
|
m_iLeaf = 0;
|
|
m_iLoopNum = 0;
|
|
m_strObject = _T("");
|
|
m_strPosition = _T("");
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CDlgDuenAObject::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CDlgDuenAObject)
|
|
DDX_Text(pDX, IDC_DELAYEDIT, m_fDelay);
|
|
DDX_Text(pDX, IDC_LEAFEDIT, m_iLeaf);
|
|
DDX_Text(pDX, IDC_LOOPNUMEDIT, m_iLoopNum);
|
|
DDX_Text(pDX, IDC_OBJECTEDIT, m_strObject);
|
|
DDX_Text(pDX, IDC_POSEDIT, m_strPosition);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CDlgDuenAObject, CDialog)
|
|
//{{AFX_MSG_MAP(CDlgDuenAObject)
|
|
ON_BN_CLICKED(IDC_FILESEARCH, OnFilesearch)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgDuenAObject message handlers
|
|
|
|
void CDlgDuenAObject::OnOK()
|
|
{
|
|
// TODO: Add extra validation here
|
|
UpdateData(TRUE);
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
void CDlgDuenAObject::OnFilesearch()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
char str[] = "Gem ÆÄÀÏ(*.Gem) |*.Gem| ¸ðµçÆÄÀÏ(*.*)|*.*||";
|
|
CString strFilter = str;
|
|
|
|
CFileDialog filedia(TRUE,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,strFilter,this);
|
|
filedia.DoModal();
|
|
m_strObject = filedia.GetFileName();
|
|
UpdateData(FALSE);
|
|
}
|
|
|
|
BOOL CDlgDuenAObject::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
UpdateData(TRUE);
|
|
// TODO: Add extra initialization here
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
/*
|
|
void CDlgDuenAObject::OnPicking()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
m_bPick = (m_bPick == TRUE) ? FALSE : TRUE;
|
|
CMainFrame *mf=(CMainFrame*)AfxGetApp()->m_pMainWnd;
|
|
|
|
if(m_bPick == TRUE)
|
|
{
|
|
mf->m_PickMode = 96;
|
|
}
|
|
else
|
|
{
|
|
mf->m_PickMode = -1;
|
|
}
|
|
}
|
|
*/ |