76 lines
1.7 KiB
C++
76 lines
1.7 KiB
C++
#include "stdafx.h"
|
|
|
|
#include "SUIFulldownItemDropWnd.h"
|
|
#include "SGameManager.h"
|
|
|
|
bool SUIFulldownItemDropWnd::InitControls( KPoint kPos )
|
|
{
|
|
// 숫자만 입력
|
|
// KUIControlEdit* pEdit = ( KUIControlEdit* )GetChild( "input_edit" );
|
|
// if( pEdit )
|
|
// {
|
|
// pEdit->SetOnlyNumber(true);
|
|
// pEdit->SetLimitation( c_nInputNumberLimit );
|
|
// }
|
|
// SetCustomMovingRect( KRect(0, 0, 224, 20) );
|
|
|
|
// 버튼 클릭 영역
|
|
//SetValidRect( "input_ok", KRect(0,0,-c_nButtonClickArea,0) );
|
|
//SetValidRect( "input_cancel", KRect(c_nButtonClickArea,0,0,0) );
|
|
|
|
return SUIWnd::InitControls(kPos);
|
|
}
|
|
|
|
bool SUIFulldownItemDropWnd::InitData( bool bReload )
|
|
{
|
|
// m_nAllValue = 0;
|
|
// m_RequestWindow = SIMSG_TOGGLE_UIWINDOW::UIWINDOW_INPUTNUMBER;
|
|
|
|
return SUIWnd::InitData(bReload);
|
|
}
|
|
|
|
void SUIFulldownItemDropWnd::PumpUpMessage( LPCSTR lpszControlID, DWORD nMessage, DWORD lparam, DWORD wparam )
|
|
{
|
|
switch(nMessage)
|
|
{
|
|
case KUI_MESSAGE::KBUTTON_CLICK:
|
|
if( !::_stricmp( lpszControlID, "button01" ) )
|
|
{
|
|
}
|
|
if( !::_stricmp( lpszControlID, "button02" ) )
|
|
{
|
|
}
|
|
break;
|
|
}
|
|
|
|
SUIWnd::PumpUpMessage( lpszControlID, nMessage, lparam, wparam );
|
|
}
|
|
|
|
void SUIFulldownItemDropWnd::ProcMsgAtStatic( SGameMessage* pMsg )
|
|
{
|
|
switch(pMsg->nType)
|
|
{
|
|
case MSG_SCRIPT_SHOW_WINDOW:
|
|
{
|
|
}
|
|
break;
|
|
case IMSG_UI_REQ_INPUTNUMBER:
|
|
{
|
|
}
|
|
break;
|
|
case IMSG_UI_MOVE:
|
|
{
|
|
SIMSG_UI_MOVE* pMoveMsg = ( SIMSG_UI_MOVE* )pMsg;
|
|
MovePos( pMoveMsg->m_nX, pMoveMsg->m_nY );
|
|
pMsg->bUse = true;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
|
|
void SUIFulldownItemDropWnd::OnKillFocusNotify()
|
|
{
|
|
//포커스 잃었을때는 인벤토리의 풀다운 윈도우를 꺼준다 -N4-
|
|
m_pGameManager->PostMsgAtDynamic( new SIMSG_SHOW_UIWINDOW( SIMSG_TOGGLE_UIWINDOW::UIWINDOW_FULLDOWN_ITEMDROP, false ) );
|
|
}
|