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>
79 lines
1.8 KiB
C++
79 lines
1.8 KiB
C++
// DlgCharacterEffect.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "worldcreator.h"
|
|
#include "DlgCharacterEffect.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgCharacterEffect dialog
|
|
|
|
|
|
CDlgCharacterEffect::CDlgCharacterEffect(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CDlgCharacterEffect::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CDlgCharacterEffect)
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CDlgCharacterEffect::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CDlgCharacterEffect)
|
|
DDX_Control(pDX, IDC_LIST_EFFECTFILELIST, m_EffectList);
|
|
DDX_Control(pDX, IDC_COMBO_ACTIONNAME, m_ActionList);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CDlgCharacterEffect, CDialog)
|
|
//{{AFX_MSG_MAP(CDlgCharacterEffect)
|
|
ON_LBN_DBLCLK(IDC_LIST_EFFECTFILELIST, OnDblclkListEffectfilelist)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgCharacterEffect message handlers
|
|
|
|
BOOL CDlgCharacterEffect::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
// TODO: Add extra initialization here
|
|
|
|
char strPath[256];
|
|
GetCurrentDirectory(256,strPath);
|
|
sprintf(strPath,"%s\\Effect\\",strPath);
|
|
|
|
char strPathAll[256];
|
|
sprintf(strPathAll,"%s*.eff",strPath);
|
|
|
|
WIN32_FIND_DATA wfd = {0};
|
|
HANDLE hFind = FindFirstFile(strPathAll, &wfd);
|
|
if(INVALID_HANDLE_VALUE == hFind)
|
|
return TRUE;
|
|
|
|
CString strFilePathname;
|
|
while(1)
|
|
{
|
|
m_EffectList.AddString(wfd.cFileName);
|
|
if(FindNextFile(hFind, &wfd)==FALSE)
|
|
break;
|
|
}
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CDlgCharacterEffect::OnDblclkListEffectfilelist()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
|
|
}
|