//
// ColorSelectPopup::closeColorSelect from 0x10041e660 to 0x10041e79c (316 bytes)
//
// 3 xrefs:
// > ColorSelectPopup::keyBackClicked @ 0x10041fa40
// > sub_10041FA44 @ 0x10041fa48
// > ColorSelectPopup::init @ 0x10041c6a0
//
// 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 ColorSelectPopup::closeColorSelect(ColorSelectPopup *a1, cocos2d::CCObject *a2)
{
CCTextInputNode *m_colorInput; // x0
CCTextInputNode *m_fadeTimeInput; // x0
CCTextInputNode *m_copyColorInput; // x0
CCTextInputNode *m_rInput; // x0
CCTextInputNode *m_gInput; // x0
CCTextInputNode *m_bInput; // x0
CCTextInputNode *m_hexInput; // x0
ConfigureHSVWidget *m_hsvWidget; // x8
GameManager *v11; // x0
ColorSelectDelegate *m_delegate; // x0
m_colorInput = a1->m_colorInput;
if ( m_colorInput )
{
m_colorInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_colorInput->onClickTrackNode)(m_colorInput, 0);
}
m_fadeTimeInput = a1->m_fadeTimeInput;
if ( m_fadeTimeInput )
{
m_fadeTimeInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_fadeTimeInput->onClickTrackNode)(m_fadeTimeInput, 0);
}
m_copyColorInput = a1->m_copyColorInput;
m_copyColorInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_copyColorInput->onClickTrackNode)(m_copyColorInput, 0);
m_rInput = a1->m_rInput;
m_rInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_rInput->onClickTrackNode)(m_rInput, 0);
m_gInput = a1->m_gInput;
m_gInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_gInput->onClickTrackNode)(m_gInput, 0);
m_bInput = a1->m_bInput;
m_bInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_bInput->onClickTrackNode)(m_bInput, 0);
m_hexInput = a1->m_hexInput;
m_hexInput->m_delegate = nullptr;
((void (__fastcall *)(CCTextInputNode *, _QWORD))m_hexInput->onClickTrackNode)(m_hexInput, 0);
m_hsvWidget = a1->m_hsvWidget;
if ( !m_hsvWidget->m_mixed )
{
a1->m_hsv = m_hsvWidget->m_hsv;
ColorSelectPopup::updateHSVValue(a1);
}
v11 = GameManager::sharedState();
LevelEditorLayer::resetEffectTriggerOptim(v11->m_levelEditorLayer, a1->m_gameObject, a1->m_gameObjects);
((void (__fastcall *)(ColorSelectPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(ColorSelectDelegate *, ColorSelectPopup *))m_delegate->colorSelectClosed)(m_delegate, a1);
((void (__fastcall *)(ColorSelectPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}