.
This commit is contained in:
@@ -22,10 +22,6 @@ HRESULT CElementObject::Initialize(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -61,15 +57,31 @@ _vector CElementObject::Get_WorldPostion()
|
||||
return m_pOwner->Get_WorldPostion();
|
||||
}
|
||||
|
||||
HRESULT CElementObject::Ready_Components(void* pArg)
|
||||
{
|
||||
__super::Ready_Components(pArg);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CElementObject::Visible(_bool bVisible)
|
||||
{
|
||||
Set_Visible(bVisible);
|
||||
m_bActive = bVisible;
|
||||
}
|
||||
|
||||
_bool CElementObject::Chack_Visible()
|
||||
{
|
||||
if (m_pOwner->Get_Visible() == false )
|
||||
{
|
||||
m_bVisible = m_pOwner->Get_Visible();
|
||||
}
|
||||
else if (static_cast<CUIObject*>(m_pOwner)->Get_Active() == false)
|
||||
{
|
||||
m_bVisible = static_cast<CUIObject*>(m_pOwner)->Get_Active();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bVisible = m_bActive;
|
||||
}
|
||||
return m_bVisible;
|
||||
}
|
||||
|
||||
HRESULT CElementObject::Ready_Components(void* pArg)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CElementObject::Free()
|
||||
|
||||
Reference in New Issue
Block a user