[Modify] Visible로 업데이트 및 랜더 조정
[Modify] IMGUI로 부모 자식들 조절
This commit is contained in:
@@ -71,13 +71,7 @@ HRESULT CPanelObject::Ready_Element(void* pArg)
|
||||
|
||||
void CPanelObject::Visible(_bool bVisible)
|
||||
{
|
||||
if (m_Elements.empty())
|
||||
return;
|
||||
|
||||
for (auto iter : m_Elements)
|
||||
{
|
||||
static_cast<CUIObject*>(iter)->Visible(bVisible);
|
||||
}
|
||||
m_bActive = bVisible;
|
||||
}
|
||||
|
||||
CGameObject* CPanelObject::Get_Element(const wstring& Name)
|
||||
@@ -113,6 +107,19 @@ void CPanelObject::Add_Element(wstring Name, CGameObject* pPanel)
|
||||
m_iElements_Count++;
|
||||
}
|
||||
|
||||
_bool CPanelObject::Chack_Visible()
|
||||
{
|
||||
if (m_pOwner->Get_Visible() == false)
|
||||
{
|
||||
m_bVisible = m_pOwner->Get_Visible();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_bVisible = m_bActive;
|
||||
}
|
||||
return m_bVisible;
|
||||
}
|
||||
|
||||
CGameObject* CPanelObject::Find_Element(const wstring& Name)
|
||||
{
|
||||
auto iter = m_Elements_map.find(Name);
|
||||
|
||||
Reference in New Issue
Block a user