Its been an long time since i was active but due to boring problems i am starting again.
The problem i encounter is in the image below
i have changed WndField.cpp so it will show the icon based on Sex.
This is what i have done.
Code:
if( pItemBase && pItemBase->GetTexture() ) { if( ((CItemElem*)pItemBase)->IsFlag( CItemElem::expired ) ) { pItemBase->GetTexture()->Render2(p2DRender, DrawRect.TopLeft()+cpAdd, D3DCOLOR_XRGB( 255, 100, 100 ), sx, sy ); } else { ItemProp* pItemProp = pItemBase->GetProp(); CString strIcon = pItemProp->szIcon; switch (pItemProp->dwItemKind3) { case IK3_HELMET: case IK3_SUIT: case IK3_GAUNTLET: case IK3_BOOTS: switch (g_pPlayer->GetSex()) { case SEX_MALE: m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff); m_pTexture->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy); break; case SEX_FEMALE: strIcon.MakeLower(); strIcon.Replace("itm_m", "itm_f"); m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff); m_pTexture->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy); break; } break; default: pItemBase->GetTexture()->Render2(p2DRender, DrawRect.TopLeft() + cpAdd, D3DCOLOR_ARGB(dwAlpha, 255, 255, 255), sx, sy); break; } } CItemElem *pItemElem = (CItemElem *)pItemBase; if( pItemElem->GetProp()->dwPackMax > 1 ) // ¹*À½ ¾ÆÀÌÅÛÀ̳Ä? { short nItemNum = pItemElem->m_nItemNum; TCHAR szTemp[ 32 ]; _stprintf( szTemp, "%d", nItemNum ); CSize size = m_p2DRender->m_pFont->GetTextExtent( szTemp ); int x = DrawRect.left; int y = DrawRect.top; m_p2DRender->TextOut( x + 42 - size.cx, y + 42 - size.cy, szTemp, 0xff0000ff ); m_p2DRender->TextOut( x + 41 - size.cx, y + 41 - size.cy, szTemp, 0xffb0b0f0 ); } } }
Any help will be appriciated.
With kind regards.
FIXED