// // EditorUI::selectAllWithDirection from 0xbdd2f0 to 0xbdd478 (392 bytes) // // 5 xrefs: // > EditorUI::handleEditorAction @ 0xbd78d8 // > EditorUI::handleEditorAction @ 0xbd78f0 // > EditorCommandsPopup::onCommand @ 0xcbc0cc // > EditorCommandsPopup::onCommand @ 0xcbc0e0 // > @ 0xae808 // // This function is hookable on this platform (idp: arm, 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 13:03:44 +0000 // __int64 __fastcall EditorUI::selectAllWithDirection(LevelEditorLayer **this, unsigned __int8 a2) { int v2; // w24 unsigned int v4; // w19 cocos2d::CCDirector *AllObjects; // x21 cocos2d::CCDirector *v6; // x0 cocos2d::CCNode *v7; // x20 cocos2d::CCArray *v8; // x0 cocos2d::CCArray *v9; // x26 cocos2d::CCObject *v10; // x20 __int64 (__fastcall *v11)(cocos2d::CCObject *); // x1 float *v12; // x0 float *v14; // x0 __int64 v15; // [xsp+60h] [xbp+60h] BYREF __int64 v16; // [xsp+68h] [xbp+68h] BYREF _BYTE v17[8]; // [xsp+70h] [xbp+70h] BYREF v2 = a2; v4 = 0; AllObjects = (cocos2d::CCDirector *)LevelEditorLayer::getAllObjects(*(this + 180)); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(AllObjects); cocos2d::CCDirector::getWinSize(&v15, v6); v7 = *((cocos2d::CCNode **)*(this + 180) + 490); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v17, *(float *)&v15 * 0.5, (float)(*((float *)this + 214) * 0.5) + (float)(*((float *)&v15 + 1) * 0.5)); v8 = (cocos2d::CCArray *)cocos2d::CCNode::convertToNodeSpace(&v16, v7, (const cocos2d::CCPoint *)v17); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); if ( (unsigned int)cocos2d::CCArray::count(AllObjects) ) { do { v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v4); if ( LevelEditorLayer::validGroup(*(this + 180), v10, 0) ) { v11 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v10 + 192LL); if ( v2 ) { v12 = (float *)v11(v10); if ( *v12 < *(float *)&v16 ) goto LABEL_9; } else { v14 = (float *)v11(v10); if ( *v14 > *(float *)&v16 ) { LABEL_9: ++v4; cocos2d::CCArray::addObject(v9, v10); continue; } } } ++v4; } while ( v4 < (unsigned int)cocos2d::CCArray::count(AllObjects) ); } EditorUI::processSelectObjects((EditorUI *)this, v9); EditorUI::deactivateRotationControl((EditorUI *)this); EditorUI::deactivateScaleControl((EditorUI *)this); EditorUI::deactivateTransformControl((EditorUI *)this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source