[Modify] Visible로 업데이트 및 랜더 조정

[Modify] IMGUI로 부모 자식들 조절
This commit is contained in:
fbtk
2025-11-10 23:38:22 +09:00
parent 00d7d9c320
commit 871ad2aa71
15 changed files with 241 additions and 119 deletions
+14 -7
View File
@@ -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);