void CWndGuideSystem::OnInitialUpdate() { CWndNeuz::OnInitialUpdate(); m_bIsLoad = FALSE; this->DelWndStyle(WBS_CAPTION); this->AddWndStyle(WBS_TOPMOST); SAFE_DELETE(m_pModel); if( g_pPlayer ) { ChangeModel( g_pPlayer->GetJob() ); SetAni( g_pPlayer->GetJob(), ANI_INTRO ); } else Error( "CWndGuideSystem::OnInitialUpdate() -> g_pPlayer == NULL " ); m_wndTitleBar.SetVisible( FALSE ); CRect rectRoot = m_pWndRoot->GetLayoutRect(); CRect rect = GetWindowRect(); int nWidth = rect.Width(); int nHeight = rect.Height(); int x = rectRoot.right - rect.Width(); int y = rectRoot.bottom - nHeight; CPoint point( x, y ); Move( point ); m_listGuide.clear(); m_listGuideMsg.clear(); m_listGuideChart.clear(); LoadGuide( MakePath( DIR_CLIENT, "Guide.inc" ) ); //* //텍스트 창 출력 SAFE_DELETE(m_wndGuideText); m_wndGuideText = new CWndGuideTextMgr; #ifdef __FIX_WND_1109 m_wndGuideText->Initialize( this ); #else // __FIX_WND_1109 m_wndGuideText->Initialize(); #endif // __FIX_WND_1109 /**/ m_bIsGuideChart[0] = FALSE; m_bIsGuideChart[1] = FALSE; m_dwTime = g_tmCurrent; m_wndMenuPlace.CreateMenu( this ); m_wndMenuPlace.AppendMenu( 0, 0 , prj.GetText(TID_GAME_GUIDE_HIDE) ); m_wndMenuPlace.AppendMenu( 0, 1 , prj.GetText(TID_GAME_GUIDE_OPEN) ); m_wndMenuPlace.CheckMenuItem( 0, FALSE ); m_wndMenuPlace.CheckMenuItem( 1, m_wndGuideText->m_bVisible ); m_dwGuideLevel = 1; }
ALERROR CS1Controller::OnInit (void) // OnInit // // Handle initialization { ALERROR error; if (error = LoadGuide()) return error; if (error = m_HI.ShowSession(new CMenuSession(m_HI))) return error; return NOERROR; }