//
// ColorSelectLiveOverlay::closeColorSelect from 0x1000f6088 to 0x1000f60e8 (96 bytes)
//
// 8 xrefs:
// > ColorSelectLiveOverlay::keyBackClicked @ 0x1000f655c
// > sub_1000F6560 @ 0x1000f6568
// > EditorUI::editObject @ 0x1003e48d0
// > EditorUI::checkLiveColorSelect @ 0x1003eda78
// > EditorUI::editColor @ 0x1003edbdc
// > EditorUI::editHSV @ 0x1003edce0
// > EditorUI::showLiveColorSelectForMode @ 0x1003f5c38
// > ColorSelectLiveOverlay::init @ 0x1000f5ad8
//
// 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 ColorSelectLiveOverlay::closeColorSelect(ColorSelectLiveOverlay *a1, cocos2d::CCObject *a2)
{
ColorSelectDelegate *m_delegate; // x0
a1->m_closeButtonPressed = a2 != nullptr;
((void (__fastcall *)(ColorSelectLiveOverlay *, _QWORD))a1->setKeypadEnabled)(a1, 0);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(ColorSelectDelegate *, ColorSelectLiveOverlay *))m_delegate->colorSelectClosed)(
m_delegate,
a1);
((void (__fastcall *)(ColorSelectLiveOverlay *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}