Restructure repository to include all source folders
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>
This commit is contained in:
80
GameTools/WORLDCREATOR/DlgEffectLoad.cpp
Normal file
80
GameTools/WORLDCREATOR/DlgEffectLoad.cpp
Normal file
@@ -0,0 +1,80 @@
|
||||
// DlgEffectLoad.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "worldcreator.h"
|
||||
#include "DlgEffectLoad.h"
|
||||
#include "BaseDataDefine.h"
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgEffectLoad dialog
|
||||
|
||||
|
||||
CDlgEffectLoad::CDlgEffectLoad(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CDlgEffectLoad::IDD, pParent)
|
||||
{
|
||||
m_bEffectLoad = TRUE;
|
||||
//{{AFX_DATA_INIT(CDlgEffectLoad)
|
||||
m_name = _T("");
|
||||
//}}AFX_DATA_INIT
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CDlgEffectLoad::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CDlgEffectLoad)
|
||||
DDX_Control(pDX, IDC_OK, m_ok);
|
||||
DDX_Control(pDX, IDC_CANCLE, m_cancle);
|
||||
DDX_Control(pDX, IDC_BUTTON1, m_load);
|
||||
DDX_Text(pDX, IDC_EDIT1, m_name);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDlgEffectLoad, CDialog)
|
||||
//{{AFX_MSG_MAP(CDlgEffectLoad)
|
||||
ON_BN_CLICKED(IDC_BUTTON1, OnEffectLoad)
|
||||
ON_EN_CHANGE(IDC_EDIT1, OnChangeEffectName)
|
||||
ON_COMMAND(MENU_EFFECT_LOAD, OnEffectLoad)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgEffectLoad message handlers
|
||||
|
||||
void CDlgEffectLoad::OnEffectLoad()
|
||||
{
|
||||
// TODO: Add your control notification handler code here
|
||||
//UpdateData();
|
||||
CString strFilter = EFFFILE;
|
||||
CFileDialog filedia(TRUE,EFFECTSCRIPTPATH,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,strFilter,this);
|
||||
filedia.m_ofn.lpstrInitialDir = EFFECTSCRIPTPATH;
|
||||
filedia.DoModal();
|
||||
CString filename=filedia.GetFileName();
|
||||
if(filename!="")
|
||||
{
|
||||
|
||||
m_EffectFileName=filename;
|
||||
m_bEffectLoad = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CDlgEffectLoad::OnChangeEffectName()
|
||||
{
|
||||
// TODO: If this is a RICHEDIT control, the control will not
|
||||
// send this notification unless you override the CDialog::OnInitDialog()
|
||||
// function and call CRichEditCtrl().SetEventMask()
|
||||
// with the ENM_CHANGE flag ORed into the mask.
|
||||
|
||||
// TODO: Add your control notification handler code here
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user