lk1986
骑士
骑士
  • UID64
  • 注册日期2019-03-04
  • 最后登录2020-08-21
  • 粉丝1
  • 关注0
  • 发帖数81
  • QQ15151515
  • 铜币94枚
  • 威望396点
  • 银元0个
  • 社区居民
  • 原创写手
阅读:2069回复:0

《飞飞》五转职业图标五级更换

楼主#
更多 发布于:2019-03-06 09:46
MoverRender.cpp文件

找到
#if __VER >= 16 //__3RD_LEGEND16
 else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel <= 200)
 {
  strPath = MakePath( DIR_ICON, "icon_Hero.dds");
  pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//   pTexture = g_Neuz.m_pLegendIcon[0];
  if(pTexture != NULL)
  {
   point.y -= pTexture->m_size.cy + 4;
   pTexture->Render( &g_Neuz.m_2DRender, point );
  }
 }
#endif // __3RD_LEGEND16

修改为:
#if    __VER >= 16 //__3RD_LEGEND16
      else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 130 && m_nLevel < 135)
      {
          strPath = MakePath( DIR_ICON, "Legend135.dds");
          pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//            pTexture = g_Neuz.m_pLegendIcon[0];
          if(pTexture != NULL)
          {
              point.y -= pTexture->m_size.cy + 5;
              pTexture->Render( &g_Neuz.m_2DRender, point );
          }
      }
             else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 135 && m_nLevel < 140)
      {
          strPath = MakePath( DIR_ICON, "Legend140.dds");
          pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//            pTexture = g_Neuz.m_pLegendIcon[1];
          if(pTexture != NULL)
          {
              point.y -= pTexture->m_size.cy + 5;
              pTexture->Render( &g_Neuz.m_2DRender, point );
          }
      }
                    else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 140 && m_nLevel < 145)
      {
          strPath = MakePath( DIR_ICON, "Legend145.dds");
          pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//            pTexture = g_Neuz.m_pLegendIcon[1];
          if(pTexture != NULL)
          {
              point.y -= pTexture->m_size.cy + 5;
              pTexture->Render( &g_Neuz.m_2DRender, point );
          }
      }
                    else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 145 && m_nLevel < 150)
      {
          strPath = MakePath( DIR_ICON, "Legend150.dds");
          pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//            pTexture = g_Neuz.m_pLegendIcon[1];
          if(pTexture != NULL)
          {
              point.y -= pTexture->m_size.cy + 5;
              pTexture->Render( &g_Neuz.m_2DRender, point );
          }
      }
                           else if(checkhero == LEGEND_CLASS_LEGENDHERO && m_nLevel >= 150)
      {
          strPath = MakePath( DIR_ICON, "Icon_Legend.dds");
          pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, strPath, 0xffff00ff );
//            pTexture = g_Neuz.m_pLegendIcon[1];
          if(pTexture != NULL)
          {
              point.y -= pTexture->m_size.cy + 5;
              pTexture->Render( &g_Neuz.m_2DRender, point );
          }
      }
#endif // __3RD_LEGEND16

那么现在你五转之后每5级头上的图标将自动更换,.dds的图片请自行收集放入ICON文件夹内
ICO文件百度网盘链接:http://pan.baidu.com/s/1sjPxlCT 密码:7ra9
游客

返回顶部