BOOL CWndVendorConfirm::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { switch( nID ) { case IDOK: { CWndVendor* pWndVendor = (CWndVendor*)g_WndMng.GetWndBase( APP_VENDOR_REVISION ); if( pWndVendor ) { if( g_pPlayer->m_vtInfo.IsVendorOpen() ) pWndVendor->Destroy(); else g_DPlay.SendPVendorOpen( (const char*)m_strVendorName ); } Destroy(); } break; case IDCANCEL: CWndVendor* pWndVendor = (CWndVendor*)g_WndMng.GetWndBase( APP_VENDOR_REVISION ); if( pWndVendor && g_pPlayer->m_vtInfo.IsVendorOpen() == FALSE ) { CWndButton* pWndButton = (CWndButton*)pWndVendor->GetDlgItem( WIDC_OK ); pWndButton->SetVisible( TRUE ); } Destroy(); break; } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
void CWndGuideTextMgr::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); DelWndStyle(WBS_MOVE); AddWndStyle(WBS_TOPMOST); m_wndTitleBar.SetVisible( FALSE ); m_bVisible = FALSE; CWndText* pWndText; CWndButton* pWndButton; pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); m_Rect[0] = pWndText->GetWndRect(); pWndButton = (CWndButton*)GetDlgItem( WIDC_BACK ); m_Rect[1] = pWndButton->GetWndRect(); #if __VER >= 12 // __MOD_TUTORIAL pWndButton->SetVisible(FALSE); #endif pWndButton = (CWndButton*)GetDlgItem( WIDC_NEXT ); m_Rect[2] = pWndButton->GetWndRect(); m_Rect[3] = GetWndRect(); m_nCurrentVector = 0; m_VecGuideText.clear(); m_pTextureBG = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "GuideBG.tga" ), 0, TRUE ); }
void CWndOptWindow::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndButton* pWndEffect = (CWndButton*)GetDlgItem( WIDC_CHECK ); pWndEffect->SetCheck( g_Option.m_nWindowAlpha == 255 ? FALSE : TRUE); CWndButton* pWndButton[ 3 ]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nWindowEffect ]->SetCheck( TRUE ); /* pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_HIGH ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_MID ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_OBJECT_DISTANT_LOW ); pWndButton[ 0 ]->SetGroup( TRUE ); */ CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
//----------------------------------------------------------------------------- BOOL CWndMailRequestingBox::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { switch( nID ) { case WIDC_BUTTON_REQUEST: { ++m_nDestroyCounter; CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST ); if( pWndButton == NULL ) { break; } if( pWndButton->IsWindowEnabled() == FALSE ) { break; } g_DPlay.SendQueryMailBox(); m_timeWaitingRequest = g_tmCurrent + SEC( REQUEST_BUTTON_WAITING_TIME ); pWndButton->EnableWindow( FALSE ); break; } } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
BOOL CWndLvReqDown::OnDropIcon( LPSHORTCUT pShortcut, CPoint point ) { CItemElem* pTempElem; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId ); // 하락 상태가 된 아이템만 올릴 수 있다. if( pTempElem != NULL) { if(pTempElem->GetLevelDown() < 0) { if(m_pItemElem) m_pItemElem->SetExtra(0); m_pItemElem = pTempElem; m_pEItemProp = m_pItemElem->GetProp(); if(m_pEItemProp != NULL) { m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff ); } m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); pButton->EnableWindow(TRUE); } } return TRUE; }
BOOL CWndBlessingCancel::OnDropIcon( LPSHORTCUT pShortcut, CPoint point ) { CItemElem* pTempElem; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId ); if( g_xRandomOptionProperty->GetRandomOptionKind( pTempElem ) == CRandomOptionProperty::eBlessing && g_xRandomOptionProperty->GetRandomOptionSize( pTempElem->GetRandomOptItemId() )) { // 하락 상태가 된 아이템만 올릴 수 있다. if(pTempElem != NULL) { if(m_pItemElem) m_pItemElem->SetExtra(0); m_pItemElem = pTempElem; m_pEItemProp = m_pItemElem->GetProp(); m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START); pButton->EnableWindow(TRUE); LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_CHANGE ); if(m_pEItemProp != NULL) { m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff ); } } } else { g_WndMng.PutString( prj.GetText(TID_GAME_BLESSEDNESS_CANCEL), NULL, 0xffff0000 ); return FALSE; } return TRUE; }
BOOL CWndMessageBox::IsDisable( ) { CWndButton * pWndButton = (CWndButton*)GetDlgItem(IDOK); if( pWndButton && pWndButton->IsWindowEnabled( ) ) return TRUE; return FALSE; }
BOOL CWndVendor::Process() { #if __VER >= 11 // __MOD_VENDOR // 장사를 시작하면 리셋버튼은 보이지 않게 함 CWndButton* pButton = (CWndButton*)GetDlgItem( WIDC_RESET ); if(g_pPlayer->m_vtInfo.IsVendorOpen()) pButton->SetVisible( FALSE ); else pButton->SetVisible( TRUE ); #endif return TRUE; }
void CEventHandler::SetPriority(CWndControl* sender,CMainDlg* parent){ CWndComboBox* cmb = static_cast<CWndComboBox*> (sender); CWndDlg* dlgCtrlContainer = parent->m_controlDlg; CCharacter* m_char = parent->m_clsCurChar; if(m_char!=NULL){ m_char->m_iPriority = cmb->GetSelectedIndex(); CWndButton * btn = static_cast<CWndButton*> (dlgCtrlContainer->GetControl(L"btnPriority")); btn->SetEnabled(m_char->m_iPriority==1 || m_char->m_iPriority==2); m_char->serialize->SaveInfo(L"Priority",m_char->m_iPriority,TagType::Element,L"/Info"); } }
//----------------------------------------------------------------------------- void CWndMailRequestingBox::OnInitialUpdate( void ) { CWndNeuz::OnInitialUpdate(); DelWndStyle( WBS_MOVE ); CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST ); if( pWndButton ) { pWndButton->EnableWindow( FALSE ); } MoveParentCenter(); }
BOOL CWndOptWindow::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { CWndButton* pWndAlpha = (CWndButton*)GetDlgItem( WIDC_CHECK ); CWndButton* pWndEffect = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); switch( nID ) { case WIDC_CHECK: if( pWndAlpha->GetCheck() ) CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 128; else CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 255; case WIDC_RADIO1: break; } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
void CWndAwakening::OnLButtonDblClk( UINT nFlags, CPoint point ) { if(!m_pItemElem) return; CRect rect; LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC1 ); rect = wndCtrl->rect; if( rect.PtInRect( point ) ) { m_pItemElem->SetExtra(0); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); pButton->EnableWindow(FALSE); m_pItemElem = NULL; m_pEItemProp = NULL; m_pTexture = NULL; } }
void CWndOption::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); CWndButton* pWndAlpha = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); pWndAlpha->SetCheck( g_Option.m_nWindowAlpha == 255 ? FALSE : TRUE); CWndButton* pWndHelp = (CWndButton*)GetDlgItem( WIDC_CHECK2 ); pWndHelp->SetCheck( g_Option.m_nInstantHelp ); CWndButton* pWndButton[ 4 ]; pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nSlangWord ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO4 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO5 ); pWndButton[ 3 ] = (CWndButton*)GetDlgItem( WIDC_RADIO6 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nChatCommand ]->SetCheck( TRUE ); // ÀÎÅÍÆäÀ̽º ¹æ½Ä(±¸¹öÀüÀÌ µðÆúÆ®) pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO7 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO8 ); #ifdef __Y_INTERFACE_VER3 pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO12 ); #endif //__Y_INTERFACE_VER3 pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ g_Option.m_nInterface ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_RADIO9 ); pWndButton[ 1 ] = (CWndButton*)GetDlgItem( WIDC_RADIO10 ); pWndButton[ 2 ] = (CWndButton*)GetDlgItem( WIDC_RADIO11 ); pWndButton[ 0 ]->SetGroup( TRUE ); pWndButton[ *g_Option.m_pGuide ]->SetCheck( TRUE ); pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_CHECK4 ); if(pWndButton[ 0 ]) pWndButton[ 0 ]->SetCheck( g_Option.m_bCameraLock ); // ºñÇà½Ã ·Ñ¸µ È¿°ú. CWndButton* pWndRoll = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); pWndRoll->SetCheck( g_Option.m_bRollEffect ); #if __VER >= 11 // __ADD_ZOOMOPT CWndButton* pWndZoom = (CWndButton*)GetDlgItem( WIDC_CHECK5 ); pWndZoom->SetCheck(!g_Option.m_bZoomLimit); #endif CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
BOOL CCollectingWnd::SetButtonCaption(bool bIsStart) { #if __VER >= 11 // __SYS_COLLECTING CWndButton* pWndButton = (CWndButton*)GetDlgItem( WIDC_BUTTON1 ); if(bIsStart) pWndButton->SetTexture(m_pParentWnd->m_pApp->m_pd3dDevice, MakePath( DIR_THEME, _T( "ButtStop.bmp" )), TRUE ); else { if(::GetLanguage() == LANG_FRE) pWndButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButOk2.bmp" ) ), TRUE); else pWndButton->SetTexture(m_pParentWnd->m_pApp->m_pd3dDevice, MakePath( DIR_THEME, _T( "ButtStart.bmp" )), TRUE ); } #endif return true; }
//----------------------------------------------------------------------------- BOOL CWndMailRequestingBox::Process( void ) { if( m_timeWaitingRequest < g_tmCurrent ) { if( m_nDestroyCounter >= DESTRUCTION_TIME ) { Destroy(); } CWndButton* pWndButton = ( CWndButton* )GetDlgItem( WIDC_BUTTON_REQUEST ); if( pWndButton ) { pWndButton->EnableWindow( TRUE ); } m_timeWaitingRequest = 0xffffffff; } return TRUE; }
void CWndChat::SerializeRegInfo( CAr& ar, DWORD& dwVersion ) { CWndNeuz::SerializeRegInfo( ar, dwVersion ); if( ar.IsLoading() ) { if( dwVersion == 0 ) { } else { ar >> m_bChatLock; } #ifndef __CHAT_V19 CWndButton* pWndLock = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); pWndLock->SetCheck( m_bChatLock ); #endif //__CHAT_V19 } else {
BOOL CWndLvReqDown::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { if( nID == WIDC_BUTTON1 ) { //서버로 시작을 알린다. if(m_pItemElem != NULL) { CWndButton* pButton; pButton = (CWndButton*)GetDlgItem( WIDC_BUTTON1 ); pButton->EnableWindow(FALSE); // 서버에 처리 요청하는 함수 호출해야함 if(m_pItemElem) { g_DPlay.SendRemoveItemLevelDown(m_pItemElem->m_dwObjId); Destroy(); } } } /* if(message == WIN_ITEMDROP) { CItemElem* pTempElem; LPSHORTCUT pShortCut = (LPSHORTCUT)pLResult; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortCut->m_dwId ); // 하락 상태가 된 아이템만 올릴 수 있다. if(m_pItemElem == NULL && pTempElem != NULL) { if(pTempElem->GetLevelDown() < 0) { m_pItemElem = (CItemElem*)g_pPlayer->GetItemId( pShortCut->m_dwId ); m_pEItemProp = m_pItemElem->GetProp(); m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START); pButton->EnableWindow(TRUE); } } } */ return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
BOOL CWndSelectVillage::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { if( nID == WIDC_BUTTON_OK ) { UINT nRadios[3] = { WIDC_RADIO_FLARIS, WIDC_RADIO_SAINTM, WIDC_RADIO_DARKON }; for( int i=0; i<3; ++i ) { CWndButton* pButton = (CWndButton* )GetDlgItem( nRadios[i] ); if( pButton->GetCheck() ) break; } g_DPlay.SendReturnScroll( i ); Destroy(); } else if( nID == WIDC_BUTTON_CANCEL ) { Destroy(); } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
void CWndBlessingCancel::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_START); if(::GetLanguage() == LANG_FRE) pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButOk2.bmp" ) ), TRUE); pButton->EnableWindow(FALSE); m_pText = (CWndText*)GetDlgItem( WIDC_DESC ); SetDescription(); // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point ); MoveParentCenter(); }
void CWndLvReqDown::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); if(::GetLanguage() == LANG_FRE) pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButtNormal00.tga" ) ), TRUE); pButton->EnableWindow(FALSE); m_pText = (CWndText*)GetDlgItem( WIDC_TEXT1 ); SetDescription(); /* // 윈도를 중앙으로 옮기는 부분. CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( rectRoot.right - rectWindow.Width(), 110 ); Move( point );*/ MoveParentCenter(); }
void CWndVendor::SetVendor( CMover* pVendor ) { m_pVendor = pVendor; m_wndctrlVendor.InitVendor( m_pVendor ); if( !m_pVendor->IsActiveMover() ) { CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT1 ); pWndEdit->SetString( pVendor->m_vtInfo.GetTitle() ); pWndEdit->EnableWindow( FALSE ); CWndButton* pButton = (CWndButton*)GetDlgItem( WIDC_OK ); pButton->SetVisible( FALSE ); pButton = (CWndButton*)GetDlgItem( WIDC_CANCEL ); pButton->SetVisible( FALSE ); } CWndWorld* pWndWorld = (CWndWorld*)g_WndMng.GetWndBase( APP_WORLD ); if( pWndWorld ) pWndWorld->m_objidTracking = NULL_ID; if( g_WndMng.m_pWndDialog ) Destroy(); }
BOOL CWndAwakening::OnDropIcon( LPSHORTCUT pShortcut, CPoint point ) { CItemElem* pTempElem; pTempElem = (CItemElem*)g_pPlayer->GetItemId( pShortcut->m_dwId ); int nRandomOptionKind = g_xRandomOptionProperty->GetRandomOptionKind( pTempElem ); if( nRandomOptionKind != CRandomOptionProperty::eAwakening ) { // 적절한 대상이 아닙니다. //g_WndMng.PutString( prj.GetText( TID_GAME_INVALID_TARGET_ITEM ), NULL, prj.GetTextColor( TID_GAME_INVALID_TARGET_ITEM ) ); g_WndMng.OpenMessageBox( prj.GetText( TID_GAME_INVALID_TARGET_ITEM ) ); return FALSE; } if( g_xRandomOptionProperty->GetRandomOptionSize( pTempElem->GetRandomOptItemId() ) > 0 ) { // 이미 각성된 아이템입니다. //g_WndMng.PutString( prj.GetText( TID_GAME_AWAKE_OR_BLESSEDNESS01 ), NULL, prj.GetTextColor( TID_GAME_AWAKE_OR_BLESSEDNESS01 ) ); g_WndMng.OpenMessageBox( prj.GetText( TID_GAME_AWAKE_OR_BLESSEDNESS01 ) ); return FALSE; } if(pTempElem != NULL) { if(m_pItemElem) m_pItemElem->SetExtra(0); m_pItemElem = pTempElem; m_pEItemProp = m_pItemElem->GetProp(); m_pItemElem->SetExtra(m_pItemElem->GetExtra()+1); CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BUTTON1); pButton->EnableWindow(TRUE); LPWNDCTRL wndCtrl = GetWndCtrl( WIDC_STATIC1 ); if(m_pEItemProp != NULL) { m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, m_pEItemProp->szIcon), 0xffff00ff ); } } return TRUE; }
BOOL CWndAwakening::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { if( nID == WIDC_BUTTON1 ) { //서버로 시작을 알린다. if(m_pItemElem != NULL) { CWndButton* pButton; pButton = (CWndButton*)GetDlgItem( WIDC_BUTTON1 ); pButton->EnableWindow(FALSE); // 서버에 처리 요청하는 함수 호출해야함 if(m_pItemElem) { g_DPlay.SendAwakening(m_pItemElem->m_dwObjId); Destroy(); } } } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
BOOL CWndBlessingCancel::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { if( nID == WIDC_START ) { //서버로 시작을 알린다. if(m_pItemElem != NULL) { CWndButton* pButton; pButton = (CWndButton*)GetDlgItem( WIDC_START ); pButton->EnableWindow(FALSE); // 서버에 처리 요청하는 함수 호출해야함 if(m_pItemElem) { g_DPlay.SendBlessednessCancel(m_pItemElem->m_dwObjId); Destroy(); g_WndMng.PutString( prj.GetText(TID_GAME_BLESSEDNESS_CANCEL_INFO), NULL, 0xff0000ff ); } } } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
void CWndChat::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); #ifdef __CHAT_V19 CWndButton* pWndLock = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); CWndButton* pWndLog = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); CWndButton* pWndMoveLock = (CWndButton*)GetDlgItem( WIDC_MOVELOCK ); CWndButton* pWndHelp = (CWndButton*)GetDlgItem( WIDC_HELP ); CWndButton* pWndCheck = (CWndButton*)GetDlgItem( WIDC_RADIO6 ); pWndLock->SetVisible( false ); pWndLog->SetVisible( true ); pWndMoveLock->SetVisible( false ); pWndHelp->SetVisible( false ); pWndCheck->SetVisible(false); #endif //__CHAT_V19 //AddWndStyle( WBS_THICKFRAME ); m_timerDobe.Set( SEC( 5 ) ); LPWNDCTRL lpWndCtrl = GetWndCtrl( WIDC_MACRO_CHAT ); LPWNDCTRL lpWndText = GetWndCtrl( WIDC_CUSTOM1 ); m_wndMacroChat.Create( "g", WBS_NODRAWFRAME, lpWndCtrl->rect, this, WIDC_MACRO_CHAT ); m_wndMacroChat.AddWndStyle( WBS_NODRAWFRAME ); lpWndCtrl = GetWndCtrl( WIDC_EDIT ); m_wndEdit.Create( g_Neuz.GetSafeHwnd(), WBS_NODRAWFRAME, lpWndCtrl->rect, this, WIDC_EDIT ); m_wndText.Create( WBS_NOFRAME | WBS_NODRAWFRAME | WBS_VSCROLL, lpWndText->rect, this, WIDC_TEXT ); CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT ); CWndEdit* pWndHead = (CWndEdit*)GetDlgItem( WIDC_HEAD ); CWndEdit* pWndEdit = (CWndEdit*)GetDlgItem( WIDC_EDIT ); if( g_pPlayer->IsAuthHigher( AUTH_GAMEMASTER ) ) { pWndText->m_bEnableClipboard = TRUE; pWndHead->m_bEnableClipboard = TRUE; pWndEdit->m_bEnableClipboard = TRUE; } pWndEdit->SetNativeMode(); #if __VER >= 11 // __CSC_VER11_1 CRect rectEdit = m_wndEdit.GetWndRect(); rectEdit.left = rectEdit.left - 90; m_wndEdit.SetWndRect( rectEdit ); CRect customRect = lpWndCtrl->rect; CWndCustom* pCustom = (CWndCustom*)GetDlgItem(WIDC_MACRO_CHAT); if(pCustom) #ifdef __CHAT_V19 pCustom->Move(customRect.TopLeft().x - 112, customRect.TopLeft().y - 2); #else pCustom->Move(customRect.TopLeft().x - 119, customRect.TopLeft().y); pWndEdit->Move(customRect.TopLeft().x + 105, customRect.bottom + 30); #endif //__CHAT_V19 if(pWndHead) { pWndHead->EnableWindow(FALSE); pWndHead->SetVisible(FALSE); } #endif //__CSC_VER11_1 if( g_Option.m_nInstantHelp ) { CScript s; s.Load( MakePath( DIR_CLIENT, "InstantHelp.inc" ) ); s.GetToken(); while( s.tok != FINISHED ) { m_strArray.Add( s.Token ); s.GetToken(); } } //m_strArray. /* CRect rect = GetClientRect(); rect.top = rect.bottom - 20; rect.right = 70; rect.left += 5; rect.DeflateRect( 1, 1 ); m_wndBeginning.Create( g_Neuz.GetSafeHwnd(), WBS_NODRAWFRAME, rect, this, 1000); rect = GetClientRect(); rect.top = rect.bottom - 20; rect.left = 75; rect.right -= 134; rect.DeflateRect( 1, 1 ); //rect.left = rect.Width() * 20 / 100; //m_wndEdit.AddWndStyle( WBS_NODRAWFRAME ); m_wndEdit.Create( g_Neuz.GetSafeHwnd(), WBS_NODRAWFRAME, rect, this, 1001 ); */ // m_texEdit.LoadTexture( m_pApp->m_pd3dDevice, MakePath( DIR_THEME, "WndChat2.bmp" ), 0xffff00ff, TRUE ); /* rect = GetClientRect(); rect.top = rect.bottom - 20; rect.left = rect.right - 134; rect.right = r mnnnnft + 15; rect.DeflateRect( 1, 1 ); m_wndShout.Create( " ", 0, rect, this, 1010 ); rect = GetClientRect(); rect.top = rect.bottom - 20; rect.left = rect.right - 117; rect.right = rect.left + 15; rect.DeflateRect( 1, 1 ); m_wndParty.Create( " ", 0, rect, this, 1011 ); */ /* m_wndText.AddWndStyle( WBS_VSCROLL ); m_wndText.AddWndStyle( WBS_NOFRAME ); m_wndText.AddWndStyle( WBS_NODRAWFRAME ); m_wndText.Create( 0, rect, this, 1003 ); m_wndText.SetFont( g_Neuz.m_Theme.m_pFontChat ); m_wndText.m_string.Reset( m_pFont, &rect); */ /* rect = GetClientRect(); rect.left = rect.right - 100; //rect.bottom -= 80; rect.DeflateRect( 1, 1 ); m_wndReceiver.AddWndStyle( WBS_VSCROLL ); m_wndReceiver.AddWndStyle( WBS_NOFRAME ); m_wndReceiver.Create( EBS_AUTOVSCROLL, rect, this, 1002 ); m_wndReceiver.AddString( "Vampyre\n" ); m_wndReceiver.AddString( "Xuzhu\n" ); m_wndReceiver.AddString( "Zodiacus\n" ); m_wndReceiver.AddString( "Jeff\n" ); m_wndReceiver.m_string.Reset( m_pFont, &rect); */ //CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT ); SetChannel(); CWndButton* pWndRadio1 = (CWndButton*)GetDlgItem( WIDC_RADIO1 ); CWndButton* pWndRadio2 = (CWndButton*)GetDlgItem( WIDC_RADIO2 ); CWndButton* pWndRadio3 = (CWndButton*)GetDlgItem( WIDC_RADIO3 ); CWndButton* pWndRadio4 = (CWndButton*)GetDlgItem( WIDC_RADIO4 ); CWndButton* pWndRadio5 = (CWndButton*)GetDlgItem( WIDC_RADIO5 ); if( m_nChatChannel == CHATSTY_GENERAL ) pWndRadio1->SetCheck( TRUE ); else if( m_nChatChannel == CHATSTY_WHISPER ) pWndRadio2->SetCheck( TRUE ); else if( m_nChatChannel == CHATSTY_SHOUT ) pWndRadio3->SetCheck( TRUE ); else if( m_nChatChannel == CHATSTY_PARTY ) pWndRadio4->SetCheck( TRUE ); else if( m_nChatChannel == CHATSTY_GUILD ) pWndRadio5->SetCheck( TRUE ); //pWndText->m_string.Init( //pWndText->m_string = g_WndMng.m_ChatString; pWndText->m_nLineSpace = 2; //pWndText->m_string.Reset( m_pFont, &pWndText->GetClientRect() ); //pWndText-> /* CRect rect = GetClientRect(); rect.bottom -= 20; rect.right -= 0;//100; rect.DeflateRect( 1, 1); m_wndText.SetWndRect( rect ); */ //LPBYTE m_wndChatEdit[3]; //CSize sizeWndChatEdit[3]; #if __VER >= 11 // __CSC_VER11_1 LoadTGA( MakePath( DIR_THEME, "WndChatEdit00_1.tga" ), &m_wndChatEdit[0] ); #else //__CSC_VER11_1 LoadTGA( MakePath( DIR_THEME, "WndChatEdit00.tga" ), &m_wndChatEdit[0] ); #endif //__CSC_VER11_1 LoadTGA( MakePath( DIR_THEME, "WndChatEdit01.tga" ), &m_wndChatEdit[1] ); #ifdef __LANG_IME_0327 LoadTGA( MakePath( DIR_THEME, ::GetLanguage(), "WndChatEdit02.tga" ), &m_wndChatEdit[2] ); #else // __LANG_IME_0327 LoadTGA( MakePath( DIR_THEME, "WndChatEdit02.tga" ), &m_wndChatEdit[2] ); #endif // __LANG_IME_0327 if( m_wndChatEdit[2].lpData == NULL ) { Error( "CWndChat::OnInitialUpdate() m_wndChatEdit[2].lpData = NULL" ); return; } /* CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rectWindow = GetWindowRect(); CPoint point( 154, rectRoot.bottom - rectWindow.Height() ); Move( point ); */ #ifndef __CHAT_V19 CWndButton* pWndLock = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); pWndLock->SetCheck( m_bChatLock ); CWndButton* pWndMoveLock = (CWndButton*)GetDlgItem( WIDC_MOVELOCK ); pWndMoveLock->SetCheck( m_bMoveLock ); #endif //__CHAT_V19 CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rect = GetWindowRect(); int nWidth = rect.Width(); int nHeight = rect.Height(); int x = 0;//rectRoot.left + (rectRoot.Width() / 2) - (nWidth / 2); int y = rectRoot.bottom - nHeight; CPoint point( x, y ); Move( point ); m_timerInputTimeOut.Set( SEC( 300 ) ); #if __VER >= 8 //__Y_CHAT_SYSTEM_8 if( g_WndMng.m_pWndChatLog == NULL ) { g_WndMng.m_pWndChatLog = new CWndChatLog; if( g_WndMng.m_pWndChatLog ) { g_WndMng.m_pWndChatLog->Initialize( NULL, APP_CHAT_LOG ); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rect = GetWindowRect(TRUE); CRect rect2 = g_WndMng.m_pWndChatLog->GetClientRect(TRUE); int x = 0; int y = rect.top; if( (rect.right+rect2.Width()) < rectRoot.right ) x = rect.right; else x = (rect.left - rect2.Width() ); CPoint point( x, y ); g_WndMng.m_pWndChatLog->Move( point ); g_WndMng.m_pWndChatLog->SetVisible(FALSE); } } if( g_WndMng.m_pWndChatLog ) { CWndButton* pWndCheck3 = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); if( pWndCheck3 ) pWndCheck3->SetCheck(g_WndMng.m_pWndChatLog->m_bVisible); } #endif //__Y_CHAT_SYSTEM_8 }
BOOL CWndOption::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { CWndButton* pWndAlpha = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); CWndButton* pWndHelp = (CWndButton*)GetDlgItem( WIDC_CHECK2 ); CWndButton* pWndRoll = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); CWndButton* pWndCamearaLock = (CWndButton*)GetDlgItem( WIDC_CHECK4 ); #if __VER >= 11 // __ADD_ZOOMOPT CWndButton* pWndZoomLimit = (CWndButton*)GetDlgItem( WIDC_CHECK5 ); #endif switch( nID ) { case WIDC_CHECK1: // À©µµ ¹ÝÅõ¸í ¿É¼Ç if( pWndAlpha->GetCheck() ) CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 128; else CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 255; break; case WIDC_CHECK2: // Ãʺ¸ÀÚ µµ¿ò¸» ¿É¼Ç if( pWndHelp->GetCheck() ) g_Option.m_nInstantHelp = TRUE; else g_Option.m_nInstantHelp = FALSE; break; case WIDC_CHECK3: // ºñÇà½Ã ·Ñ¸µ È¿°ú. if( pWndRoll->GetCheck() ) g_Option.m_bRollEffect = TRUE; else g_Option.m_bRollEffect = FALSE; break; case WIDC_CHECK4: { if( pWndCamearaLock->GetCheck() ) g_Option.m_bCameraLock = TRUE; else g_Option.m_bCameraLock = FALSE; } break; #if __VER >= 11 // __ADD_ZOOMOPT case WIDC_CHECK5: { if( pWndZoomLimit->GetCheck() ) g_Option.m_bZoomLimit = FALSE; else g_Option.m_bZoomLimit = TRUE; } break; #endif case WIDC_RADIO1: g_Option.m_nSlangWord = 0; break; case WIDC_RADIO2: g_Option.m_nSlangWord = 1; break; case WIDC_RADIO3: g_Option.m_nChatCommand = 0; break; case WIDC_RADIO4: g_Option.m_nChatCommand = 1; break; case WIDC_RADIO5: g_Option.m_nChatCommand = 2; break; case WIDC_RADIO6: g_Option.m_nChatCommand = 3; break; case WIDC_RADIO7: // ÈÙ·Î Ä«¸Þ¶ó / ¿ìŬ¸¯ ½ºÅ³ÀÇ °íÀü¹æ½Ä g_Option.m_nInterface = 0; break; case WIDC_RADIO8: // ¿ìŬ¸¯ Ä«¸Þ¶ó / ÁÂŬ¸¯+X ½ºÅ³ÀÇ ½Å¹æ½Ä. g_Option.m_nInterface = 1; break; #ifdef __Y_INTERFACE_VER3 case WIDC_RADIO12: g_Option.m_nInterface = 2; break; #endif //__Y_INTERFACE_VER3 case WIDC_RADIO9: *g_Option.m_pGuide = 0; break; case WIDC_RADIO10: *g_Option.m_pGuide = 1; break; case WIDC_RADIO11: *g_Option.m_pGuide = 2; break; case 10000: { CWndGuideSystem* pWndGuide = (CWndGuideSystem*)GetWndBase( APP_GUIDE ); if( pWndGuide ) { pWndGuide->m_dwGuideLevel = *(g_Option.m_pGuide); if( pWndGuide->m_dwGuideLevel == 0 ) { if( g_pPlayer ) { pWndGuide->m_bVisible = TRUE; pWndGuide->ChangeModel( g_pPlayer->GetJob() ); pWndGuide->SetAni( g_pPlayer->GetJob(), CWndGuideSystem::ANI_IDLE ); } } else { if(g_pPlayer) { pWndGuide->SetAni( g_pPlayer->GetJob(), CWndGuideSystem::ANI_BYTE ); } } } } break; } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
void CWndGuildBank::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 #if __VER >= 11 // __SYS_POCKET if(GetWndBase( APP_BAG_EX )) GetWndBase( APP_BAG_EX )->Destroy(); #endif if( g_WndMng.m_pWndTrade || g_WndMng.m_pWndShop || g_WndMng.m_pWndBank || g_WndMng.GetWndVendorBase() ) { Destroy(); return; } CWndStatic* pCost = (CWndStatic*) GetDlgItem( WIDC_GUILDBANK_NUM ); pCost->AddWndStyle(WSS_MONEY); CWndTabCtrl* pTabCtrl = reinterpret_cast<CWndTabCtrl*>(GetDlgItem(WIDC_TABCTRL1)); m_wndItemCtrl.Create( WLVS_ICON, CRect( 0, 0, 250, 250 ), pTabCtrl, 11 ); m_wndItemCtrl.InitItem( &g_pPlayer->GetGuild()->m_GuildBank, APP_GUILD_BANK ); WTCITEM tabTabItem; tabTabItem.mask = WTCIF_TEXT | WTCIF_PARAM; tabTabItem.pszText = prj.GetText(TID_GAME_ITEM);//"아이템"; tabTabItem.pWndBase = &m_wndItemCtrl; pTabCtrl->InsertItem( 0, &tabTabItem ); LPWNDCTRL lpWndCtrl = GetWndCtrl( WIDC_CUSTOM1 ); m_wndGold.Create( "g", WBS_NODRAWFRAME, lpWndCtrl->rect, this, WIDC_CUSTOM1 ); m_wndGold.AddWndStyle( WBS_NODRAWFRAME ); CGuild *pGuild = g_pPlayer->GetGuild(); if( pGuild ) { if( pGuild->IsMaster( g_pPlayer->m_idPlayer ) == FALSE ) // 길마가 아니면 { CWndButton* pWndButt = (CWndButton*)GetDlgItem(WIDC_BUTTON2); // 망토제작 버튼을 disable 시킨다. pWndButt->EnableWindow( FALSE ); } } #ifdef __GLDISABLE CWndButton* pWndButt = (CWndButton*)GetDlgItem(WIDC_BUTTON1); pWndButt->EnableWindow( FALSE ); #endif CWndInventory* pWndInventory = (CWndInventory*)GetWndBase( APP_INVENTORY ); CRect rectInventory = pWndInventory->GetWindowRect( TRUE ); CPoint ptInventory = rectInventory.TopLeft(); CPoint ptMove; CRect rect = GetWindowRect( TRUE ); if( ptInventory.x > rect.Width() / 2 ) ptMove = ptInventory - CPoint( rect.Width(), 0 ); else ptMove = ptInventory + CPoint( rectInventory.Width(), 0 ); Move( ptMove ); if( pGuild ) { CWndButton* pWndButt = (CWndButton*)GetDlgItem(WIDC_BUTTON3); #if __VER >= 8 // __GUILDCOMBAT_85 pWndButt->EnableWindow(FALSE); pWndButt->SetVisible(FALSE); #else // __VER >= 8 if( g_GuildCombatMng.m_uWinGuildId == pGuild->GetGuildId() ) pWndButt->EnableWindow(TRUE); else pWndButt->EnableWindow(FALSE); #endif // __VER >= 8 } #if __VER >= 11 // __GUILD_BANK_LOG CWndButton* pWndButtLog = (CWndButton*)GetDlgItem(WIDC_LOG); pWndButtLog->EnableWindow(TRUE); pWndButtLog->SetVisible(TRUE); #else //__GUILD_BANK_LOG //CWndButton* pWndButtLog = (CWndButton*)GetDlgItem(WIDC_LOG); //pWndButtLog->EnableWindow(FALSE); //pWndButtLog->SetVisible(FALSE); #endif //__GUILD_BANK_LOG }
void CWndSummonAngel::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); // 여기에 코딩하세요 //Ctrl Initialize. m_pText = (CWndText *)GetDlgItem( WIDC_TEXT1 ); m_pStatic[0] = (CWndStatic *)GetDlgItem( WIDC_STATIC_RED ); m_pStatic[1] = (CWndStatic *)GetDlgItem( WIDC_STATIC_BLUE ); m_pStatic[2] = (CWndStatic *)GetDlgItem( WIDC_STATIC_GREEN ); SummonRateRefresh(); int StaticID[20] = {WIDC_STATIC11, WIDC_STATIC12, WIDC_STATIC13, WIDC_STATIC14, WIDC_STATIC15, WIDC_STATIC16, WIDC_STATIC17, WIDC_STATIC18, WIDC_STATIC19, WIDC_STATIC20, WIDC_STATIC21, WIDC_STATIC22, WIDC_STATIC23, WIDC_STATIC24, WIDC_STATIC25, WIDC_STATIC26, WIDC_STATIC27, WIDC_STATIC28, WIDC_STATIC29, WIDC_STATIC30}; for(int i=0; i<MAX_MATDIE; i++) { m_MatDie[i].wndCtrl = GetWndCtrl( StaticID[i] ); m_MatDie[i].staticNum = StaticID[i]; m_MatDie[i].isUse = FALSE; m_MatDie[i].pItemElem = NULL; m_ItemInfo[i].extracount = 0; m_ItemInfo[i].itemid = -1; } //Text Setting CWndStatic* pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC3 ); pStatic->SetTitle(prj.GetText(TID_GAME_REDANGEL_RATE)); pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC4 ); pStatic->SetTitle(prj.GetText(TID_GAME_BLUEANGEL_RATE)); pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC5 ); pStatic->SetTitle(prj.GetText(TID_GAME_GREENANGEL_RATE)); pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC6 ); pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO1)); pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC1 ); pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO2)); pStatic = (CWndStatic *)GetDlgItem( WIDC_STATIC7 ); pStatic->SetTitle(prj.GetText(TID_GAME_WHITEANGEL_INFO3)); //France Button Image CWndButton* pButton = (CWndButton*)GetDlgItem( WIDC_START ); if(::GetLanguage() == LANG_FRE) pButton->SetTexture(g_Neuz.m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), _T( "ButtNormal00.tga" ) ), TRUE); //Window Position m_pWndInventory = (CWndInventory*)GetWndBase( APP_INVENTORY ); CRect rectInventory; if(m_pWndInventory != NULL) { m_pWndInventory->m_wndItemCtrl.SetDieFlag(TRUE); rectInventory = m_pWndInventory->GetWindowRect( TRUE ); } CPoint ptInventory = rectInventory.TopLeft(); CPoint ptMove; CRect rect = GetWindowRect( TRUE ); if( ptInventory.x > rect.Width() / 2 ) ptMove = ptInventory - CPoint( rect.Width(), 0 ); else ptMove = ptInventory + CPoint( rectInventory.Width(), 0 ); Move( ptMove ); }
BOOL CWndOptVideo::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { CWndButton* pWndButton = (CWndButton*)*pLResult; CWndButton* pWndZoomLimit = (CWndButton*)GetDlgItem( WIDC_CHECK1 ); #if __VER >= 12 // __UPDATE_OPT CWndButton* pWndCamearaLock = (CWndButton*)GetDlgItem( WIDC_CHECK5 ); #endif switch( nID ) { case WIDC_OBJECT_LOD_HIGH: g_Option.m_nObjectDetail = 0; break; case WIDC_OBJECT_LOD_MID: g_Option.m_nObjectDetail = 1; break; case WIDC_OBJECT_LOD_LOW: g_Option.m_nObjectDetail = 2; break; case WIDC_OBJECT_DISTANT_HIGH: g_Option.m_nObjectDistant = 0; break; case WIDC_OBJECT_DISTANT_MID: g_Option.m_nObjectDistant = 1; break; case WIDC_OBJECT_DISTANT_LOW: g_Option.m_nObjectDistant = 2; break; case WIDC_TERRAIN_LOD_HIGH: g_Option.m_nViewArea = 0; SetLODDetail( g_Option.m_nViewArea ); break; case WIDC_TERRAIN_LOD_MID: g_Option.m_nViewArea = 1; SetLODDetail( g_Option.m_nViewArea ); break; case WIDC_TERRAIN_LOD_LOW: g_Option.m_nViewArea = 2; SetLODDetail( g_Option.m_nViewArea ); break; case WIDC_SHADOW_HIGH: g_Option.m_nShadow = 0; CreateShadowMap( m_pApp->m_pd3dDevice, g_Neuz.m_d3dpp.BackBufferFormat ); break; case WIDC_SHADOW_MID: g_Option.m_nShadow = 1; CreateShadowMap( m_pApp->m_pd3dDevice, g_Neuz.m_d3dpp.BackBufferFormat ); break; case WIDC_SHADOW_LOW: g_Option.m_nShadow = 2; break; #ifdef __SFX_OPT case WIDC_CHECK4: if( g_Neuz.m_bFakeFullMode && ::GetLanguage() != LANG_KOR) { pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK4 ); if(pWndButton) { g_Option.m_bStartFullScreen = !(pWndButton->GetCheck()); g_WndMng.OpenMessageBox( prj.GetText(TID_GAME_GAME_RESETTING), MB_OK, this ); } } break; #else case WIDC_GLOWON: if( g_Neuz.m_d3dCaps.PixelShaderVersion >= D3DPS_VERSION(1,1) ) { g_Option.m_nBloom = 1; g_Glare.Create( D3DDEVICE, D3DFMT_R5G6B5, g_Option.m_nResWidth, g_Option.m_nResHeight - 48 ); } break; case WIDC_GLOWOFF: g_Option.m_nBloom = 0; break; case WIDC_VOICEON: g_Option.m_bVoice = 1; break; case WIDC_VOICEOFF: g_Option.m_bVoice = 0; break; case WIDC_CHECK5: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK5 ); g_Option.m_bSFXRenderOff = !pWndButton->GetCheck(); break; case WIDC_MOUSE_HIGH: g_Option.m_MouseSpeed = 0; break; case WIDC_MOUSE_MID: g_Option.m_MouseSpeed = 1; break; case WIDC_MOUSE_LOW: g_Option.m_MouseSpeed = 2; break; case WIDC_CHECK4: if( g_Neuz.m_bFakeFullMode ) { pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK4 ); g_Option.m_bStartFullScreen = !(pWndButton->GetCheck()); g_WndMng.OpenMessageBox( prj.GetText(TID_GAME_GAME_RESETTING), MB_OK, this ); } break; #endif #ifdef __YENV case WIDC_SEPCBUMPCHECK: // ¼³Á¤°ªÀ» ¹Ù·Î Àû¿ëÇϴ°ÍÀÌ ¾Æ´Ï¶ó Á¾·áÇÒ¶§ Àû¿ëÇÑ´Ù // ¿É¼ÇÁß ´Ù½Ã ½ÃÀÛÇØ¾ß Àû¿ëµÇ´Â°ÍµéÀ» À§ÇÑ º¯¼ö..( ¹üÇÁ¸Ê... ) pWndButton = (CWndButton*)GetDlgItem( WIDC_SEPCBUMPCHECK ); if( pWndButton->GetCheck() != g_Option.m_bSpecBump ) { g_Option.m_bExitChange = TRUE; g_WndMng.OpenMessageBox( prj.GetText(TID_GAME_GAME_RESETTING), MB_OK, this ); } else g_Option.m_bExitChange = FALSE; break; #endif //__YENV case WIDC_CHECK2: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK2 ); g_Option.m_bDamageRender = pWndButton->GetCheck(); break; case WIDC_CHECK6: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK6 ); g_Option.m_nPlayerName = pWndButton->GetCheck(); break; case WIDC_CHECK7: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK7 ); g_Option.m_nOtherPlayerName = pWndButton->GetCheck(); break; case WIDC_CHECK8: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK8 ); g_Option.m_nMonName = pWndButton->GetCheck(); break; #if __VER >= 12 // __UPDATE_OPT case WIDC_CHECK1: { if( pWndZoomLimit->GetCheck() ) g_Option.m_bZoomLimit = FALSE; else g_Option.m_bZoomLimit = TRUE; } break; case WIDC_VIEWMASK: pWndButton = (CWndButton*)GetDlgItem( WIDC_VIEWMASK ); g_Option.m_bViewMask = pWndButton->GetCheck(); g_DPlay.SendOptionEnableRenderMask( pWndButton->GetCheck() ); break; case WIDC_CHECK5: { if( pWndCamearaLock->GetCheck() ) g_Option.m_bCameraLock = TRUE; else g_Option.m_bCameraLock = FALSE; } break; #else case WIDC_VISIBLEKEEPTIME: pWndButton = (CWndButton*)GetDlgItem( WIDC_VISIBLEKEEPTIME ); g_Option.m_bVisibleBuffTimeRender = pWndButton->GetCheck(); break; #endif case WIDC_CHECK3: pWndButton = (CWndButton*)GetDlgItem( WIDC_CHECK3 ); if(pWndButton) g_Option.m_nWeatherEffect = pWndButton->GetCheck(); break; /* case WIDC_EFFECTONOFF: { CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_EFFECTONOFF); g_Option.m_bEffect = pButton->GetCheck(); pButton->SetCheck( g_Option.m_bEffect ); } break; case WIDC_BMGONOFF: { CWndButton* pButton = (CWndButton*)GetDlgItem(WIDC_BMGONOFF); g_Option.m_bMusic = pButton->GetCheck(); pButton->SetCheck( g_Option.m_bMusic ); // À½¾Ç ²ô°í Äѱâ SetOn( g_Option.m_bMusic ); } break; */ /* case WIDC_SOUND_ON: g_Option.m_nSoundEffect = g_SoundMng.m_nSoundVolume = 1; break; case WIDC_SOUND_OFF: g_Option.m_nSoundEffect = g_SoundMng.m_nSoundVolume = 0; break; case WIDC_MUSIC_ON: g_Option.m_fMusicVolume = 1.0f; SetVolume( 1.0f ); break; case WIDC_MUSIC_OFF: g_Option.m_fMusicVolume = 0.0f; SetVolume( 0.0f ); break; */ case WIDC_OK: Destroy(); } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }
BOOL CWndTotalOption::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) { switch( nID ) { #ifdef __OPTION_EX case WIDC_BUT_OK: { /*m_OptTabGame*/ if( m_OptTabGame.pWndButton1[0]->GetCheck()) { g_Option.m_bTrade = 1; }else if( m_OptTabGame.pWndButton1[1]->GetCheck()) { g_Option.m_bTrade = 0; } if( m_OptTabGame.pWndButton2[0]->GetCheck()) { g_Option.m_bSay = 1; }else if( m_OptTabGame.pWndButton2[1]->GetCheck()) { g_Option.m_bSay = 0; } if( m_OptTabGame.pWndButton3[0]->GetCheck()) { g_Option.m_bParty = 1; }else if( m_OptTabGame.pWndButton3[1]->GetCheck()) { g_Option.m_bParty = 0; } if( m_OptTabGame.pWndButton4[0]->GetCheck()) { g_Option.m_bMessengerJoin = 1; }else if( m_OptTabGame.pWndButton4[1]->GetCheck()) { g_Option.m_bMessengerJoin = 0; } if( m_OptTabGame.pWndButton5[0]->GetCheck()) { g_Option.m_bMessenger = 1; }else if( m_OptTabGame.pWndButton5[1]->GetCheck()) { g_Option.m_bMessenger = 0; } if( m_OptTabGame.pWndButton6[0]->GetCheck()) { g_DPlay.SendChangePKPVPMode( FREEPK_MODE, 0 ); }else if( m_OptTabGame.pWndButton6[1]->GetCheck()) { g_DPlay.SendChangePKPVPMode( FREEPK_MODE, 1 ); } if( m_OptTabGame.pWndButton7[0]->GetCheck()) { g_DPlay.SendChangePKPVPMode( PVPCONFIRM_MODE, 3 ); }else if( m_OptTabGame.pWndButton7[1]->GetCheck()) { g_DPlay.SendChangePKPVPMode( PVPCONFIRM_MODE, 2 ); } if( m_OptTabGame.pWndButton8[0]->GetCheck()) { g_DPlay.SendQueryEquipSetting(TRUE); }else if( m_OptTabGame.pWndButton8[1]->IsPush()) { g_DPlay.SendQueryEquipSetting(FALSE); } if( m_OptTabGame.pWndButton9[0]->GetCheck()) { g_Option.m_bAutoAttack = 1; }else if( m_OptTabGame.pWndButton9[1]->GetCheck()) { g_Option.m_bAutoAttack = 0; } if( m_OptTabGame.pWndHelp->GetCheck()) g_Option.m_nInstantHelp = TRUE; else g_Option.m_nInstantHelp = FALSE; if( m_OptTabGame.pWndCheck->GetCheck()) { *g_Option.m_pGuide = 0; } else { CWndGuideSystem* pWndGuide = NULL; pWndGuide = (CWndGuideSystem*)GetWndBase( APP_GUIDE ); pWndGuide->m_wndGuideText->SetVisible(FALSE); *g_Option.m_pGuide = 2; } if( m_OptTabGame.pWndAlpha->GetCheck()) CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 128; else CWndBase::m_nAlpha = g_Option.m_nWindowAlpha = 255; if( m_OptTabGame.pWndCheckBattleBGM->GetCheck()) { g_Option.m_bBattleBGM = ( m_OptTabGame.pWndCheckBattleBGM->GetCheck() == TRUE ) ? TRUE: FALSE; } #ifdef __GAME_GRADE_SYSTEM if( m_OptTabGame.pWndCheckGameGrade->GetCheck()) { BOOL bGameGradeChecked = m_OptTabGame.pWndCheckGameGrade->GetCheck(); g_Option.m_bGameGradeRendering = ( bGameGradeChecked == TRUE ) ? TRUE: FALSE; if( bGameGradeChecked == TRUE ) { g_Neuz.m_dwTimeGameGradeMarkRendering = g_tmCurrent + SEC( CNeuzApp::GAME_GRADE_MARK_RENDERING_INTERVAL_SECOND ); } } #endif // __GAME_GRADE_SYSTEM Destroy();//Fecha depois de salvar. } break; case WIDC_BUT_CANCEL: { Destroy(); } break; case WIDC_BUT_RESET: { CWndButton *pWndReset = (CWndButton*)GetDlgItem( WIDC_BUT_RESET ); if(pWndReset->IsPush()) { g_Option.Defalt( "neuzDefault.ini" );//carrega o neuzdefault.ini e depois que soutar o botão ele para. m_OptTabGame.pWndButton1[0]->SetCheck(TRUE); m_OptTabGame.pWndButton2[0]->SetCheck(TRUE); m_OptTabGame.pWndButton3[0]->SetCheck(TRUE); m_OptTabGame.pWndButton4[0]->SetCheck(TRUE); m_OptTabGame.pWndButton5[0]->SetCheck(TRUE); m_OptTabGame.pWndButton9[0]->SetCheck(TRUE); // m_OptTabGame.pWndCheckGameGrade->SetCheck(TRUE); m_OptTabGame.pWndCheckBattleBGM->SetCheck(TRUE); m_OptTabGame.pWndHelp->SetCheck(TRUE); m_OptTabGame.pWndButton1[1]->SetCheck(FALSE); m_OptTabGame.pWndButton2[1]->SetCheck(FALSE); m_OptTabGame.pWndButton3[1]->SetCheck(FALSE); m_OptTabGame.pWndButton4[1]->SetCheck(FALSE); m_OptTabGame.pWndButton5[1]->SetCheck(FALSE); m_OptTabGame.pWndButton9[1]->SetCheck(FALSE); m_OptTabGame.pWndCheck->SetCheck(FALSE); m_OptTabGame.pWndAlpha->SetCheck(FALSE); } } break; #endif//__OPTION_EX case 10000: { CWndGuideSystem* pWndGuide = (CWndGuideSystem*)GetWndBase( APP_GUIDE ); if( pWndGuide ) { pWndGuide->m_dwGuideLevel = *(g_Option.m_pGuide); if( pWndGuide->m_dwGuideLevel == 0 ) { if( g_pPlayer ) { if(pWndGuide->m_bVisible != false) { pWndGuide->m_bVisible = true; pWndGuide->ChangeModel( g_pPlayer->GetJob() ); pWndGuide->SetAni( g_pPlayer->GetJob(), CWndGuideSystem::ANI_IDLE ); } } } else { if( g_pPlayer ) { pWndGuide->SetAni( g_pPlayer->GetJob(), CWndGuideSystem::ANI_BYTE ); } } } } break; } return CWndNeuz::OnChildNotify( message, nID, pLResult ); }