// // EditorUI::angleChanged from 0x381c24 to 0x381d0c (232 bytes) // // 1 xrefs: // > `non-virtual thunk to'EditorUI::angleChanged @ 0x381d14 // // 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::angleChanged(EditorUI *a1, float a2) { GameObject *m_selectedObject; // r0 float v5; // s17 float v6; // r0 GameObject *v7; // r5 GameObject_vtbl *v8; // r3 void (__fastcall *setRotationX)(GameObject *__hidden, float); // r7 float v10; // r0 GameObject *v11; // r4 void (__fastcall *setRotationY)(GameObject *__hidden, float); // r5 float v13; // r0 void (__fastcall *setRotation)(GameObject *__hidden, float); // r4 float v15; // r0 cocos2d::CCArray *m_selectedObjects; // r7 float v17; // [sp+0h] [bp-14h] cocos2d::CCPoint v18; // [sp+4h] [bp-10h] BYREF cocos2d::CCPoint v19; // 0:kr00_8.8 m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { v5 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))m_selectedObject->getRotationX)(m_selectedObject)); v6 = 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 ) { setRotation = v8->setRotation; v15 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v8->getRotation)(v7)); ((void (__fastcall *)(GameObject *, _DWORD))setRotation)(v7, v15 + a2); } else { setRotationX = v8->setRotationX; v10 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v8->getRotationX)(a1->m_selectedObject)); ((void (__fastcall *)(GameObject *, _DWORD))setRotationX)(v7, v10 + a2); v11 = a1->m_selectedObject; setRotationY = v11->setRotationY; v13 = COERCE_FLOAT(((int (__fastcall *)(GameObject *))v11->getRotationY)(v11)); ((void (__fastcall *)(GameObject *, _DWORD))setRotationY)(v11, v13 + a2); } } else if ( cocos2d::CCArray::count(a1->m_selectedObjects) ) { m_selectedObjects = a1->m_selectedObjects; cocos2d::CCPoint::CCPoint(&v18, &a1->m_pivotPoint); LODWORD(v19.x) = &v18; v19.y = v17; EditorUI::rotateObjects(a1, m_selectedObjects, a2, v19); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source