阅读:2356回复:9
[飞飞架设]如何改变你的公会名字颜色——来自网络
First, open \_Common\ and look for MoverRender.cpp
首先,打开\ _Common \搜索MoverRender.cpp Now search for 现在搜索 Code:代码: pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor , pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),dwColor,pGuild - > m_szGuild); You can easily change the color by replacing dwColor with the color code you want for example 0xFFFFFF00 (For more color you can check colorschemer.com just get the HEX code and add 0xFF before it) 您可以轻松地改变颜色代码替换为你想要的,(更多颜色可以从colorschemer.com得到HEX代码,并在之前添加0xff) 例如0xFFFFFF00 For me my code look like this 对我来说,我的代码是这样的 Code:代码: if( pGuild->m_nLevel >= 50 )如果(pGuild -> m_nLevel> = 50) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF8000FF, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),0xFF8000FF,pGuild - > m_szGuild); else if( pGuild->m_nLevel >= 40 )否则,如果(pGuild -> m_nLevel> = 40) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF0080FF, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),0xFF0080FF,pGuild - > m_szGuild); else if( pGuild->m_nLevel >= 30 )否则,如果(pGuild -> m_nLevel> = 30) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFF00FF00, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),0xFF00FF00,pGuild - > m_szGuild); else if( pGuild->m_nLevel >= 20 )否则,如果(pGuild -> m_nLevel> = 20) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFFFF7AFF, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),0xFFFF7AFF,pGuild - > m_szGuild); else if( pGuild->m_nLevel >= 10 )否则,如果(pGuild -> m_nLevel> = 10) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), 0xFFFFFF00, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),0xFFFFFF00,pGuild - > m_szGuild); else if( m_dwAuthorization >= AUTH_GAMEMASTER )否则,如果(m_dwAuthorization> = AUTH_GAMEMASTER) pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), COLOR_GUILD_ADMIN, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),COLOR_GUILD_ADMIN,pGuild - > m_szGuild); else其他 pFont->DrawText( (FLOAT)( point.x ), (FLOAT)( point.y ), dwColor, pGuild->m_szGuild ); pFont -> DrawText的((FLOAT)(point.x),(FLOAT)(point.y),dwColor,pGuild - > m_szGuild); so with this code, your guild name color will change according to your guild level. 因此通过这个代码,你的公会名字颜色会根据你的公会的等级发生变化。 |
|
100% |
沙发#
发布于:2011-08-02 21:04
什么否则如果,否则如果的??根本就看不懂的嘛!清楚点嘛
|
|
板凳#
发布于:2011-08-02 21:08
|
|
|
地板#
发布于:2011-08-02 21:18
额,,这么奇怪,,还有中文,害人别怪我,,新手嘛!
|
|
4楼#
发布于:2011-08-02 23:42
16进
|
|
5楼#
发布于:2011-08-05 16:10
找不到文件啊
|
|
6楼#
发布于:2011-08-09 13:48
给力、支持一个
|
|
7楼#
发布于:2011-08-09 13:48
呵呵、学到不少东西在这
|
|
8楼#
发布于:2011-09-20 20:38
请问 你这个是用工具打开 还是直接在服务端搜索啊
|
|