// // EditorUI::centerCameraOnObject from 0x1003ea128 to 0x1003ea200 (216 bytes) // // 1 xrefs: // > EditorUI::findAndSelectObject @ 0x1003ea070 // // 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 __fastcall EditorUI::centerCameraOnObject(EditorUI *a1, GameObject *a2) { cocos2d::CCDirector *v4; // x0 float v5; // s8 float v6; // s9 __n128 v7; // q1 __n128 v8; // q0 _DWORD v9[4]; // [xsp+0h] [xbp-40h] 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); v6 = (float)(*(float *)&v9[2] * 0.5) - (float)(*(float *)((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2) * v5); v7.n128_f32[0] = (float)(*(float *)&v9[3] * 0.5) - (float)(*(float *)(((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2) + 4) * v5); v8.n128_f32[0] = v6; sub_100022980(v8, v7, v9); ((void (__fastcall *)(cocos2d::CCLayer *, _DWORD *))a1->m_editorLayer->m_objectLayer->setPosition)( a1->m_editorLayer->m_objectLayer, v9); EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source