//
// EditorUI::onEditColor from 0x100009380 to 0x1000093d9 (89 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x10060cb66
// > EditorUI::init @ 0x100006c54
//
// 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 12:18:48 +0000
//
__int64 __fastcall EditorUI::onEditColor(__int64 a1)
{
__int64 result; // rax
if ( *(_QWORD *)(a1 + 1496) || (result = sub_1007FEF90(*(_QWORD *)(a1 + 896)), (_DWORD)result) )
{
if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1104) + 64LL))(*(_QWORD *)(a1 + 1104)) == 1 )
EditorUI::editHSV(a1);
else
EditorUI::editColor(a1);
return EditorUI::updateEditColorButton(a1);
}
return result;
}