阅读:2224回复:1
【源码编辑】公会名字颜色按等级更换
这个源码编辑大家可能已经以前收藏过了,我在这里再补一下,丰富论坛资源
打开\_common\寻找moverrender.cpp 搜索 pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, pGuild->m_szGuild ); 将它改为: if( pGuild->m_nLevel >= 50 ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF8000FF, pGuild->m_szGuild ); else if( pGuild->m_nLevel >= 40 ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF0080FF, pGuild->m_szGuild ); else if( pGuild->m_nLevel >= 30 ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF00FF00, pGuild->m_szGuild ); else if( pGuild->m_nLevel >= 20 ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFFFF7AFF, pGuild->m_szGuild ); else if( pGuild->m_nLevel >= 10 ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFFFFFF00, pGuild->m_szGuild ); else if( m_dwAuthorization >= AUTH_GAMEMASTER ) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF000000, pGuild->m_szGuild ); else pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, pGuild->m_szGuild ); 改完重新编译源码。 |
|
100% |
沙发#
发布于:2012-02-17 06:35
是把 上面那些 全编译吗?
|
|