//
// EditorUI::onEditColor from 0x1401bde80 to 0x1401bdee3 (99 bytes)
//
// 2 xrefs:
// > EditorUI::init @ 0x1401ab655
// > ??> @ 0x14091a498
//
// 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:01 +0000
//
unsigned int __fastcall EditorUI::onEditColor(__int64 a1)
{
unsigned int result; // eax
if ( *(_QWORD *)(a1 + 1568) || (result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944))) != 0 )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1152) + 56LL))(*(_QWORD *)(a1 + 1152)) == 1 )
EditorUI::editHSV(a1);
else
EditorUI::editColor(a1);
return EditorUI::updateEditColorButton(a1);
}
return result;
}