//
// EditorUI::selectObject from 0x1003e6e48 to 0x1003e6f30 (232 bytes)
//
// 7 xrefs:
// > EditorUI::clickOnPosition @ 0x1003e6800
// > EditorUI::findAndSelectObject @ 0x1003ea064
// > EditorUI::onCreateObject @ 0x1003eb5c8
// > EditorUI::onCreateObject @ 0x1003eb630
// > EditorUI::pasteObjects @ 0x1003ece2c
// > EditorUI::selectObjects @ 0x1003ed96c
// > EditorUI::ccTouchEnded @ 0x1003f95fc
//
// 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 __fastcall EditorUI::selectObject(EditorUI *a1, GameObject *a2, bool a3)
{
int m_linkedGroup; // w1
cocos2d::CCArray *StickyGroup; // x0
cocos2d::CCArray *v7; // x1
if ( a3 || EditorUI::canSelectObject(a1, a2) )
{
if ( a1->m_stickyControlsEnabled
&& !a1->m_linkControlsDisabled
&& (m_linkedGroup = a2->m_linkedGroup, m_linkedGroup >= 1)
&& (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup)) != nullptr
&& (unsigned int)sub_10024A36C((__int64)StickyGroup) >= 2 )
{
EditorUI::deselectAll(a1);
v7 = (cocos2d::CCArray *)sub_10024A1B8((__int64)a2);
EditorUI::selectObjects(a1, v7, 0);
}
else
{
a1->m_snapSelected = 1;
EditorUI::deselectAll(a1);
a1->m_selectedObject = a2;
((void (__fastcall *)(GameObject *, __int64))a2->selectObject)(a2, 65280);
LODWORD(a1->m_selectedObject->m_unk460) = a1->m_cycledObjectIndex;
a1->m_canActivateControls = 1;
EditorUI::checkLiveColorSelect(a1);
}
}
}