//
// CustomizeObjectLayer::onClose from 0x83fa8c to 0x83fb2c (160 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::onBreakApart @ 0x83fb48
// > CustomizeObjectLayer::keyBackClicked @ 0x83fb74
// > CustomizeObjectLayer::onLiveEdit @ 0x840f14
// > CustomizeObjectLayer::recreateLayer @ 0x84411c
// > ??> @ 0xa47c0
// > CustomizeObjectLayer::init @ 0x841f60
// > ??> @ 0x122db08
//
// 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::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_textInput; // x0
GameManager *v4; // x0
a1->m_customColorInput->m_delegate = nullptr;
a1->m_customColorInput->onClickTrackNode(a1->m_customColorInput, 0);
m_textInput = a1->m_textInput;
if ( m_textInput )
{
m_textInput->onClickTrackNode(m_textInput, 0);
a1->m_textInput->m_delegate = nullptr;
}
GameManager::sharedState()->m_currentColorChannel = a1->m_customColorChannel;
v4 = GameManager::sharedState();
EditorUI::updateObjectInfoLabel(v4->m_levelEditorLayer->m_editorUI);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}