// // EditorUI::getGroupCenter from 0x381754 to 0x3818c4 (368 bytes) // // 11 xrefs: // > EditorUI::repositionObjectsToCenter @ 0x3818f2 // > EditorUI::rotateObjects @ 0x38197c // > EditorUI::copyObjectsDetailed @ 0x381d50 // > EditorUI::activateScaleControl @ 0x39c806 // > EditorUI::activateRotationControl @ 0x39c91c // > EditorUI::alignObjects @ 0x39d366 // > EditorUI::activateTransformControl @ 0x39d8b0 // > EditorUI::scaleObjects @ 0x39e5a0 // > EditorUI::transformObjects @ 0x39e8a4 // > EditorUI::onCreateObject @ 0x3a3e24 // > KeyframeGameObject::updateShadowObjects @ 0x3eb8fe // // 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 // cocos2d::CCPoint *EditorUI::getGroupCenter( cocos2d::CCPoint *__return_ptr retstr, EditorUI *a2, cocos2d::CCArray *a3, bool a4) { _BOOL4 v4; // r11 float v7; // s16 unsigned int v8; // r6 GameObject *v9; // r5 float v10; // s17 float v11; // s18 float v12; // s19 GameObject *v13; // r5 cocos2d::CCRect *v14; // r1 cocos2d::CCPoint *v15; // r0 GameObject *v16; // r10 float v17; // s22 float v18; // s20 float v19; // s21 float v20; // r0 float v21; // s15 cocos2d::CCRect v23; // [sp+4h] [bp-18h] BYREF v4 = a4; if ( cocos2d::CCArray::count(a3) == 1 ) { v13 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, 0); GameObject::updateStartPos(v13); v14 = (cocos2d::CCRect *)v13->getPosition(v13); v15 = retstr; LABEL_25: cocos2d::CCPoint::CCPoint(v15, &v14->origin); return retstr; } v7 = 1000000.0; v8 = 0; v9 = nullptr; v10 = -1000000.0; v11 = 1000000.0; v12 = -1000000.0; while ( v8 < cocos2d::CCArray::count(a3) ) { v16 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v8); GameObject::updateStartPos(v16); ((void (__fastcall *)(cocos2d::CCRect *, GameObject *, int, int))v16->getObjectRect_0)( &v23, v16, 1065353216, 1065353216); v17 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(&v23)); v18 = COERCE_FLOAT(cocos2d::CCRect::getMinX(&v23)); v19 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(&v23)); v20 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v23)); if ( v17 > v12 ) v12 = v17; v21 = v20; if ( v18 >= v11 && v11 != 0.0 ) v18 = v11; if ( v19 > v10 ) v10 = v19; if ( v20 >= v7 && v7 != 0.0 ) v21 = v7; if ( v16->m_hasGroupParent ) { if ( v9 ) v4 = 1; else v9 = v16; } v7 = v21; ++v8; v11 = v18; } if ( !v9 || v4 ) { cocos2d::CCPoint::CCPoint( &v23.origin, v11 + (float)((float)(v12 - v11) * 0.5), v7 + (float)((float)(v10 - v7) * 0.5)); v15 = retstr; v14 = &v23; goto LABEL_25; } v9->getRealPosition(retstr, v9); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source