飞飞迷 > 源码修改 > 《飞飞》五转职业图标五级更换

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

来源:飞飞迷 发布时间:2015-07-04 浏览:

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 

相关推荐

历史版本

  • V19.飞你莫属
  • 11-11-24V18.翱翔重生
  • 11-04-13V17.龙的逆袭
  • 10-12-13V16.神采飞扬
  • 10-04-16V15.羽化飞天
  • 09-11-04V14.翼之降临