//
// EditorUI::closeLiveHSVSelect from 0x14011f1f0 to 0x14011f256 (102 bytes)
//
// 5 xrefs:
// > EditorUI::checkLiveColorSelect @ 0x140110660
// > EditorUI::editColor @ 0x14011ede7
// > EditorUI::showLiveColorSelectForMode @ 0x14011eef7
// > EditorUI::editHSV @ 0x14011f025
// > ??> @ 0x1406c9528
//
// 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 EditorUI::closeLiveHSVSelect(EditorUI *a1)
{
HSVLiveOverlay *m_hsvOverlay; // rbx
HSVLiveOverlay_vtbl *v3; // rax
HSVLiveOverlay *v4; // rcx
_BOOL8 v5; // rdx
ColorSelectDelegate *m_delegate; // rcx
m_hsvOverlay = a1->m_hsvOverlay;
if ( m_hsvOverlay )
{
v3 = m_hsvOverlay->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = a1->m_hsvOverlay;
m_hsvOverlay->m_unkBool3 = 0;
v3->setKeypadEnabled(v4, 0);
m_delegate = m_hsvOverlay->m_delegate;
if ( m_delegate )
m_delegate->colorSelectClosed(m_delegate, m_hsvOverlay);
LOBYTE(v5) = 1;
m_hsvOverlay->removeFromParentAndCleanup(m_hsvOverlay, v5);
a1->m_hsvOverlay = nullptr;
}
}