// // EditorUI::angleChanged from 0x1003f8134 to 0x1003f8244 (272 bytes) // // 2 xrefs: // > sub_1003F8244 @ 0x1003f8248 // > @ 0x100814070 // // 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::angleChanged(EditorUI *a1, float a2) { GameObject *m_selectedObject; // x0 float v5; // s9 float v6; // s0 GameObject *v7; // x20 GameObject_vtbl *v8; // x8 float v9; // s0 GameObject *v10; // x19 __n128 v11; // q0 void (__cdecl *setRotation)(GameObject *__hidden, float); // x1 GameObject *v13; // x0 cocos2d::CCArray *m_selectedObjects; // x20 __int64 v15; // [xsp+8h] [xbp-28h] BYREF cocos2d::CCPoint v16; // 0:s1.4,4:s2.4 m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { v5 = ((float (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject); v6 = ((float (__fastcall *)(GameObject *))a1->m_selectedObject->getRotationY)(a1->m_selectedObject); v7 = a1->m_selectedObject; v8 = v7->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v5 == v6 ) { v11.n128_f32[0] = ((float (__fastcall *)(GameObject *))v8->getRotation)(a1->m_selectedObject) + a2; setRotation = v7->setRotation; v13 = v7; } else { v9 = ((float (__fastcall *)(GameObject *))v8->getRotationX)(a1->m_selectedObject); ((void (__fastcall *)(GameObject *, float))v7->setRotationX)(v7, v9 + a2); v10 = a1->m_selectedObject; v11.n128_f32[0] = ((float (__fastcall *)(GameObject *))v10->getRotationY)(v10) + a2; setRotation = v10->setRotationY; v13 = v10; } ((void (__fastcall *)(GameObject *, __n128))setRotation)(v13, v11); } else if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { m_selectedObjects = a1->m_selectedObjects; sub_1000229B8(&v15, (__int64 *)&a1->m_pivotPoint); EditorUI::rotateObjects(a1, m_selectedObjects, a2, v16); } }