// // EditorUI::activateRotationControl from 0x1003ee398 to 0x1003ee4a4 (268 bytes) // // 5 xrefs: // > EditorUI::undoLastAction @ 0x1003c74a4 // > EditorUI::redoLastAction @ 0x1003c7508 // > EditorUI::toggleSpecialEditButtons @ 0x1003e6608 // > EditorUI::moveObjectCall_1 @ 0x1003f6078 // > EditorUI::createMoveMenu @ 0x1003f45fc // // 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) { EditorUI *v3; // x0 __n128 v4; // q0 GJRotationControl *m_rotationControl; // x20 __int64 v6; // x1 __n128 v7; // q0 GJRotationControl *v8; // x20 float v9; // s0 double v10; // [xsp+8h] [xbp-18h] BYREF if ( ((unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) || a1->m_selectedObject) && (!((unsigned int (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl) || a1->m_canActivateControls) ) { EditorUI::deactivateTransformControl(a1); a1->m_canActivateControls = 0; v3 = (EditorUI *)sub_10024A36C((__int64)a1->m_selectedObjects); if ( (_DWORD)v3 ) { EditorUI::getGroupCenter(v3, a1->m_selectedObjects, 0); v4.n128_f64[0] = sub_1000229D0(&a1->m_pivotPoint, &v10); ((void (__fastcall *)(GJRotationControl *, cocos2d::CCPoint *, __n128))a1->m_rotationControl->setPosition)( a1->m_rotationControl, &a1->m_pivotPoint, v4); } else { m_rotationControl = a1->m_rotationControl; v6 = ((__int64 (__fastcall *)(GameObject *))a1->m_selectedObject->getPosition)(a1->m_selectedObject); ((void (__fastcall *)(GJRotationControl *, __int64, __n128))m_rotationControl->setPosition)( m_rotationControl, v6, v7); } v8 = a1->m_rotationControl; v9 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJRotationControl *, float))v8->setScale)(v8, 1.0 / v9); ((void (__fastcall *)(GJRotationControl *, __int64))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source