//
// EditorUI::checkLiveColorSelect from 0x1401c96e0 to 0x1401c9838 (344 bytes)
//
// 5 xrefs:
// > EditorUI::selectObject @ 0x1401c757d
// > EditorUI::selectObjects @ 0x1401c7e9e
// > ??> @ 0x1408a2e8c
// > ??> @ 0x1408a2e9c
// > ??> @ 0x14091a8ac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:06 +0000
//
void __fastcall EditorUI::checkLiveColorSelect(__int64 a1)
{
__int64 v2; // rcx
unsigned int i; // ebx
struct cocos2d::CCObject *v4; // rax
__int64 v5; // rbx
struct cocos2d::CCFiniteTimeAction *v6; // rax
struct cocos2d::CCAction *v7; // rbx
__int16 v8; // [rsp+30h] [rbp+8h] BYREF
char v9; // [rsp+32h] [rbp+Ah]
if ( *(_QWORD *)(a1 + 1616) )
{
EditorUI::closeLiveColorSelect(a1);
EditorUI::editColor(a1);
}
else
{
if ( !*(_QWORD *)(a1 + 1624) )
return;
EditorUI::closeLiveHSVSelect(a1);
EditorUI::editHSV((_QWORD *)a1);
}
v2 = *(_QWORD *)(a1 + 1568);
if ( v2 )
{
v8 = -256;
v9 = 0;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v2 + 1376LL))(v2, &v8);
}
else if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), i);
v8 = -256;
v9 = 0;
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int16 *))(*(_QWORD *)v4 + 1376LL))(v4, &v8);
}
}
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 124);
v5 = cocos2d::CCCallFunc::create(a1, EditorUI::deselectObjectsColor);
v6 = cocos2d::CCDelayTime::create(0.1);
v7 = cocos2d::CCSequence::create(v6, v5, 0);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 124);
cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v7);
}