// // EditorUI::getGroupCenter from 0x68f974 to 0x68fb88 (532 bytes) // // 12 xrefs: // > EditorUI::repositionObjectsToCenter @ 0x68fbd8 // > EditorUI::rotateObjects @ 0x68fffc // > EditorUI::copyObjectsDetailed @ 0x6901d8 // > EditorUI::activateScaleControl @ 0x6b4c4c // > EditorUI::activateRotationControl @ 0x6b4d94 // > EditorUI::alignObjects @ 0x6b5de0 // > EditorUI::activateTransformControl @ 0x6b65dc // > EditorUI::scaleObjects @ 0x6b7c04 // > EditorUI::transformObjects @ 0x6b82b8 // > EditorUI::onCreateObject @ 0x6c0050 // > KeyframeGameObject::updateShadowObjects @ 0x763c68 // > @ 0x85b78 // // 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(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { cocos2d::CCPoint *v3; // x8 cocos2d::CCPoint *v5; // x26 unsigned int v6; // w24 float v7; // s9 unsigned int v8; // w20 float v9; // s13 GameObject *v10; // x23 float v11; // s10 float v12; // s14 GameObject *v13; // x21 float v14; // s0 float v15; // s12 float v16; // s0 float v17; // s8 float v18; // s0 float v19; // s11 float v20; // s0 GameObject *v23; // x19 const cocos2d::CCPoint *v24; // x0 cocos2d::CCRect v25; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v5 = v3; v6 = a3; if ( (unsigned int)cocos2d::CCArray::count(a2) == 1 ) { v23 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, 0); GameObject::updateStartPos(v23); v24 = v23->getPosition(v23); cocos2d::CCPoint::CCPoint(v5, v24); } else { v7 = 1000000.0; v8 = 0; v9 = -1000000.0; v10 = nullptr; v11 = 1000000.0; v12 = -1000000.0; while ( v8 < (unsigned int)cocos2d::CCArray::count(a2) ) { v13 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v8); GameObject::updateStartPos(v13); v13->getObjectRect_0(v13, 1.0, 1.0); cocos2d::CCRect::getMaxX(&v25); v15 = v14; cocos2d::CCRect::getMinX(&v25); v17 = v16; cocos2d::CCRect::getMaxY(&v25); v19 = v18; cocos2d::CCRect::getMinY(&v25); if ( v12 < v15 ) v12 = v15; if ( v11 <= v17 && v11 != 0.0 ) v17 = v11; if ( v9 < v19 ) v9 = v19; if ( v7 <= v20 && v7 != 0.0 ) v20 = v7; if ( v13->m_hasGroupParent ) { if ( v10 ) v6 = 1; else v10 = v13; } v7 = v20; ++v8; v11 = v17; } if ( (v10 != nullptr) > v6 ) { v10->getRealPosition(v10); } else { cocos2d::CCPoint::CCPoint( &v25.origin, v11 + (float)((float)(v12 - v11) * 0.5), v7 + (float)((float)(v9 - v7) * 0.5)); cocos2d::CCPoint::CCPoint(v5, &v25.origin); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source