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>
83 lines
1.6 KiB
C++
83 lines
1.6 KiB
C++
// ItemInfoDlg.cpp : 구현 파일입니다.
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "GameLogAnalyzer.h"
|
|
#include "ItemInfoDlg.h"
|
|
#include "PrintLog.h"
|
|
|
|
#include "GlobalFunctions.h"
|
|
|
|
|
|
// CItemInfoDlg 대화 상자입니다.
|
|
|
|
IMPLEMENT_DYNAMIC(CItemInfoDlg, CDialog)
|
|
CItemInfoDlg::CItemInfoDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CItemInfoDlg::IDD, pParent)
|
|
{
|
|
}
|
|
|
|
CItemInfoDlg::~CItemInfoDlg()
|
|
{
|
|
}
|
|
|
|
void CItemInfoDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_ITEM_LIST, m_ItemList);
|
|
DDX_Control(pDX, IDC_ITEMINFOEDIT, m_ItemInfo);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CItemInfoDlg, CDialog)
|
|
ON_LBN_DBLCLK(IDC_ITEM_LIST, OnLbnDblclkItemList)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CItemInfoDlg 메시지 처리기입니다.
|
|
|
|
bool CItemInfoDlg::Initialize(Item::CItemContainer* lpItemContainer)
|
|
{
|
|
m_lpItemContainer = lpItemContainer;
|
|
return true;
|
|
}
|
|
|
|
|
|
BOOL CItemInfoDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
// TODO: 여기에 추가 초기화 작업을 추가합니다.
|
|
|
|
|
|
m_Font.CreatePointFont(90, "굴림체");
|
|
SetFont(&m_Font);
|
|
|
|
m_ItemInfo.SetFont(&m_Font);
|
|
m_ItemList.SetFont(&m_Font);
|
|
|
|
|
|
if(m_lpItemContainer)
|
|
{
|
|
m_lpItemContainer->DumpItemInfo();
|
|
}
|
|
|
|
UpdateData(FALSE);
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다.
|
|
}
|
|
|
|
|
|
|
|
void CItemInfoDlg::OnLbnDblclkItemList()
|
|
{
|
|
int nIndex = m_ItemList.GetCurSel();
|
|
const Item::CItem* lpItem = static_cast<const Item::CItem*>(m_ItemList.GetItemDataPtr(nIndex));
|
|
|
|
if(NULL != lpItem)
|
|
{
|
|
CString ItemData = GetMyINIString("STRING_FOR_LOCALIZE", "ITEM_DETAIL_INFO");
|
|
GAMELOG::DetailInfo::ShowItemInfo(ItemData, lpItem);
|
|
}
|
|
} |