// // EditorUI::activateRotationControl from 0x10003d5b0 to 0x10003d732 (386 bytes) // // 6 xrefs: // > EditorUI::undoLastAction @ 0x10000c0cb // > EditorUI::redoLastAction @ 0x10000c12b // > EditorUI::toggleSpecialEditButtons @ 0x10002d8d7 // > EditorUI::moveObjectCall_1 @ 0x10004a5fb // > EditorUI::keyDown @ 0x100050850 // > EditorUI::createMoveMenu @ 0x10004778e // // 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::activateRotationControl(EditorUI *a1, cocos2d::CCObject *a2) { __int64 v2; // rax GJTransformControl *m_transformControl; // rax GJTransformControlDelegate *m_delegate; // rdi double v6; // xmm0_8 GJRotationControl *m_rotationControl; // r14 __int64 v8; // rax GJRotationControl *v9; // r14 double v10; // xmm1_8 _QWORD v11[4]; // [rsp+0h] [rbp-20h] BYREF v11[0] = v2; if ( ((unsigned int)sub_100720070(a1->m_selectedObjects) || a1->m_selectedObject) && (!((unsigned __int8 (__fastcall *)(GJRotationControl *, cocos2d::CCObject *))a1->m_rotationControl->isVisible)( a1->m_rotationControl, a2) || a1->m_canActivateControls) ) { if ( ((unsigned __int8 (__fastcall *)(GJTransformControl *))a1->m_transformControl->isVisible)(a1->m_transformControl) ) { ((void (__fastcall *)(GJTransformControl *, _QWORD))a1->m_transformControl->setVisible)(a1->m_transformControl, 0); m_transformControl = a1->m_transformControl; if ( m_transformControl->m_touchID != -1 ) { m_transformControl->m_touchID = -1; m_delegate = m_transformControl->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJTransformControlDelegate *))m_delegate->transformChangeEnded)(m_delegate); } } EditorUI::updateEditButtonColor(a1, 31, (cocos2d::ccColor3B)-1); a1->m_canActivateControls = 0; if ( (unsigned int)sub_100720070(a1->m_selectedObjects) ) { EditorUI::getGroupCenter((EditorUI *)v11, (cocos2d::CCArray *)0x1F, (bool)a1->m_selectedObjects); v6 = sub_10028CC90(&a1->m_pivotPoint, v11); ((void (__fastcall *)(GJRotationControl *, cocos2d::CCPoint *, double))a1->m_rotationControl->setPosition)( a1->m_rotationControl, &a1->m_pivotPoint, v6); } else { m_rotationControl = a1->m_rotationControl; v8 = ((__int64 (__fastcall *)(GameObject *))a1->m_selectedObject->getPosition)(a1->m_selectedObject); ((void (__fastcall *)(GJRotationControl *, __int64))m_rotationControl->setPosition)(m_rotationControl, v8); } v9 = a1->m_rotationControl; HIDWORD(v10) = 0; *(float *)&v10 = 1.0 / ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJRotationControl *, double))v9->setScale)(v9, v10); ((void (__fastcall *)(GJRotationControl *, __int64))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 1); } }