//
// CustomizeObjectLayer::onClose from 0x10004f3a8 to 0x10004f43c (148 bytes)
//
// 6 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x10004fc6c
// > CustomizeObjectLayer::onBreakApart @ 0x10004fe38
// > CustomizeObjectLayer::recreateLayer @ 0x100050434
// > CustomizeObjectLayer::keyBackClicked @ 0x100050c90
// > sub_100050C94 @ 0x100050c98
// > CustomizeObjectLayer::init @ 0x10004d734
//
// 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::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_customColorInput; // x0
CCTextInputNode *m_textInput; // x0
GameManager *v5; // x0
m_customColorInput = a1->m_customColorInput;
m_customColorInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_customColorInput->onClickTrackNode)(m_customColorInput, 0);
m_textInput = a1->m_textInput;
if ( m_textInput )
{
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_textInput->onClickTrackNode)(m_textInput, 0);
a1->m_textInput->m_delegate = nullptr;
}
GameManager::sharedState()->m_currentColorChannel = a1->m_customColorChannel;
v5 = GameManager::sharedState();
EditorUI::updateObjectInfoLabel(v5->m_levelEditorLayer->m_editorUI);
((void (__fastcall *)(CustomizeObjectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(CustomizeObjectLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}