// // EditorUI::selectAllWithDirection from 0x6f4a34 to 0x6f4b34 (256 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0x6f2028 // > EditorUI::handleEditorAction @ 0x6f2038 // > EditorCommandsPopup::onCommand @ 0x77a7ee // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:38 +0000 // int __fastcall EditorUI::selectAllWithDirection(LevelEditorLayer **this, int a2) { cocos2d::CCDirector *AllObjects; // r8 const cocos2d::CCPoint *v5; // r7 cocos2d::CCArray *v6; // r0 unsigned int v7; // r7 cocos2d::CCArray *v8; // r10 GameObject *v9; // r5 int (__fastcall *v10)(GameObject *); // r3 float *v11; // r0 float *v12; // r0 float v14[2]; // [sp+4h] [bp-1Ch] BYREF float v15[2]; // [sp+Ch] [bp-14h] BYREF _BYTE v16[8]; // [sp+14h] [bp-Ch] BYREF AllObjects = (cocos2d::CCDirector *)LevelEditorLayer::getAllObjects(*(this + 236)); cocos2d::CCDirector::sharedDirector(AllObjects); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14); v5 = *((const cocos2d::CCPoint **)*(this + 236) + 609); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v16, v14[0] * 0.5, (float)(*((float *)this + 158) * 0.5) + (float)(v14[1] * 0.5)); v6 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, v5); v7 = 0; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); while ( v7 < cocos2d::CCArray::count(AllObjects) ) { v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v7); if ( !LevelEditorLayer::validGroup(*(this + 236), v9, 0) ) goto LABEL_9; v10 = *(int (__fastcall **)(GameObject *))(*(_DWORD *)v9 + 96); if ( a2 ) { v11 = (float *)v10(v9); if ( *v11 >= v15[0] ) goto LABEL_9; } else { v12 = (float *)v10(v9); if ( *v12 <= v15[0] ) goto LABEL_9; } cocos2d::CCArray::addObject(v8, v9); LABEL_9: ++v7; } EditorUI::processSelectObjects((EditorUI *)this, v8); EditorUI::deactivateRotationControl((EditorUI *)this); EditorUI::deactivateScaleControl((EditorUI *)this); return EditorUI::deactivateTransformControl((EditorUI *)this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source