// // EditorUI::activateScaleControl from 0x140202bc0 to 0x140202dcd (525 bytes) // // 7 xrefs: // > EditorUI::handleEditorAction @ 0x1401c4197 // > EditorUI::createMoveMenu @ 0x1401f2b37 // > EditorUI::createMoveMenu @ 0x1401f2c67 // > @ 0x1408a3f60 // > @ 0x1408a3f70 // > @ 0x14091af3c // > @ 0x14091af48 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:28:14 +0000 // unsigned int __fastcall EditorUI::activateScaleControl(__int64 a1, __int64 a2) { _QWORD *v3; // rbx unsigned int result; // eax __int64 v6; // rax cocos2d::CCArray **v7; // rdi __int64 **v8; // r12 int v9; // edi int v10; // ebx unsigned int v11; // eax cocos2d::CCArray *v12; // rcx __int64 v13; // rcx cocos2d::CCPoint *GroupCenter; // rax __int64 *v15; // rbx __int64 v16; // rax __int64 *v17; // rdi __int64 v18; // rbx __int64 v19; // rdx __int16 v20; // [rsp+50h] [rbp+8h] BYREF char v21; // [rsp+52h] [rbp+Ah] char v22; // [rsp+60h] [rbp+18h] BYREF v3 = (_QWORD *)(a1 + 1568); result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); if ( result || *v3 ) { v6 = EditorSFXManager::sharedState(); EditorSFXManager::playAction(v6, 189); EditorUI::deactivateTransformControl(a1); v7 = (cocos2d::CCArray **)(a1 + 944); v8 = (__int64 **)(a1 + 832); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 832) + 344LL))(*(_QWORD *)(a1 + 832)) ) { v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v10 = *(_DWORD *)(*(_QWORD *)(a1 + 832) + 592LL); result = EditorUI::deactivateScaleControl(a1); if ( v9 == v10 ) return result; v7 = (cocos2d::CCArray **)(a1 + 944); v3 = (_QWORD *)(a1 + 1568); v8 = (__int64 **)(a1 + 832); } result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 832) + 344LL))(*(_QWORD *)(a1 + 832)); if ( (_BYTE)result ) { if ( !*(_BYTE *)(a1 + 824) ) return result; } else { v7 = (cocos2d::CCArray **)(a1 + 944); } v20 = -22874; v21 = -90; v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); EditorUI::updateEditButtonColor(a1, v11, &v20); v12 = *v7; *(_BYTE *)(a1 + 824) = 0; if ( cocos2d::CCArray::count(v12) ) GroupCenter = EditorUI::getGroupCenter(v13, (cocos2d::CCPoint *)&v20, *v7, 0); else GroupCenter = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 200LL))(*v3); cocos2d::CCPoint::operator=(a1 + 816, GroupCenter); v15 = *v8; *((_DWORD *)v15 + 148) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, 40.0); cocos2d::CCPoint::operator+(a1 + 816, &v20, v16); (*(void (__fastcall **)(__int64 *, __int16 *))(**v8 + 184))(*v8, &v20); v17 = *v8; v18 = **v8; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1512) + 4296LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL)); (*(void (__fastcall **)(__int64 *))(v18 + 160))(v17); LOBYTE(v19) = 1; (*(void (__fastcall **)(__int64 *, __int64))(**v8 + 336))(*v8, v19); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 432) + 40LL))(a1 + 432); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source