📄 munpawareicongriddialog.cpp
字号:
// MunpaWareIconGridDialog.cpp: implementation of the CMunpaWareIconGridDialog class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MunpaWareIconGridDialog.h"
#include "Gamein.h"
#include "MunpaManager.h"
#include "ItemManager.h"
#include "MunpaDialog.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMunpaWareIconGridDialog::CMunpaWareIconGridDialog()
{
m_type = WT_MUNPAWAREICONGRIDDIALOG;
m_nIconType = WT_ITEM; //ÀÌ ±×¸®µå´ÙÀ̾ó·Î±×¿¡¼ ´Ù·ê ¾ÆÀÌÅÛ Á¾·ù
}
CMunpaWareIconGridDialog::~CMunpaWareIconGridDialog()
{
}
void CMunpaWareIconGridDialog::InitDialog(LONG x, LONG y, WORD wid, WORD hei, cImage * basicImage, WORD col, WORD row, LONG ID)
{
cIconGridDialog::InitDialog(x, y, wid, hei, basicImage, col, row, ID);
}
void CMunpaWareIconGridDialog::SetActive(BOOL val)
{
if( m_bDisable ) return;
if(GAMEIN->IsGameInAcked())
{
if(val == FALSE && m_bActive == TRUE)
{
MSG_DWORD2 msg;
msg.Category = MP_ITEM;
msg.Protocol = MP_ITEM_MUNPA_WAREHOUSE_LEAVE;
msg.dwObjectID = HEROID;
msg.dwData1 = GAMEIN->GetMunpaDialog()->GetMunpaID();
msg.dwData2 = m_TabNum;
NETWORK->Send(&msg, sizeof(msg));
RemoveAll();
}
else if(val == TRUE && m_bActive == FALSE)
{
if(MUNPAMGR->CanUseWareHouse(m_TabNum) == FALSE)
{
MUNPAMGR->NoAuthority();
}
else
MUNPAMGR->MunpaWarehouseInfoSyn(GAMEIN->GetMunpaDialog()->GetMunpaID(), m_TabNum);
}
}
cIconGridDialog::SetActiveRecursive(val);
}
void CMunpaWareIconGridDialog::RemoveAll()
{
for(int i = 0 ; i < m_nRow*m_nCol ; i++)
{
if(m_pIconGridCell[i].icon)
{
ITEMMGR->ItemDelete((CItem*)m_pIconGridCell[i].icon);
m_pIconGridCell[i].icon = NULL;
m_pIconGridCell[i].use = 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -