// // EditorUI::findAndSelectObject from 0x1400e6ee0 to 0x1400e7143 (611 bytes) // // 4 xrefs: // > EditorUI::setIDPopupClosed @ 0x1400e6ebf // > @ 0x14066ead8 // > @ 0x14066eae8 // > @ 0x1406c8d90 // // 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) { GameObject *Object; // rdi __int64 v6; // rcx cocos2d::CCDirector *v7; // rax double v8; // xmm0_8 float v9; // xmm10_4 __int64 v10; // rax float v11; // xmm8_4 float v12; // xmm7_4 float v13; // xmm8_4 cocos2d::CCLayer *m_objectLayer; // rbx const cocos2d::CCPoint *v15; // rax const cocos2d::CCPoint *v16; // rdi CCCircleWave *v17; // rbx CCCircleWave_vtbl *v18; // r8 cocos2d::CCArray *m_objects; // rax cocos2d::ccArray *data; // rcx __int64 num; // rax GameObject **arr; // rcx GameObject **i; // rdx cocos2d::CCPoint v24; // [rsp+30h] [rbp-58h] BYREF struct cocos2d::CCPoint v25; // [rsp+38h] [rbp-50h] BYREF cocos2d::CCPoint v26; // [rsp+A8h] [rbp+20h] BYREF if ( a3 ) { m_objects = a1->m_editorLayer->m_objects; if ( m_objects ) { data = m_objects->data; num = data->num; if ( (_DWORD)num ) { arr = (GameObject **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { Object = *arr; if ( !*arr ) break; if ( Object->m_uniqueID == a2 ) goto LABEL_3; } } } } else { Object = GJBaseGameLayer::tryGetObject(a1->m_editorLayer, a2); if ( Object ) { LABEL_3: EditorUI::selectObject(a1, Object, a3); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); v8 = ((double (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); v9 = v26.y * 0.5; v10 = (__int64)Object->getPosition_0(Object); v11 = v26.x * 0.5; v12 = *(float *)(v10 + 4); v13 = v11 - (float)(*(float *)&v8 * Object->getPosition_0(Object)->x); cocos2d::CCPoint::CCPoint(&v24, v13, v9 - (float)(v12 * *(float *)&v8)); a1->m_editorLayer->m_objectLayer->setPosition_0(a1->m_editorLayer->m_objectLayer, &v24); EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0); m_objectLayer = a1->m_editorLayer->m_objectLayer; Object->getPosition_0(Object); cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v25); cocos2d::CCPoint::CCPoint(&v26, &v25); v16 = v15; v17 = CCCircleWave::create(1.0, 50.0, 0.80000001, 0, 0); v18 = v17->__vftable; *(_WORD *)&v17->m_color.r = -1; v17->m_color.b = -1; v18->setPosition_0(v17, v16); a1->addChild_0(a1, v17, 0); v17->m_circleMode = Outline; } } }