|
int nArryEquip[5] = { PARTS_HAT, PARTS_CLOTH, PARTS_GLOVE, PARTS_BOOTS, PARTS_CLOAK };
for( int i = 0; i < 5; ++i )
{
CRect rect = m_InvenRect[nArryEquip[i]];
rect.right = rect.left + 16;
rect.bottom = rect.top + 16;
m_awndCheckHide[i].Create("",WBS_CHECK,rect,this,100000+i);
m_awndCheckHide[i].SetCheck(!g_pPlayer->m_abHideCoat[i]);
m_awndCheckHide[i].SetVisible(g_pPlayer->GetEquipItem(nArryEquip[i]) != NULL);
}
|