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>
80 lines
1.9 KiB
C++
80 lines
1.9 KiB
C++
// DlgDuenEffect.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "worldcreator.h"
|
|
#include "DlgDuenEffect.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgDuenEffect dialog
|
|
|
|
|
|
CDlgDuenEffect::CDlgDuenEffect(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CDlgDuenEffect::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CDlgDuenEffect)
|
|
m_strEffectName = _T("");
|
|
m_iLeafIndex = 0;
|
|
m_strPosition = _T("");
|
|
m_fDelay = 0.0f;
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CDlgDuenEffect::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CDlgDuenEffect)
|
|
DDX_Text(pDX, IDC_EFFECTEDIT, m_strEffectName);
|
|
DDX_Text(pDX, IDC_LEAFEDIT, m_iLeafIndex);
|
|
DDX_Text(pDX, IDC_POSEDIT, m_strPosition);
|
|
DDX_Text(pDX, IDC_DELAYEDIT, m_fDelay);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CDlgDuenEffect, CDialog)
|
|
//{{AFX_MSG_MAP(CDlgDuenEffect)
|
|
ON_BN_CLICKED(IDC_FILESEARCH, OnFilesearch)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgDuenEffect message handlers
|
|
|
|
void CDlgDuenEffect::OnFilesearch()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
char str[] = "Esf ÆÄÀÏ(*.Esf) |*.Esf| ¸ðµçÆÄÀÏ(*.*)|*.*||";
|
|
CString strFilter = str;
|
|
|
|
CFileDialog filedia(TRUE,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,strFilter,this);
|
|
filedia.DoModal();
|
|
m_strEffectName = filedia.GetFileName();
|
|
UpdateData(FALSE);
|
|
|
|
}
|
|
|
|
void CDlgDuenEffect::OnOK()
|
|
{
|
|
// TODO: Add extra validation here
|
|
UpdateData(TRUE);
|
|
CDialog::OnOK();
|
|
}
|
|
|
|
BOOL CDlgDuenEffect::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
|
|
}
|