//
// CustomizeObjectLayer::toggleVisible from 0x1001f9180 to 0x1001f92d5 (341 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x1001f7577
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)
{
unsigned int v2; // r14d
__int64 v3; // rax
unsigned int v4; // r14d
__int64 v5; // rax
unsigned int v6; // r14d
__int64 v7; // rax
CCTextInputNode *m_textInput; // rdi
a1->m_showTextInput = a1->m_selectedMode == 3;
if ( (unsigned int)sub_100720070(a1->m_colorTabNodes) )
{
v2 = 0;
do
{
v3 = sub_1007200C0(a1->m_colorTabNodes, v2);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3 + 328LL))(v3, !a1->m_showTextInput);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_colorTabNodes) );
}
if ( (unsigned int)sub_100720070(a1->m_detailTabNodes) )
{
v4 = 0;
do
{
v5 = sub_1007200C0(a1->m_detailTabNodes, v4);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v5 + 328LL))(v5, !a1->m_showTextInput);
++v4;
}
while ( v4 < (unsigned int)sub_100720070(a1->m_detailTabNodes) );
}
if ( a1->m_customColorSelected )
{
if ( (unsigned int)sub_100720070(a1->m_textTabNodes) )
{
v6 = 0;
do
{
v7 = sub_1007200C0(a1->m_textTabNodes, v6);
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v7 + 328LL))(v7, a1->m_showTextInput);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(a1->m_textTabNodes) );
}
m_textInput = a1->m_textInput;
if ( m_textInput )
{
((void (__fastcall *)(CCTextInputNode *, bool))m_textInput->setTouchEnabled)(m_textInput, a1->m_showTextInput);
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_textInput->setVisible)(a1->m_textInput, a1->m_showTextInput);
}
}
CustomizeObjectLayer::updateCurrentSelection(a1);
}