//
// EditorUI::checkLiveColorSelect from 0x68e530 to 0x68e658 (296 bytes)
//
// 3 xrefs:
// > EditorUI::selectObject @ 0x6be558
// > EditorUI::selectObjects @ 0x6bec88
// > ??> @ 0x6f8e8
//
// 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::checkLiveColorSelect(EditorUI *a1)
{
GameObject *m_selectedObject; // x0
cocos2d::CCSequence *v3; // x20
cocos2d::CCFiniteTimeAction *v4; // x0
cocos2d::CCAction *v5; // x20
unsigned int v6; // w20
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
if ( a1->m_colorOverlay )
{
EditorUI::closeLiveColorSelect(a1);
EditorUI::editColor(a1);
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
{
LABEL_3:
((void (__fastcall *)(GameObject *, __int64))m_selectedObject->selectObject)(m_selectedObject, 65280);
LABEL_4:
cocos2d::CCNode::stopActionByTag(a1, 124);
v3 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.1);
v4 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EditorUI::deselectObjectsColor, 0);
v5 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v3, v4, 0);
v5->setTag(v5, 124);
cocos2d::CCNode::runAction(a1, v5);
return;
}
LABEL_7:
if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) )
{
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects);
v9 = v6++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 1512LL))(v7, 65280);
}
}
goto LABEL_4;
}
if ( a1->m_hsvOverlay )
{
EditorUI::closeLiveHSVSelect(a1);
EditorUI::editHSV(a1);
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
goto LABEL_3;
goto LABEL_7;
}
}