// // EditorUI::updateZoom from 0x695fc8 to 0x6961ac (484 bytes) // // 4 xrefs: // > EditorUI::playtestStopped @ 0x696278 // > EditorUI::zoomGameLayer @ 0x6964cc // > EditorUI::zoomGameLayer @ 0x6964e8 // > @ 0xaa358 // // 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::updateZoom(EditorUI *a1, float a2) { cocos2d::CCDirector *v4; // x0 LevelEditorLayer *m_editorLayer; // x0 cocos2d::CCNode *m_objectLayer; // x21 __int64 v7; // x0 float v8; // s11 cocos2d::CCNode *v9; // x0 __int64 v10; // x0 cocos2d::CCNode *v11; // x0 float v12; // s1 float v13; // [xsp+70h] [xbp+70h] float v14; // [xsp+74h] [xbp+74h] cocos2d::CCPoint v15; // [xsp+78h] [xbp+78h] BYREF _BYTE v16[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v17; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v18; // [xsp+90h] [xbp+90h] BYREF 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 = a1->m_editorLayer->getParent(a1->m_editorLayer); v9->setScale(v9, 1.0); cocos2d::CCPoint::CCPoint(&v18, v13 * 0.5, v14 * 0.5); LODWORD(v12) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v18).y); ((void (__fastcall *)(cocos2d::CCLayer *, float, float))a1->m_editorLayer->m_objectLayer->setScale)( a1->m_editorLayer->m_objectLayer, a2, v12); cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v15); cocos2d::CCPoint::CCPoint(&v18, v13 * 0.5, v14 * 0.5); cocos2d::CCPoint::operator-(&v17, &v18, v16); v10 = (__int64)m_objectLayer->getPosition(m_objectLayer); cocos2d::CCPoint::operator+(&v18, v10, &v17); m_objectLayer->setPosition(m_objectLayer, &v18); EditorUI::constrainGameLayerPosition(a1); v11 = a1->m_editorLayer->getParent(a1->m_editorLayer); v11->setScale(v11, v8); EditorUI::updateSlider(a1); a1->m_rotationControl->setScale(a1->m_rotationControl, 1.0 / a2); GJTransformControl::scaleButtons(a1->m_transformControl, 1.0 / a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source