//
// ColorSelectLiveOverlay::closeColorSelect from 0x100569bb0 to 0x100569bfc (76 bytes)
//
// 8 xrefs:
// > EditorUI::editObject @ 0x10002aec2
// > EditorUI::checkLiveColorSelect @ 0x10003c67c
// > EditorUI::closeLiveColorSelect @ 0x10003c7d7
// > EditorUI::editColor @ 0x10003c854
// > EditorUI::editHSV @ 0x10003c9ca
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x100049ec4
// > EditorUI::showLiveColorSelectForMode @ 0x100049fcb
// > ColorSelectLiveOverlay::init @ 0x1005694a9
//
// 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; // rdi
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);
}