// // EditorUI::transformObjects from 0x1000407e0 to 0x100040c08 (1064 bytes) // // 23 xrefs: // > EditorUI::updateTransformControl @ 0x10004058d // > GJTransformControl::updateButtons @ 0x10004ad22 // > GJTransformControl::updateButtons @ 0x10004b7eb // > EditorUI::transformScaleXChanged @ 0x10004cc6d // > EditorUI::transformObjectsActive @ 0x10004cd15 // > sub_10004CD30 @ 0x10004cdc4 // > EditorUI::transformScaleYChanged @ 0x10004ce7d // > sub_10004CE90 @ 0x10004cf24 // > EditorUI::transformScaleXYChanged @ 0x10004cfe5 // > sub_10004D000 @ 0x10004d099 // > EditorUI::transformSkewXChanged @ 0x10004d14d // > sub_10004D160 @ 0x10004d1f4 // > EditorUI::transformSkewYChanged @ 0x10004d2ad // > sub_10004D2C0 @ 0x10004d354 // > EditorUI::transformRotationXChanged @ 0x10004d40d // > sub_10004D420 @ 0x10004d4b4 // > EditorUI::transformRotationYChanged @ 0x10004d56d // > sub_10004D580 @ 0x10004d614 // > EditorUI::transformRotationChanged @ 0x10004d6d5 // > sub_10004D6F0 @ 0x10004d789 // > EditorUI::transformResetRotation @ 0x10004d85b // > EditorUI::transformRestoreRotation @ 0x10004d948 // > EditorUI::transformObjectsReset @ 0x10004da06 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall EditorUI::transformObjects( EditorUI *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, float a4, float a5, float a6, float a7, float a8, float a9) { __int64 v9; // rdx __int64 v10; // r15 __int64 *v12; // rsi double v13; // xmm4_8 double v14; // xmm5_8 __int64 v15; // rsi int v16; // eax float v17; // ecx EditorUI *v18; // r13 GameObject *v19; // r15 float *v20; // r14 cocos2d::CCArray *v21; // rbx _QWORD *v22; // r12 __int64 v23; // rax _QWORD *v24; // rdi __m128 v25; // xmm0 __int64 v26; // rax unsigned int v27; // eax EditorUI *v28; // rbx char v29[8]; // [rsp+0h] [rbp-A0h] BYREF char v30[8]; // [rsp+8h] [rbp-98h] BYREF __int64 v31; // [rsp+10h] [rbp-90h] std::unordered_map *p_m_objectEditorStates; // [rsp+18h] [rbp-88h] __m128 v33; // [rsp+20h] [rbp-80h] int m_uniqueID; // [rsp+34h] [rbp-6Ch] BYREF float v35; // [rsp+3Ch] [rbp-64h] int *p_m_uniqueID; // [rsp+40h] [rbp-60h] BYREF float v37; // [rsp+48h] [rbp-58h] float v38; // [rsp+4Ch] [rbp-54h] float v39; // [rsp+50h] [rbp-50h] float v40; // [rsp+54h] [rbp-4Ch] EditorUI *v41; // [rsp+58h] [rbp-48h] float v42; // [rsp+64h] [rbp-3Ch] float v43; // [rsp+68h] [rbp-38h] float v44; // [rsp+6Ch] [rbp-34h] float v45; // [rsp+70h] [rbp-30h] float v46; // [rsp+74h] [rbp-2Ch] v45 = a8; v42 = a7; v46 = a6; v43 = a5; v44 = a4; v33.i32[0] = LODWORD(a3.x); v10 = v9; v12 = &qword_10099EC08; if ( (unsigned __int8)sub_10028CDB0(v9) ) { EditorUI::getGroupCenter((EditorUI *)&p_m_uniqueID, (cocos2d::CCArray *)&qword_10099EC08, (bool)a2); v12 = (__int64 *)&p_m_uniqueID; *(double *)&a3 = sub_10028CC90(v10, &p_m_uniqueID); } v35 = ((float (__fastcall *)(cocos2d::CCLayer *, __int64 *, double, double, double, double, double, double, double))a1->m_editorLayer->m_objectLayer->getScale)( a1->m_editorLayer->m_objectLayer, v12, *(double *)&a3, *(double *)&a4, *(double *)&a5, *(double *)&a6, v13, v14, *(double *)&a9); v15 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer); sub_10028CC60(v29); ((void (__fastcall *)(cocos2d::CCLayer *, __int64, float))a1->m_editorLayer->m_objectLayer->setScale)( a1->m_editorLayer->m_objectLayer, v15, 1.0); ((void (__fastcall *)(cocos2d::CCLayer *, __int64 *))a1->m_editorLayer->m_objectLayer->setPosition)( a1->m_editorLayer->m_objectLayer, &qword_10099EC08); ((void (__fastcall *)(cocos2d::CCNode *, __int64))a1->m_transformNode->setPosition)(a1->m_transformNode, v10); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setScaleX)(a1->m_transformNode, v33.f32[0]); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setScaleY)(a1->m_transformNode, v44); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setRotationX)(a1->m_transformNode, v43); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setRotationY)(a1->m_transformNode, v46); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setSkewX)(a1->m_transformNode, v42); ((void (__fastcall *)(cocos2d::CCNode *, float))a1->m_transformNode->setSkewY)(a1->m_transformNode, v45); ((void (__fastcall *)(int **))a1->m_transformNode->nodeToWorldTransform)(&p_m_uniqueID); v16 = sub_100720070(a2); v31 = v10; v41 = a1; if ( v16 ) { p_m_objectEditorStates = &v41->m_objectEditorStates; v17 = 0.0; v18 = v41; do { v45 = v17; v19 = (GameObject *)sub_1007200C0(a2, LODWORD(v17)); m_uniqueID = v19->m_uniqueID; p_m_uniqueID = &m_uniqueID; v20 = (float *)sub_100056050(p_m_objectEditorStates, &m_uniqueID, &unk_10081561F, &p_m_uniqueID, v30); v21 = a2; v22 = &v18->m_transformChild->__vftable; sub_10028CD00(&p_m_uniqueID, v20 + 5, v31); v23 = *v22; v24 = v22; a2 = v21; (*(void (__fastcall **)(_QWORD *))(v23 + 184))(v24); ((void (__fastcall *)(cocos2d::CCNode *, float))v18->m_transformChild->setScaleX)( v18->m_transformChild, v20[7] * v19->m_pixelScaleX); ((void (__fastcall *)(cocos2d::CCNode *, float))v18->m_transformChild->setScaleY)( v18->m_transformChild, v20[8] * v19->m_pixelScaleY); ((void (__fastcall *)(cocos2d::CCNode *, float))v18->m_transformChild->setRotationX)( v18->m_transformChild, v20[9]); ((void (__fastcall *)(cocos2d::CCNode *, float))v18->m_transformChild->setRotationY)( v18->m_transformChild, v20[10]); ((void (__fastcall *)(int **))v18->m_transformChild->nodeToWorldTransform)(&p_m_uniqueID); v46 = *((float *)&p_m_uniqueID + 1); LODWORD(v43) = (_DWORD)p_m_uniqueID; v42 = fsqrt( (float)(*(float *)&p_m_uniqueID * *(float *)&p_m_uniqueID) + (float)(*((float *)&p_m_uniqueID + 1) * *((float *)&p_m_uniqueID + 1))); v25 = (__m128)LODWORD(v38); v44 = fsqrt((float)(v37 * v37) + (float)(v25.f32[0] * v25.f32[0])); v25.f32[0] = (float)(atan2f(v38, v37) * 57.29578) + -90.0; v33 = _mm_xor_ps(v25, (__m128)xmmword_1008150B0); v46 = atan2f(v46, v43); GameObject::updateCustomScaleX(v19, v42); GameObject::updateCustomScaleY(v19, v44); ((void (__fastcall *)(GameObject *, double))v19->setRotationX)(v19, *(double *)v33.i64); ((void (__fastcall *)(GameObject *, float))v19->setRotationY)(v19, v46 * -57.29578); v25.i64[0] = LODWORD(v39); sub_10028CBE0(&m_uniqueID, v39, v40); v26 = ((__int64 (__fastcall *)(GameObject *))v19->getPosition)(v19); sub_10028CD00(v30, &m_uniqueID, v26); EditorUI::moveObject(v18, v19, *(cocos2d::CCPoint *)v25.f32); ++LODWORD(v45); v27 = sub_100720070(v21); v17 = v45; } while ( LODWORD(v45) < v27 ); } v28 = v41; ((void (__fastcall *)(cocos2d::CCLayer *, float))v41->m_editorLayer->m_objectLayer->setScale)( v41->m_editorLayer->m_objectLayer, v35); ((void (__fastcall *)(cocos2d::CCLayer *, char *))v28->m_editorLayer->m_objectLayer->setPosition)( v28->m_editorLayer->m_objectLayer, v29); }
GD Web Decomp Icon

GD Web Decomp

Raw Source