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:
88
GameTools/WORLDCREATOR/PageGCMDSEffectInfo.cpp
Normal file
88
GameTools/WORLDCREATOR/PageGCMDSEffectInfo.cpp
Normal file
@@ -0,0 +1,88 @@
|
||||
// PageGCMDSEffectInfo.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "worldcreator.h"
|
||||
#include "PageGCMDSEffectInfo.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPageGCMDSEffectInfo property page
|
||||
|
||||
IMPLEMENT_DYNCREATE(CPageGCMDSEffectInfo, CPropertyPage)
|
||||
|
||||
CPageGCMDSEffectInfo::CPageGCMDSEffectInfo() : CPropertyPage(CPageGCMDSEffectInfo::IDD)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CPageGCMDSEffectInfo)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
CPageGCMDSEffectInfo::~CPageGCMDSEffectInfo()
|
||||
{
|
||||
}
|
||||
|
||||
void CPageGCMDSEffectInfo::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CPropertyPage::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CPageGCMDSEffectInfo)
|
||||
DDX_Control(pDX, IDC_LIST_EFFECTINFO, m_ctrlEffectInfoList);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CPageGCMDSEffectInfo, CPropertyPage)
|
||||
//{{AFX_MSG_MAP(CPageGCMDSEffectInfo)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPageGCMDSEffectInfo message handlers
|
||||
|
||||
void CPageGCMDSEffectInfo::UpdateDataByGCMDS( CZ3DGCMDS* pGCMDS )
|
||||
{
|
||||
//char szTmp[100];
|
||||
const char** aszEffectInfo;
|
||||
|
||||
m_ctrlEffectInfoList.DeleteAllItems();
|
||||
|
||||
long lCount = pGCMDS->GetEffectInfoList( aszEffectInfo );
|
||||
|
||||
for( int i = 0; i < lCount; ++i )
|
||||
{
|
||||
m_ctrlEffectInfoList.InsertItem( i, aszEffectInfo[i] );
|
||||
|
||||
/*sprintf( szTmp, "%f %f %f",
|
||||
apEffectInfo[i]->vPos.x,
|
||||
apEffectInfo[i]->vPos.y,
|
||||
apEffectInfo[i]->vPos.z );
|
||||
m_ctrlEffectInfoList.SetItemText( i, 2, szTmp );
|
||||
|
||||
sprintf( szTmp, "%f %f %f %f",
|
||||
apEffectInfo[i]->qRot.x,
|
||||
apEffectInfo[i]->qRot.y,
|
||||
apEffectInfo[i]->qRot.z,
|
||||
apEffectInfo[i]->qRot.w );
|
||||
m_ctrlEffectInfoList.SetItemText( i, 3, szTmp );*/
|
||||
}
|
||||
}
|
||||
|
||||
BOOL CPageGCMDSEffectInfo::OnInitDialog()
|
||||
{
|
||||
CPropertyPage::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
DWORD dwExtStyle;
|
||||
dwExtStyle = m_ctrlEffectInfoList.GetExtendedStyle();
|
||||
dwExtStyle |= LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES;
|
||||
m_ctrlEffectInfoList.SetExtendedStyle( dwExtStyle );
|
||||
m_ctrlEffectInfoList.InsertColumn( 0, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>", LVCFMT_LEFT, 350 );
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
Reference in New Issue
Block a user