//
// EditorUI::colorSelectClosed from 0x68eb58 to 0x68ebbc (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorUI::colorSelectClosed @ 0x68ebc0
// > ??> @ 0x9e4f0
// > ??> @ 0x1156bb0
//
// 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::colorSelectClosed(EditorUI *a1, cocos2d::CCNode *a2)
{
ColorSelectLiveOverlay *m_colorOverlay; // x2
HSVLiveOverlay *m_hsvOverlay; // x2
_BOOL4 m_closeButtonPressed; // w20
m_colorOverlay = a1->m_colorOverlay;
if ( m_colorOverlay == a2 )
{
m_closeButtonPressed = m_colorOverlay->m_closeButtonPressed;
a1->m_colorOverlay = nullptr;
EditorUI::resetSelectedObjectsColor(a1);
}
else
{
m_hsvOverlay = a1->m_hsvOverlay;
if ( m_hsvOverlay != a2 )
return;
m_closeButtonPressed = m_hsvOverlay->m_unkBool3;
a1->m_hsvOverlay = nullptr;
EditorUI::resetSelectedObjectsColor(a1);
}
if ( m_closeButtonPressed )
EditorUI::updateEditColorButton(a1);
}