//
// EditorUI::checkLiveColorSelect from 0x6f4440 to 0x6f4518 (216 bytes)
//
// 2 xrefs:
// > EditorUI::selectObject @ 0x6f45a0
// > EditorUI::selectObjects @ 0x6f4818
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:38 +0000
//
EditorUI *__fastcall EditorUI::checkLiveColorSelect(EditorUI *this)
{
cocos2d::CCArray **v1; // r4
int v2; // r1
int v3; // r2
EffectGameObject *v4; // r3
unsigned int v5; // r5
int v6; // r0
float v7; // r1
cocos2d::CCSequence *v8; // r6
cocos2d::CCFiniteTimeAction *v9; // r0
int v10; // r3
cocos2d::CCAction *v11; // r5
v1 = (cocos2d::CCArray **)this;
if ( *((_DWORD *)this + 256) )
{
EditorUI::closeLiveColorSelect(this);
EditorUI::editColor(v1, v2, v3, v4);
}
else
{
if ( !*((_DWORD *)this + 257) )
return this;
EditorUI::closeLiveHSVSelect(this);
EditorUI::editHSV(v1);
}
v5 = (unsigned int)v1[249];
if ( v5 )
{
(*(void (__fastcall **)(cocos2d::CCArray *, int))(*(_DWORD *)v5 + 764))(v1[249], 65280);
}
else if ( cocos2d::CCArray::count(v1[167]) )
{
while ( v5 < cocos2d::CCArray::count(v1[167]) )
{
v6 = cocos2d::CCArray::objectAtIndex(v1[167], v5++);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 764))(v6, 65280);
}
}
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)v1, 124);
v8 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3DCCCCCD, v7);
v9 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v1, EditorUI::deselectObjectsColor, 0);
v11 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v8, v9, 0, v10, EditorUI::deselectObjectsColor, 0);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v11 + 36))(v11, 124);
return (EditorUI *)cocos2d::CCNode::runAction((cocos2d::CCNode *)v1, v11);
}