//
// EditorUI::onEditColor from 0x484270 to 0x4842a0 (48 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f217a
//
// 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:49:24 +0000
//
int __fastcall EditorUI::onEditColor(EditorUI *this, cocos2d::CCObject *a2)
{
int result; // r0
int v4; // r1
int v5; // r2
EffectGameObject *v6; // r3
result = EditorUI::editColorButtonUsable(this);
if ( result )
{
if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 193) + 32))(*((_DWORD *)this + 193)) == 1 )
EditorUI::editHSV((GameObject **)this);
else
EditorUI::editColor((cocos2d::CCArray **)this, v4, v5, v6);
return EditorUI::updateEditColorButton(this);
}
return result;
}