// // EditorUI::centerCameraOnObject from 0x68f508 to 0x68f60c (260 bytes) // // 2 xrefs: // > EditorUI::findAndSelectObject @ 0x6be5d8 // > @ 0xa8678 // // 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::centerCameraOnObject(EditorUI *a1, GameObject *a2) { cocos2d::CCDirector *v4; // x0 float v5; // s9 const cocos2d::CCPoint *v6; // x0 float v7; // [xsp+50h] [xbp+50h] float v8; // [xsp+78h] [xbp+78h] float v9; // [xsp+7Ch] [xbp+7Ch] cocos2d::CCPoint v10; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 v4 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v4); v5 = ((float (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->getScale)( a1->m_editorLayer->m_objectLayer, WinSize.width, WinSize.height); v7 = (float)(v8 * 0.5) - (float)(a2->getPosition(a2)->x * v5); v6 = a2->getPosition(a2); cocos2d::CCPoint::CCPoint(&v10, v7, (float)(v9 * 0.5) - (float)(v6->y * v5)); a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v10); EditorUI::constrainGameLayerPosition(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source