// // EditorUI::selectAllWithDirection from 0x1005b9220 to 0x1005b93b9 (409 bytes) // // 4 xrefs: // > EditorUI::handleEditorAction @ 0x10060ca2f // > EditorUI::handleEditorAction @ 0x10060cb4d // > EditorCommandsPopup::onCommand @ 0x1008dedbc // > EditorCommandsPopup::onCommand @ 0x1008deedc // // 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 12:32:43 +0000 // __int64 __fastcall EditorUI::selectAllWithDirection(__int64 a1, char a2) { __int64 AllObjects; // r14 __int64 v3; // rax __int64 v4; // r15 double v5; // xmm0_8 __int64 v6; // r15 unsigned int v7; // r12d __int64 v8; // r13 float *v9; // rax unsigned int v10; // r12d __int64 v11; // r13 unsigned int v13; // [rsp+0h] [rbp-40h] BYREF __int64 v14; // [rsp+8h] [rbp-38h] BYREF double v15[6]; // [rsp+10h] [rbp-30h] BYREF AllObjects = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440)); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v14, v3); v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL); *(_QWORD *)&v5 = (unsigned int)v14; *(float *)&v5 = *(float *)&v14 * 0.5; sub_100278250( (float *)&v13, *(float *)&v14 * 0.5, (float)(0.5 * *(float *)(a1 + 856)) + (float)(*((float *)&v14 + 1) * 0.5)); cocos2d::CCNode::convertToNodeSpace(v15, v4, &v13); v6 = sub_1007FE900(v15); if ( (unsigned int)sub_1007FEF90(AllObjects) ) { if ( a2 ) { v7 = 0; do { v8 = sub_1007FEFE0(AllObjects, v7); if ( LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v8, 0) ) { v9 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 192LL))(v8); *(_QWORD *)&v5 = LODWORD(v15[0]); if ( *(float *)v15 > *v9 ) sub_1007FEBF0(v6, v8); } ++v7; } while ( v7 < (unsigned int)sub_1007FEF90(AllObjects) ); } else { v10 = 0; do { v11 = sub_1007FEFE0(AllObjects, v10); if ( LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v11, 0) ) { *(_QWORD *)&v5 = *(unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11); if ( *(float *)&v5 > *(float *)v15 ) sub_1007FEBF0(v6, v11); } ++v10; } while ( v10 < (unsigned int)sub_1007FEF90(AllObjects) ); } } EditorUI::processSelectObjects((_QWORD *)a1, v6, v5); EditorUI::deactivateRotationControl(a1); EditorUI::deactivateScaleControl(a1); return sub_100611790(a1); }