I think that the other Items (Elemental Orb and other stuff in that window) are not recognized in that if-struct:
Code:
if(
( pItemElem->m_nItemNum == pItemElem->GetExtra() || !m_useDieFlag )
&& ( IsUsingItem(pItemElem) || pItemElem->m_bRepair || ( nParent == APP_INVENTORY && g_pPlayer->GetPetId() == pItemElem->m_dwObjId ) || pPlayer->GetTicket() == pItemElem )
)
Only if one of these conditions exist, the icon will be rendered with lower alpha and that check:
Code:
{
RanderIcon( p2DRender, pItemElem, x * 35, y * 35, nParent, 60 );
#if __VER >= 17
CheckTexture = m_textureMng.AddTexture( D3DDEVICE, MakePath( DIR_THEME, "WndItemCheck.bmp" ),0xffff00ff );
CheckTexture->Render(p2DRender,CPoint(x * 35, (y * 35) + 5),255);
#endif//__VER >= 17
}
I guess you should add one condition that check if your Baruna Element Upgrade window is opened.