// // EditorUI::selectAllWithDirection from 0x1003ee24c to 0x1003ee398 (332 bytes) // // 2 xrefs: // > EditorPauseLayer::onSelectAllLeft @ 0x10039e0ac // > EditorPauseLayer::onSelectAllRight @ 0x10039e0bc // // 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 // void __fastcall EditorUI::selectAllWithDirection(EditorUI *a1, bool a2) { _BOOL4 v2; // w20 cocos2d::CCArray *AllObjects; // x21 cocos2d::CCDirector *v5; // x0 cocos2d::CCLayer *m_objectLayer; // x22 __n128 v7; // q0 __n128 v8; // q1 cocos2d::CCArray *v9; // x22 unsigned int i; // w23 GameObject *v11; // x24 float *v12; // x0 cocos2d::CCPoint v13; // [xsp+8h] [xbp-48h] BYREF float v14; // [xsp+10h] [xbp-40h] float v15; // [xsp+18h] [xbp-38h] float v16; // [xsp+1Ch] [xbp-34h] v2 = a2; AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); m_objectLayer = a1->m_editorLayer->m_objectLayer; v7.n128_f32[0] = v15 * 0.5; v8.n128_f32[0] = (float)(v16 * 0.5) + (float)(a1->m_toolbarHeight * 0.5); sub_100022980(v7, v8, &v13); cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v13); v9 = (cocos2d::CCArray *)sub_10024A15C(); if ( (unsigned int)sub_10024A36C((__int64)AllObjects) ) { for ( i = 0; i < (unsigned int)sub_10024A36C((__int64)AllObjects); ++i ) { v11 = (GameObject *)sub_10024A388((__int64)AllObjects, i); if ( LevelEditorLayer::validGroup(a1->m_editorLayer, v11, 0) ) { v12 = (float *)((__int64 (__fastcall *)(GameObject *))v11->getPosition)(v11); if ( !v2 ) { if ( *v12 <= v14 ) continue; LABEL_6: sub_10024A2D0((__int64)v9); continue; } if ( *v12 < v14 ) goto LABEL_6; } } } EditorUI::processSelectObjects(a1, v9); EditorUI::updateButtons(a1); EditorUI::deactivateRotationControl(a1); EditorUI::deactivateScaleControl(a1); EditorUI::deactivateTransformControl(a1); EditorUI::updateObjectInfoLabel(a1); }