//
// EditorUI::colorSelectClosed from 0x14011f6f0 to 0x14011f764 (116 bytes)
//
// 5 xrefs:
// > ??> @ 0x140552d88
// > ??> @ 0x14066ff30
// > ??> @ 0x14066ff40
// > ??> @ 0x1406c954c
// > ??> @ 0x1406c9558
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorUI::colorSelectClosed(EditorUI *a1, cocos2d::CCNode *a2)
{
CCMenuItemSpriteExtra *m_unlinkBtn; // rdi
char v3; // di
CCMenuItemSpriteExtra *m_enableLinkBtn; // rax
EditorUI *v5; // rbx
m_unlinkBtn = a1->m_unlinkBtn;
if ( a2 == m_unlinkBtn )
{
v3 = BYTE1(m_unlinkBtn[1].m_nUpdateScriptHandler);
a1->m_unlinkBtn = nullptr;
}
else
{
m_enableLinkBtn = a1->m_enableLinkBtn;
if ( a2 != m_enableLinkBtn )
return;
v3 = BYTE2(m_enableLinkBtn[1].m_sInverse.b);
a1->m_enableLinkBtn = nullptr;
}
v5 = (EditorUI *)((char *)a1 - 416);
EditorUI::resetSelectedObjectsColor((EditorUI *)((char *)a1 - 416));
if ( v3 )
EditorUI::updateEditColorButton(v5);
}