// // EditorUI::selectObjects from 0x6f45c4 to 0x6f48f6 (818 bytes) // // 13 xrefs: // > LevelEditorLayer::breakApartTextObject @ 0x46ed0c // > LevelEditorLayer::handleAction @ 0x46ef6a // > LevelEditorLayer::handleAction @ 0x46f064 // > EditorUI::createSmartObjectsFromType @ 0x482dfc // > EditorUI::createNewKeyframeAnim @ 0x483048 // > EditorUI::createSmartObjectsFromTemplate @ 0x4880f8 // > SetupKeyframePopup::onCustomButton @ 0x6af15e // > SetupKeyframePopup::onCustomButton @ 0x6af418 // > EditorUI::ccTouchEnded @ 0x6f0ce6 // > EditorUI::ccTouchEnded @ 0x6f0de8 // > EditorUI::selectObject @ 0x6f45ba // > EditorUI::processSelectObjects @ 0x6f496a // > EditorUI::changeSelectedObjects @ 0x6f4b52 // // 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 // GameManager *__fastcall EditorUI::selectObjects(GameManager *this, cocos2d::CCArray *a2, unsigned int a3) { GameManager *v3; // r4 GameManager *v6; // r0 GameManager *v7; // r0 GameManager *v8; // r0 unsigned int v9; // r7 int IntGameVariable; // r8 GameManager *v11; // r0 int v12; // r8 GameManager *v13; // r0 int v14; // r0 GJSpriteColor *v15; // r7 unsigned int v16; // r7 GameObject *v17; // r0 cocos2d::CCObject *v18; // r1 GameObject *v19; // r8 unsigned int v20; // r6 cocos2d::CCObject *v21; // r9 cocos2d::CCNode *v22; // r7 int *v23; // r11 cocos2d::CCDictionary *v24; // r0 int v25; // r3 int *v26; // r0 GameObject *v27; // r5 int v28; // r1 cocos2d::CCArray *StickyGroup; // r0 unsigned int v30; // r5 cocos2d::CCArray *v31; // r9 int v32; // r0 cocos2d::CCArray *v33; // r8 unsigned int i; // r6 cocos2d::CCObject *v35; // r11 v3 = this; if ( a2 ) { this = (GameManager *)cocos2d::CCArray::count(a2); if ( this ) { if ( a3 ) goto LABEL_9; v6 = (GameManager *)GameManager::sharedState(this); this = (GameManager *)GameManager::getGameVariable(v6, "0064"); if ( !this ) goto LABEL_9; v7 = (GameManager *)GameManager::sharedState(this); this = (GameManager *)GameManager::getIntGameVariable(v7, "0005"); if ( this != (GameManager *)((char *)&dword_0 + 3) ) goto LABEL_9; v8 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3)); v9 = 0; IntGameVariable = GameManager::getIntGameVariable(v8, "0006"); while ( v9 < cocos2d::CCArray::count(a2) ) { if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(a2, v9) + 892) == IntGameVariable ) ++v9; else cocos2d::CCArray::removeObjectAtIndex(a2, v9, 1); } this = (GameManager *)cocos2d::CCArray::count(a2); if ( this ) { LABEL_9: v11 = (GameManager *)GameManager::sharedState(this); this = (GameManager *)GameManager::getIntGameVariable(v11, "0133"); v12 = (int)this; if ( a3 ) goto LABEL_20; if ( !this ) goto LABEL_20; v16 = 0; while ( v16 < cocos2d::CCArray::count(a2) ) { v17 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v16); if ( GameObject::belongsToGroup(v17, v12) ) ++v16; else cocos2d::CCArray::removeObjectAtIndex(a2, v16, 1); } this = (GameManager *)cocos2d::CCArray::count(a2); if ( this ) { LABEL_20: v13 = (GameManager *)GameManager::sharedState(this); v14 = GameManager::getIntGameVariable(v13, "0139"); v15 = (GJSpriteColor *)v14; if ( a3 || !v14 ) goto LABEL_21; while ( a3 < cocos2d::CCArray::count(a2) ) { v19 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, a3); if ( GameObject::getMainColorMode(v19) == v15 || GameObject::getSecondaryColorMode(v19) == v15 ) ++a3; else cocos2d::CCArray::removeObjectAtIndex(a2, a3, 1); } this = (GameManager *)cocos2d::CCArray::count(a2); if ( this ) { LABEL_21: cocos2d::CCNode::stopActionByTag(v3, 124); v18 = *((cocos2d::CCObject **)v3 + 249); if ( v18 && !cocos2d::CCArray::containsObject(a2, v18) ) { if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)v3 + 167)) ) { cocos2d::CCArray::addObject(a2, *((cocos2d::CCObject **)v3 + 249)); } else { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v3 + 167), *((cocos2d::CCObject **)v3 + 249)); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v3 + 249) + 764))(*((_DWORD *)v3 + 249), 65280); } *((_BYTE *)v3 + 588) = 1; } v20 = 0; v21 = nullptr; v22 = nullptr; *((_DWORD *)v3 + 249) = 0; while ( v20 < cocos2d::CCArray::count(a2) ) { v23 = (int *)cocos2d::CCArray::objectAtIndex(a2, v20); if ( !cocos2d::CCArray::containsObject(*((cocos2d::CCArray **)v3 + 167), (cocos2d::CCObject *)v23) ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v3 + 167), (cocos2d::CCObject *)v23); v24 = (cocos2d::CCDictionary *)(*(int (__fastcall **)(int *, int))(*v23 + 764))(v23, 65280); v25 = *((unsigned __int8 *)v3 + 643); *((_BYTE *)v3 + 588) = 1; if ( v25 ) { if ( !*((_BYTE *)v3 + 644) && v23[185] > 0 ) { if ( !v22 ) { v22 = (cocos2d::CCNode *)cocos2d::CCDictionary::create(v24); v21 = (cocos2d::CCObject *)cocos2d::CCNode::create(v22); } cocos2d::CCDictionary::setObject(v22, v21, v23[185]); } } } ++v20; } if ( cocos2d::CCArray::count(a2) == 1 && cocos2d::CCArray::count(*((cocos2d::CCArray **)v3 + 167)) == 1 ) { v26 = (int *)cocos2d::CCArray::objectAtIndex(a2, 0); v27 = (GameObject *)v26; if ( !*((_BYTE *)v3 + 643) || *((_BYTE *)v3 + 644) || (v28 = v26[185], v28 <= 0) || (StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup( *((cocos2d::CCDictionary ***)v3 + 236), v28)) == nullptr || cocos2d::CCArray::count(StickyGroup) <= 1u ) { EditorUI::selectObject(v3, v27, 0); } } if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)v3 + 167)) && v22 ) { *((_BYTE *)v3 + 1006) = 1; v30 = 0; v31 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v22); while ( v30 < cocos2d::CCArray::count(v31) ) { v32 = cocos2d::CCArray::objectAtIndex(v31, v30); v33 = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup( *((cocos2d::CCDictionary ***)v3 + 236), *(_DWORD *)(v32 + 52)); if ( v33 ) { for ( i = 0; i < cocos2d::CCArray::count(v33); ++i ) { v35 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v33, i); if ( !cocos2d::CCArray::containsObject(*((cocos2d::CCArray **)v3 + 167), v35) ) { cocos2d::CCArray::addObject(*((cocos2d::CCArray **)v3 + 167), v35); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v35 + 764))(v35, 65280); } } } ++v30; } } return EditorUI::checkLiveColorSelect(v3); } } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source