WndParty.cpp
Code:
void CWndPartyInfo::OnDraw
DWORD colorStatus = 0xff0000ff; // µðÆúÆ®´Â ÀÌ»ó¾øÀ½
if( IsValidObj(pObjMember) )
{
if( pObjMember->GetHitPoint() == 0 )
colorStatus = 0xffff0000; // Á×Àº³ð
else
{
if( pObjMember->GetMaxHitPoint() > 0 && ( (FLOAT)pObjMember->GetHitPoint() ) / ( (FLOAT)pObjMember->GetMaxHitPoint() ) <.1f )
colorStatus = 0xffffff00; // HP 10% ÀÌÇÏÀγð
}
}
else
{
colorStatus = 0xff878787; // µðÆúÆ®´Â ÁÖÀ§¿¡ ¾ø´Â³ð
if( g_Party.m_aMember[ i ].m_bRemove )
colorStatus = 0xff000000; // ¼*¹ö¿¡ ¾ø´Â³ð
}
p2DRender->RenderFillRect( rectTemp, colorStatus );