//
// EditorUI::selectObject from 0x140110530 to 0x14011062d (253 bytes)
//
// 7 xrefs:
// > EditorUI::clickOnPosition @ 0x1400e2820
// > EditorUI::findAndSelectObject @ 0x1400e6f3c
// > EditorUI::onCreateObject @ 0x14010fa7f
// > EditorUI::selectObjects @ 0x140110d4b
// > EditorUI::pasteObjects @ 0x1401141bd
// > EditorUI::ccTouchEnded @ 0x1401250e0
// > ??> @ 0x1406c8ebc
//
// 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::selectObject(EditorUI *a1, GameObject *a2, bool a3)
{
cocos2d::CCArray *v5; // rax
cocos2d::CCArray *v6; // rax
__int16 v7; // [rsp+40h] [rbp+18h] BYREF
char v8; // [rsp+42h] [rbp+1Ah]
LOBYTE(v7) = a3;
if ( EditorUI::canSelectObject(a1, a2) )
{
if ( a1->m_stickyControlsEnabled
&& !a1->m_linkControlsDisabled
&& a2->m_linkedGroup > 0
&& (v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(
a1->m_editorLayer->m_linkedGroupDict,
a2->m_linkedGroup)) != nullptr
&& cocos2d::CCArray::count(v5) > 1 )
{
EditorUI::deselectAll(a1);
v6 = cocos2d::CCArray::createWithObject(a2);
EditorUI::selectObjects(a1, v6, 0);
}
else
{
a1->m_snapSelected = 1;
EditorUI::deselectAll(a1);
v7 = -256;
v8 = 0;
a1->m_selectedObject = a2;
a2->selectObject(a2, (cocos2d::ccColor3B *)&v7);
LODWORD(a1->m_selectedObject->m_unk460) = a1->m_cycledObjectIndex;
a1->m_canActivateControls = 1;
EditorUI::checkLiveColorSelect(a1);
}
}
}