//
// CustomizeObjectLayer::keyBackClicked from 0x1001f9690 to 0x1001f9730 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d97d0
//
// 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::keyBackClicked(CustomizeObjectLayer *a1)
{
CCTextInputNode *m_customColorInput; // rdi
CCTextInputNode *m_textInput; // rdi
GameManager *v4; // rax
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;
v4 = GameManager::sharedState();
EditorUI::updateObjectInfoLabel(v4->m_levelEditorLayer->m_editorUI);
((void (__fastcall *)(CustomizeObjectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(CustomizeObjectLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}