// // EditorUI::repositionObjectsToCenter from 0x1401142c0 to 0x140114360 (160 bytes) // // 10 xrefs: // > EditorUI::spriteFromObjectString @ 0x14010e0f8 // > EditorUI::onCreateObject @ 0x14010fd1a // > EditorUI::doPasteObjects @ 0x140113573 // > EditorUI::createSmartObjectsFromTemplate @ 0x140117453 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401174d1 // > EditorUI::createPrefab @ 0x140117d1a // > SetupSmartBlockLayer::onPasteTemplate @ 0x140458042 // > @ 0x14066f460 // > @ 0x14066f470 // > @ 0x1406c90b4 // // 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::repositionObjectsToCenter(EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, bool a4) { unsigned int i; // ebx GameObject *v8; // rdi cocos2d::CCPoint v9; // rax _BYTE v10[40]; // [rsp+20h] [rbp-28h] BYREF EditorUI::getGroupCenter(a1, (cocos2d::CCArray *)v10, (bool)a2); ((void (__fastcall *)(_QWORD, _QWORD, _QWORD))cocos2d::CCPoint::operator-)(a3, &v10[8], v10); for ( i = 0; i < cocos2d::CCArray::count(a2); ++i ) { v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, i); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10[16], (const struct cocos2d::CCPoint *)&v10[8]); EditorUI::moveObject(a1, v8, v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source