// // EditorUI::updateZoom from 0x1003ee6c8 to 0x1003ee858 (400 bytes) // // 4 xrefs: // > EditorUI::zoomIn @ 0x1003c7aac // > EditorUI::zoomOut @ 0x1003c7b08 // > EditorUI::playtestStopped @ 0x1003ee6c4 // > EditorUI::scrollWheel @ 0x1003fa828 // // 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::updateZoom(EditorUI *a1, float a2) { cocos2d::CCDirector *v4; // x0 LevelEditorLayer *m_editorLayer; // x0 cocos2d::CCNode *m_objectLayer; // x20 __int64 v7; // x0 float v8; // s9 __int64 v9; // x0 __n128 v10; // q0 __n128 v11; // q1 __n128 v12; // q0 __n128 v13; // q1 double v14; // d0 float32x2_t *v15; // x0 double v16; // d0 __int64 v17; // x0 float v18; // s8 float v19; // s1 float32x2_t v20; // [xsp+8h] [xbp-58h] BYREF float32x2_t v21; // [xsp+10h] [xbp-50h] BYREF float32x2_t v22; // [xsp+18h] [xbp-48h] BYREF cocos2d::CCPoint v23; // [xsp+20h] [xbp-40h] BYREF float v24; // [xsp+28h] [xbp-38h] float v25; // [xsp+2Ch] [xbp-34h] cocos2d::CCSize WinSize; // 0:kr00_8.8 v4 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v4); m_editorLayer = a1->m_editorLayer; m_objectLayer = m_editorLayer->m_objectLayer; v7 = ((__int64 (__fastcall *)(LevelEditorLayer *, float, float))m_editorLayer->getParent)( m_editorLayer, WinSize.width, WinSize.height); v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 168LL))(v7); v9 = ((__int64 (__fastcall *)(LevelEditorLayer *))a1->m_editorLayer->getParent)(a1->m_editorLayer); v10 = ((__n128 (__fastcall *)(__int64, float))*(_QWORD *)(*(_QWORD *)v9 + 160LL))(v9, 1.0); v10.n128_f32[0] = v24 * 0.5; v11.n128_f32[0] = v25 * 0.5; sub_100022980(v10, v11, &v22); LODWORD(v19) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(m_objectLayer, (const cocos2d::CCPoint *)&v22).y); ((void (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->setScale)( a1->m_editorLayer->m_objectLayer, a2, v19); cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v23); v12.n128_f32[0] = v24 * 0.5; v13.n128_f32[0] = v25 * 0.5; sub_100022980(v12, v13, &v20); *(float32x2_t *)&v14 = sub_1000229F0(&v20, &v22, &v21); v15 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCNode *, double))m_objectLayer->getPosition)( m_objectLayer, v14); *(float32x2_t *)&v16 = sub_1000229DC(v15, &v21, &v20); ((void (__fastcall *)(cocos2d::CCNode *, float32x2_t *, double))m_objectLayer->setPosition)(m_objectLayer, &v20, v16); EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0); v17 = ((__int64 (__fastcall *)(LevelEditorLayer *))a1->m_editorLayer->getParent)(a1->m_editorLayer); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, v8); EditorUI::updateSlider(a1); v18 = 1.0 / a2; ((void (__fastcall *)(GJRotationControl *, float))a1->m_rotationControl->setScale)(a1->m_rotationControl, v18); GJTransformControl::scaleButtons(a1->m_transformControl, v18); }