//
// EditorUI::checkLiveColorSelect from 0x10003c660 to 0x10003c7be (350 bytes)
//
// 2 xrefs:
// > EditorUI::selectObject @ 0x10002e845
// > EditorUI::selectObjects @ 0x10003c654
//
// 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 EditorUI::checkLiveColorSelect(EditorUI *a1)
{
ColorSelectLiveOverlay *m_colorOverlay; // rdi
GameObject *m_selectedObject; // rdi
unsigned int v4; // r14d
unsigned int v5; // eax
int v6; // ecx
int v7; // r8d
int v8; // r9d
cocos2d::CCAction *v9; // r14
HSVLiveOverlay *m_hsvOverlay; // rdi
unsigned int v11; // r14d
__int64 v12; // rax
m_colorOverlay = a1->m_colorOverlay;
if ( m_colorOverlay )
{
ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);
a1->m_colorOverlay = nullptr;
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);
v4 = (unsigned int)cocos2d::CCDelayTime::create(0.1);
v5 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)EditorUI::deselectObjectsColor);
v9 = (cocos2d::CCAction *)sub_1003B5760(v4, v5, 0, v6, v7, v8);
((void (__fastcall *)(cocos2d::CCAction *, __int64))v9->setTag)(v9, 124);
cocos2d::CCNode::runAction(a1, v9);
return;
}
LABEL_7:
if ( (unsigned int)sub_100720070(a1->m_selectedObjects) && (unsigned int)sub_100720070(a1->m_selectedObjects) )
{
v11 = 0;
do
{
v12 = sub_1007200C0(a1->m_selectedObjects, v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1512LL))(v12, 65280);
++v11;
}
while ( v11 < (unsigned int)sub_100720070(a1->m_selectedObjects) );
}
goto LABEL_4;
}
m_hsvOverlay = a1->m_hsvOverlay;
if ( m_hsvOverlay )
{
HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);
a1->m_hsvOverlay = nullptr;
EditorUI::editHSV(a1);
m_selectedObject = a1->m_selectedObject;
if ( m_selectedObject )
goto LABEL_3;
goto LABEL_7;
}
}