Files
Leviathan/Client/Game/game/Interface/SUIFulldownTargetPlayerWnd.cpp
T
2026-06-01 12:46:52 +02:00

72 lines
1.9 KiB
C++

#include "stdafx.h"
#include "SUIFulldownTargetPlayerWnd.h"
#include "SUIDisplayInfo.h"
#include "GameDefine.h"
bool SUIFulldownTargetPlayerWnd::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 SUIFulldownTargetPlayerWnd::InitData( bool bReload )
{
// m_nAllValue = 0;
// m_RequestWindow = SIMSG_TOGGLE_UIWINDOW::UIWINDOW_INPUTNUMBER;
return SUIWnd::InitData(bReload);
}
void SUIFulldownTargetPlayerWnd::PumpUpMessage( LPCSTR lpszControlID, DWORD nMessage, DWORD lparam, DWORD wparam )
{
switch(nMessage)
{
case KUI_MESSAGE::KBUTTON_CLICK:
{
if( ::_stricmp( lpszControlID, "button01" ) == 0 ) {} //인삿말
if( ::_stricmp( lpszControlID, "button02" ) == 0 ) {} //귓말
if( ::_stricmp( lpszControlID, "button03" ) == 0 ) m_pDisplayInfo->UseMotion(ID_TRADE); //트레이드
if( ::_stricmp( lpszControlID, "button04" ) == 0 ) m_pDisplayInfo->UseMotion(ID_PARTY_INVITE); //파티초대
if( ::_stricmp( lpszControlID, "button05" ) == 0 ) {} //길드초대
if( ::_stricmp( lpszControlID, "button06" ) == 0 ) {} //친구등록
}
break;
}
SUIWnd::PumpUpMessage( lpszControlID, nMessage, lparam, wparam );
}
void SUIFulldownTargetPlayerWnd::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;
}
}