// // EditorUI::repositionObjectsToCenter from 0x1000345b0 to 0x100034647 (151 bytes) // // 7 xrefs: // > EditorUI::spriteFromObjectString @ 0x100034136 // > EditorUI::onCreateObject @ 0x100035498 // > EditorUI::doPasteObjects @ 0x10003e3fe // > EditorUI::createSmartObjectsFromTemplate @ 0x1000430ca // > EditorUI::createSmartObjectsFromTemplate @ 0x10004314d // > EditorUI::createPrefab @ 0x100043d11 // > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e70a5 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall EditorUI::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4) { _BOOL8 v4; // r15 unsigned int v5; // r15d GameObject *v6; // r13 cocos2d::CCPoint v7; // xmm0_8 char v8; // [rsp+0h] [rbp-40h] BYREF _BYTE v9[8]; // [rsp+8h] [rbp-38h] BYREF _BYTE v10[48]; // [rsp+10h] [rbp-30h] BYREF v4 = a4; EditorUI::getGroupCenter((EditorUI *)&v8, a2, (bool)a2); sub_10028CD00(v10, v4, &v8); if ( (unsigned int)sub_100720070(a2) ) { v5 = 0; do { v6 = (GameObject *)sub_1007200C0(a2, v5); *(double *)&v7 = sub_10028CC60(v9, v10); EditorUI::moveObject(a1, v6, v7); ++v5; } while ( v5 < (unsigned int)sub_100720070(a2) ); } }