I want to add a hidden item button.
On the mask
[Only registered and activated users can see links. Click Here To Register...]
On the mask
[Only registered and activated users can see links. Click Here To Register...]
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);
}
int nArryEquip[6] = { PARTS_HAT, PARTS_CLOTH, PARTS_GLOVE, PARTS_BOOTS, PARTS_CLOAK, PARTS_MASK };
for( int i = 0; i < 6; ++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);
}
Quote:
Code:int nArryEquip[6] = { PARTS_HAT, PARTS_CLOTH, PARTS_GLOVE, PARTS_BOOTS, PARTS_CLOAK, PARTS_MASK }; for( int i = 0; i < 6; ++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); }
It's not the full code of what you want. I just put the other changes that you can think of what you can do with __HIDE_COATQuote:
After I edit
Game I dropped after pressing "I"
What I mean is add the PARTS_MASK on every part of the __HIDE_COATH code.Quote:
After I edit
Game I dropped after pressing "I"