管理员 发表于 2018-6-17 14:55:35

全民免费飞飞登录随机背景

简单,你所要做的是创建屏幕负载在itheme.cpp
搜索
代码:
BOOL CTheme::LoadTheme( LPDIRECT3DDEVICE9 pd3dDevice, LPCTSTR lpszFileName)
寻求
代码:
m_texWallPaper.LoadTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), scanner.token ), 0xff0000 );
并更换
代码:
#ifdef __RANDOM_WALLPAPER
CString Filename;
int i = xRandom(3); // 1 , 2 , or 3
switch(i)
{
case 1 : Filename = "screen1"; break; // first screen
case 2: Filename = "screen2"; break; // second screen
case 3: Filename = "screen3"; break; // third screen
default : Filename = "screen";break; // no white screen please http://www.flyfffan.com/uploadfile/2015/0704/20150704014926874.gif
}
Filename += ".bmp"; // its a bmp
m_texWallPaper.LoadTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), Filename ), 0xff0000 ); // load the Random bG
#else
m_texWallPaper.LoadTexture( m_pd3dDevice, MakePath( "Theme\\", ::GetLanguage(), scanner.token ), 0xff0000 );
#endif
已经获取随机屏幕(屏幕,屏蔽1,屏幕2,屏幕3)
现在去NE内定义
#define __RANDOM_WALLPAPER
重新编译即可

页: [1]
查看完整版本: 全民免费飞飞登录随机背景