// // EditorUI::activateRotationControl from 0x6b4c68 to 0x6b4dc4 (348 bytes) // // 7 xrefs: // > EditorUI::toggleSpecialEditButtons @ 0x6b4fbc // > EditorUI::moveObjectCall @ 0x6b9448 // > EditorUI::undoLastAction @ 0x6c11ac // > EditorUI::redoLastAction @ 0x6c1214 // > @ 0xc6030 // > EditorUI::createMoveMenu @ 0x68b4f8 // > @ 0x122ee28 // // 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) { GJRotationControl *m_rotationControl; // x21 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 const cocos2d::CCPoint *v5; // x0 GJRotationControl *v6; // x21 void (__fastcall *setScale)(cocos2d::CCNode *__hidden, float); // x22 float v8; // s0 cocos2d::CCPoint GroupCenter; // 0:kr00_8.8 if ( ((unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) || a1->m_selectedObject) && (!a1->m_rotationControl->isVisible(a1->m_rotationControl) || a1->m_canActivateControls) ) { EditorUI::deactivateTransformControl(a1); a1->m_canActivateControls = 0; if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) { GroupCenter = EditorUI::getGroupCenter(a1, a1->m_selectedObjects, 0); cocos2d::CCPoint::operator=(&a1->m_pivotPoint, GroupCenter.x, GroupCenter.y); a1->m_rotationControl->setPosition(a1->m_rotationControl, &a1->m_pivotPoint); } else { m_rotationControl = a1->m_rotationControl; setPosition = m_rotationControl->setPosition; v5 = a1->m_selectedObject->getPosition(a1->m_selectedObject); setPosition(m_rotationControl, v5); } v6 = a1->m_rotationControl; setScale = v6->setScale; v8 = a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer); setScale(v6, 1.0 / v8); a1->m_rotationControl->setVisible(a1->m_rotationControl, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source