admin
管理员
管理员
  • UID1
  • 注册日期2011-05-18
  • 最后登录2022-08-22
  • 粉丝94
  • 关注0
  • 发帖数1061
  • QQ
  • 铜币1232枚
  • 威望8点
  • 银元1218个
阅读:3246回复:3

[源码编辑]添加PVP等级图标

楼主#
更多 发布于:2012-10-07 12:49

在职业图标后添加pvp等级图标:

-------------------------------

moverrender.cpp添加

-------------------------------
#ifdef __PVP_ICON
CTexture* pTexture2;
CString strPath2;
if( m_nFame >=100&& m_nFame <199)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp1.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=200&& m_nFame <299)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp2.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=300&& m_nFame <399)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp3.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=400&& m_nFame <499)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp4.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=500&& m_nFame <599)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp5.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=600&& m_nFame <699)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp6.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=700&& m_nFame <799)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp7.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}
elseif( m_nFame >=800)
{
strPath2 =MakePath( DIR_ICON,"icon_Pvp8.png");
pTexture2 =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath2,0xffff00ff);
}

if(pTexture2 != NULL)
{
point.x +=26;
pTexture2->Render(&g_Neuz.m_2DRender, point );
}
#endif

添加的位置在这段的后面:

 

if(checkhero == LEGEND_CLASS_MASTER && m_nLevel >=60&& m_nLevel <=120)//&Agrave;ü&frac12;&Acirc;&Agrave;&raquo; &Ccedil;&szlig;&Agrave;&raquo; °&aelig;&iquest;ì.{if(m_nLevel >=60&& m_nLevel <70)//Level Down&micro;&Eacute; °&aelig;&iquest;ì&cedil;&brvbar; &raquo;&yacute;°&cent;&Ccedil;&Oslash;&frac14;* &Aacute;&Ouml;&frac14;&reg;&Atilde;&sup3;&cedil;&reg;.// strPath = MakePath( DIR_ICON, "icon_Expert1.dds"); pTexture = g_Neuz.m_pMasterIcon[0];elseif(m_nLevel >=70&& m_nLevel <80)// strPath = MakePath( DIR_ICON, "icon_Expert2.dds"); pTexture = g_Neuz.m_pMasterIcon[1];elseif(m_nLevel >=80&& m_nLevel <90)// strPath = MakePath( DIR_ICON, "icon_Expert3.dds"); pTexture = g_Neuz.m_pMasterIcon[2];elseif(m_nLevel >=90&& m_nLevel <100)// strPath = MakePath( DIR_ICON, "icon_Expert4.dds"); pTexture = g_Neuz.m_pMasterIcon[3];elseif(m_nLevel >=100&& m_nLevel <110)// strPath = MakePath( DIR_ICON, "icon_Expert5.dds"); pTexture = g_Neuz.m_pMasterIcon[4];elseif(m_nLevel >=110&& m_nLevel <=120)// strPath = MakePath( DIR_ICON, "icon_Expert6.dds"); pTexture = g_Neuz.m_pMasterIcon[5];//pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}elseif(checkhero == LEGEND_CLASS_HERO)//&iquest;&micro;&iquest;&otilde;&Agrave;&Iuml; °&aelig;&iquest;ì.{//strPath = MakePath( DIR_ICON, "icon_Hero.dds");//pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff ); pTexture = g_Neuz.m_pHeroIcon;if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}#ifdef __3RD_LEGEND16 elseif(checkhero == LEGEND_CLASS_LEGEND_HERO)//&iquest;&micro;&iquest;&otilde;&Agrave;&Iuml; °&aelig;&iquest;ì.{/*strPath = MakePath( DIR_ICON, "icon_Legend.dds"); pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff ); pTexture = g_Neuz.m_pHeroIcon; if(pTexture != NULL) { point.y -= pTexture->m_size.cy + 5; pTexture->Render( &g_Neuz.m_2DRender, point ); }*/if(m_nLevel >=130&& m_nLevel <135)//Level Down&micro;&Eacute; °&aelig;&iquest;ì&cedil;&brvbar; &raquo;&yacute;°&cent;&Ccedil;&Oslash;&frac14;* &Aacute;&Ouml;&frac14;&reg;&Atilde;&sup3;&cedil;&reg;.{ strPath =MakePath( DIR_ICON,"icon_lege1.png"); pTexture =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath,0xffff00ff);if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}elseif(m_nLevel >=135&& m_nLevel <140){ strPath =MakePath( DIR_ICON,"icon_lege2.png"); pTexture =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath,0xffff00ff);if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}elseif(m_nLevel >=140&& m_nLevel <145){ strPath =MakePath( DIR_ICON,"icon_lege3.png"); pTexture =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath,0xffff00ff);if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}elseif(m_nLevel >=145){ strPath =MakePath( DIR_ICON,"icon_lege4.png"); pTexture =CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath,0xffff00ff);if(pTexture != NULL){ point.y -= pTexture->m_size.cy +5; pTexture->Render(&g_Neuz.m_2DRender, point );}}}#endif// __3RD_LEGEND16
哎...今天够累的,签到来了3...
moibanez
2级·斗气风暴
2级·斗气风暴
  • UID26009
  • 注册日期2012-08-29
  • 最后登录2016-08-03
  • 粉丝2
  • 关注2
  • 发帖数83
  • QQ
  • 铜币41枚
  • 威望0点
  • 银元38个
沙发#
发布于:2012-10-10 17:31
if i wanna change color name for pvp scores how can i fix?

thank  
admin
管理员
管理员
  • UID1
  • 注册日期2011-05-18
  • 最后登录2022-08-22
  • 粉丝94
  • 关注0
  • 发帖数1061
  • QQ
  • 铜币1232枚
  • 威望8点
  • 银元1218个
板凳#
发布于:2012-10-11 03:34
你可以尝试修改图标后面所对应的数字为你想要的。
我不会翻译泰文,你自己翻译吧
哎...今天够累的,签到来了3...
Mao_M
3级·血之光辉
3级·血之光辉
  • UID28339
  • 注册日期2012-11-05
  • 最后登录2014-12-12
  • 粉丝0
  • 关注0
  • 发帖数67
  • QQ
  • 铜币37枚
  • 威望0点
  • 银元62个
地板#
发布于:2012-12-24 20:23
学学翻译翻译- -
游客

返回顶部