阅读:3587回复:7
【源码编辑】进游戏时加载的图片,星辰寓言等都有的效果。
因为之前找“靓”指导了下,所以就不发他的版本了,以免侵权,自己用switch循环语句写了个,比较粗糙,C++不是很好。
加载的图片请到星辰的主题文件夹里面找。 源码:DPClient.cpp 找到 CDPClient::OnJoin() 函数 if( pWndBase ) ( (CWndSelectChar*)pWndBase )->Destroy(); g_WndMng.CloseMessageBox(); 后面添加: int nRandom if ( nRandom == xRandom( 1, 8 ) ) { switch ( nRandom ) { case 1: CString strPath = MakePath( "Theme\\Default\\","MapLoading_1.tga" ); break; case 2: CString strPath = MakePath( "Theme\\Default\\","MapLoading_2.tga" ); break; case 3: CString strPath = MakePath( "Theme\\Default\\","MapLoading_3.tga" ); break; case 4: CString strPath = MakePath( "Theme\\Default\\","MapLoading_4.tga" ); break; case 5: CString strPath = MakePath( "Theme\\Default\\","MapLoading_5.tga" ); break; case 6: CString strPath = MakePath( "Theme\\Default\\","MapLoading_6.tga" ); break; case 7: CString strPath = MakePath( "Theme\\Default\\","MapLoading_7.tga" ); break; case 8: CString strPath = MakePath( "Theme\\Default\\","MapLoading_8.tga" ); break; default: CString strPath = MakePath( "Theme\\Default\\","MapLoading.tga" ); break; } } g_Neuz.m_TexLoading.LoadTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff, FALSE ); g_Neuz.m_bTexLoad = TRUE; g_Neuz.m_nTexAlpha = 255; if(SUCCEEDED(g_Neuz.m_pd3dDevice->BeginScene())) { g_Neuz.m_TexLoading.m_size = CSize(FULLSCREEN_WIDTH, FULLSCREEN_HEIGHT); g_Neuz.m_2DRender.RenderTexture( CPoint(0,0), &g_Neuz.m_TexLoading, g_Neuz.m_nTexAlpha ); g_Neuz.m_pd3dDevice->EndScene(); } g_Neuz.m_pd3dDevice->Present( NULL, NULL, NULL, NULL ); 图片:QQ拼音截图未命名.jpg |
|
100% |
沙发#
发布于:2012-05-15 07:51
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于:2012-06-07 23:33
- - 有什麼用 又沒進度顥示的說
|
|
地板#
发布于:2012-06-10 19:35
|
|
4楼#
发布于:2012-08-16 20:03
|
|
5楼#
发布于:2012-08-16 22:20
出现错误
error C2065: “strPath” : 未声明的标识符 楼主怎么办 |
|
6楼#
发布于:2012-10-26 23:30
|
|
7楼#
发布于:2012-10-31 14:36
用户被禁言,该主题自动屏蔽! |
|