//
// EditorUI::findAndSelectObject from 0x6be578 to 0x6be65c (228 bytes)
//
// 2 xrefs:
// > EditorUI::setIDPopupClosed @ 0x6be7cc
// > ??> @ 0xa31a0
//
// 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::findAndSelectObject(EditorUI *a1, int a2, bool a3)
{
LevelEditorLayer *m_editorLayer; // x0
GameObject *GameObject; // x20
GameObject *v6; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
cocos2d::CCLayer *m_objectLayer; // x20
const cocos2d::CCPoint *v9; // x0
float v10; // s2
float v11; // s3
cocos2d::CCPoint v12; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v14; // 0:s0.4,4:s1.4
m_editorLayer = a1->m_editorLayer;
if ( a3 )
GameObject = LevelEditorLayer::findGameObject(m_editorLayer, a2);
else
GameObject = GJBaseGameLayer::tryGetObject(m_editorLayer, a2);
if ( GameObject )
{
EditorUI::selectObject(a1, GameObject, 0);
EditorUI::centerCameraOnObject(a1, GameObject);
v6 = GameObject;
getPosition = GameObject->getPosition;
m_objectLayer = a1->m_editorLayer->m_objectLayer;
v9 = getPosition(v6);
cocos2d::CCNode::convertToWorldSpace(m_objectLayer, v9);
cocos2d::CCPoint::CCPoint(&v13, &v12);
v14.x = 50.0;
v14.y = 0.8;
EditorUI::playCircleAnim(a1, v14, v10, v11);
}
}