// // EditorUI::selectAllWithDirection from 0x3a5ad0 to 0x3a5bdc (268 bytes) // // 2 xrefs: // > EditorPauseLayer::onSelectAllLeft @ 0x3ff302 // > EditorPauseLayer::onSelectAllRight @ 0x3ff312 // // 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 EditorUI::selectAllWithDirection(EditorUI *a1, bool a2) { _BOOL4 v3; // r9 cocos2d::CCArray *AllObjects; // r8 cocos2d::CCDirector *v5; // r0 cocos2d::CCLayer *m_objectLayer; // r7 cocos2d::CCPoint *v7; // r0 unsigned int v8; // r7 cocos2d::CCArray *v9; // r10 GameObject *v10; // r5 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // r3 float *v12; // r0 float *v13; // r0 cocos2d::CCSize v14; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v15; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v16; // [sp+14h] [bp-Ch] BYREF v3 = a2; AllObjects = LevelEditorLayer::getAllObjects(a1->m_editorLayer); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v14, v5); m_objectLayer = a1->m_editorLayer->m_objectLayer; cocos2d::CCPoint::CCPoint(&v16, v14.width * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v14.height * 0.5)); v7 = cocos2d::CCNode::convertToNodeSpace(&v15, m_objectLayer, &v16); v8 = 0; v9 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v7); while ( v8 < cocos2d::CCArray::count(AllObjects) ) { v10 = (GameObject *)cocos2d::CCArray::objectAtIndex(AllObjects, v8); if ( !LevelEditorLayer::validGroup(a1->m_editorLayer, v10, 0) ) goto LABEL_9; getPosition = v10->getPosition; if ( v3 ) { v12 = (float *)getPosition(v10); if ( *v12 >= v15.x ) goto LABEL_9; } else { v13 = (float *)getPosition(v10); if ( *v13 <= v15.x ) goto LABEL_9; } cocos2d::CCArray::addObject(v9, v10); LABEL_9: ++v8; } EditorUI::processSelectObjects(a1, v9); EditorUI::updateButtons(a1); EditorUI::deactivateRotationControl(a1); EditorUI::deactivateScaleControl(a1); EditorUI::deactivateTransformControl(a1); EditorUI::updateObjectInfoLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source