// // EditorUI::activateRotationControl from 0x140122fd0 to 0x140123101 (305 bytes) // // 8 xrefs: // > EditorUI::undoLastAction @ 0x140111866 // > EditorUI::redoLastAction @ 0x1401118d6 // > EditorUI::toggleSpecialEditButtons @ 0x14011acb2 // > EditorUI::moveObjectCall_1 @ 0x14011fc76 // > EditorUI::createMoveMenu @ 0x14011b8d1 // > @ 0x140670514 // > @ 0x140670524 // > @ 0x1406c98dc // // 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::activateRotationControl(EditorUI *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *m_selectedObjects; // rcx EditorUI *v4; // rcx cocos2d::CCPoint GroupCenter; // rax GJRotationControl *m_rotationControl; // rbx GJRotationControl_vtbl *v7; // rdi const cocos2d::CCPoint *v8; // rax GJRotationControl_vtbl *v9; // rbx _BOOL8 v10; // rdx char v11; // [rsp+30h] [rbp+8h] BYREF if ( (cocos2d::CCArray::count(a1->m_selectedObjects) || a1->m_selectedObject) && (!a1->m_rotationControl->isVisible(a1->m_rotationControl) || a1->m_canActivateControls) ) { EditorUI::deactivateTransformControl(a1); m_selectedObjects = a1->m_selectedObjects; a1->m_canActivateControls = 0; if ( cocos2d::CCArray::count(m_selectedObjects) ) { GroupCenter = EditorUI::getGroupCenter(v4, (cocos2d::CCArray *)&v11, (bool)a1->m_selectedObjects); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_pivotPoint, GroupCenter); a1->m_rotationControl->setPosition_0(a1->m_rotationControl, &a1->m_pivotPoint); } else { m_rotationControl = a1->m_rotationControl; v7 = m_rotationControl->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8 = a1->m_selectedObject->getPosition_0(a1->m_selectedObject); v7->setPosition_0(m_rotationControl, v8); } v9 = a1->m_rotationControl->__vftable; a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJRotationControl *))v9->setScale_0)(a1->m_rotationControl); LOBYTE(v10) = 1; a1->m_rotationControl->setVisible(a1->m_rotationControl, v10); } }