//
// CustomizeObjectLayer::toggleVisible from 0x462150 to 0x462214 (196 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::onSelectMode @ 0x4622ba
//
// 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 CustomizeObjectLayer::toggleVisible(CustomizeObjectLayer *a1)
{
unsigned int v2; // r5
int v3; // r0
unsigned int i; // r5
int v5; // r0
unsigned int j; // r5
int v7; // r0
CCTextInputNode *m_textInput; // r0
v2 = 0;
a1->m_showTextInput = a1->m_selectedMode == 3;
while ( v2 < cocos2d::CCArray::count(a1->m_colorTabNodes) )
{
v3 = cocos2d::CCArray::objectAtIndex(a1->m_colorTabNodes, v2++);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v3 + 164))(v3, !a1->m_showTextInput);
}
for ( i = 0; i < cocos2d::CCArray::count(a1->m_detailTabNodes); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_detailTabNodes, i);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v5 + 164))(v5, !a1->m_showTextInput);
}
if ( a1->m_customColorSelected )
{
for ( j = 0; j < cocos2d::CCArray::count(a1->m_textTabNodes); ++j )
{
v7 = cocos2d::CCArray::objectAtIndex(a1->m_textTabNodes, j);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v7 + 164))(v7, a1->m_showTextInput);
}
m_textInput = a1->m_textInput;
if ( m_textInput )
{
m_textInput->setTouchEnabled(m_textInput, a1->m_showTextInput);
a1->m_textInput->setVisible(a1->m_textInput, a1->m_showTextInput);
}
}
CustomizeObjectLayer::updateCurrentSelection(a1);
}