//
// EditorUI::selectObject from 0x6be48c to 0x6be578 (236 bytes)
//
// 8 xrefs:
// > EditorUI::findAndSelectObject @ 0x6be5cc
// > EditorUI::selectObjects @ 0x6bed7c
// > EditorUI::pasteObjects @ 0x6bfafc
// > EditorUI::onCreateObject @ 0x6bfea4
// > EditorUI::onCreateObject @ 0x6c01bc
// > EditorUI::clickOnPosition @ 0x6c1808
// > EditorUI::ccTouchEnded @ 0x6c30dc
// > ??> @ 0xc4518
//
// 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)
{
int m_linkedGroup; // w1
cocos2d::CCArray *StickyGroup; // x0
cocos2d::CCObject *v7; // x1
cocos2d::CCArray *v8; // x0
GameObject_vtbl *v9; // x1
if ( a3 || EditorUI::canSelectObject(a1, a2) )
{
if ( a1->m_stickyControlsEnabled
&& !a1->m_linkControlsDisabled
&& (m_linkedGroup = a2->m_linkedGroup, m_linkedGroup > 0)
&& (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, m_linkedGroup)) != nullptr
&& (unsigned int)cocos2d::CCArray::count(StickyGroup) > 1 )
{
EditorUI::deselectAll(a1);
v8 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)a2, v7);
EditorUI::selectObjects(a1, v8, 0);
}
else
{
a1->m_snapSelected = 1;
EditorUI::deselectAll(a1);
v9 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_selectedObject = a2;
((void (__fastcall *)(GameObject *, __int64))v9->selectObject)(a2, 65280);
LODWORD(a1->m_selectedObject->m_unk460) = a1->m_cycledObjectIndex;
a1->m_canActivateControls = 1;
EditorUI::checkLiveColorSelect(a1);
}
}
}