// // EditorUI::selectObjects from 0x1003ed5dc to 0x1003eda58 (1148 bytes) // // 13 xrefs: // > SetupKeyframePopup::onCustomButton @ 0x1001b5ba0 // > SetupKeyframePopup::onCustomButton @ 0x1001b5cac // > LevelEditorLayer::handleAction @ 0x10035be88 // > LevelEditorLayer::handleAction @ 0x10035bfa8 // > LevelEditorLayer::breakApartTextObject @ 0x100362600 // > EditorUI::selectObject @ 0x1003e6ed0 // > EditorUI::changeSelectedObjects @ 0x1003ede1c // > EditorUI::selectObjectsInRect @ 0x1003edf10 // > EditorUI::processSelectObjects @ 0x1003ee224 // > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1e48 // > EditorUI::createSmartObjectsFromType @ 0x1003f28d4 // > EditorUI::createNewKeyframeAnim @ 0x1003f3670 // > EditorUI::ccTouchEnded @ 0x1003f94e4 // // 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::selectObjects(EditorUI *a1, cocos2d::CCArray *a2, bool a3) { unsigned __int64 IntGameVariable; // x22 unsigned __int64 v4; // x24 GameManager *v8; // x0 GameManager *v9; // x0 GameManager *v10; // x0 __int64 v11; // x23 GameManager *v12; // x0 unsigned __int64 v13; // x0 __int64 v14; // x23 GameObject *v15; // x0 GameManager *v16; // x0 unsigned __int64 v17; // x0 __int64 v18; // x21 GameObject *v19; // x23 GameObject *m_selectedObject; // x1 cocos2d::CCDictionary *v21; // x21 cocos2d::CCNode *v22; // x23 _DWORD *v23; // x25 int v24; // w8 __int64 v25; // x0 GameObject *v26; // x20 int v27; // w1 cocos2d::CCArray *StickyGroup; // x0 cocos2d::CCArray *v29; // x20 unsigned int v30; // w21 __int64 v31; // x0 cocos2d::CCArray *v32; // x0 __int64 v33; // x23 unsigned int v34; // w24 __int64 v35; // x25 if ( a2 && (unsigned int)sub_10024A36C((__int64)a2) ) { if ( a3 ) goto LABEL_13; v8 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v8, "0064") ) goto LABEL_13; v9 = GameManager::sharedState(); if ( GameManager::getIntGameVariable(v9, "0005") != 3 ) goto LABEL_13; v10 = GameManager::sharedState(); IntGameVariable = GameManager::getIntGameVariable(v10, "0006"); if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v11 = 0; do { if ( *(_DWORD *)(sub_10024A388((__int64)a2, v11) + 1028) == (_DWORD)IntGameVariable ) v11 = (unsigned int)(v11 + 1); else sub_10024A44C((__int64)a2, v11, 1); } while ( (unsigned int)v11 < (unsigned int)sub_10024A36C((__int64)a2) ); } if ( (unsigned int)sub_10024A36C((__int64)a2) ) { LABEL_13: v12 = GameManager::sharedState(); v13 = GameManager::getIntGameVariable(v12, "0133"); if ( a3 ) goto LABEL_22; IntGameVariable = v13; if ( !(_DWORD)v13 ) goto LABEL_22; if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v14 = 0; do { v15 = (GameObject *)sub_10024A388((__int64)a2, v14); if ( GameObject::belongsToGroup(v15, IntGameVariable) ) v14 = (unsigned int)(v14 + 1); else sub_10024A44C((__int64)a2, v14, 1); } while ( (unsigned int)v14 < (unsigned int)sub_10024A36C((__int64)a2) ); } if ( (unsigned int)sub_10024A36C((__int64)a2) ) { LABEL_22: v16 = GameManager::sharedState(); v17 = GameManager::getIntGameVariable(v16, "0139"); if ( a3 ) goto LABEL_32; IntGameVariable = v17; if ( !(_DWORD)v17 ) goto LABEL_32; if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v18 = 0; do { v19 = (GameObject *)sub_10024A388((__int64)a2, v18); if ( GameObject::getMainColorMode(v19) == (_DWORD)IntGameVariable || GameObject::getSecondaryColorMode(v19) == (_DWORD)IntGameVariable ) { v18 = (unsigned int)(v18 + 1); } else { sub_10024A44C((__int64)a2, v18, 1); } } while ( (unsigned int)v18 < (unsigned int)sub_10024A36C((__int64)a2) ); } if ( (unsigned int)sub_10024A36C((__int64)a2) ) { LABEL_32: cocos2d::CCNode::stopActionByTag(a1, 124); m_selectedObject = a1->m_selectedObject; if ( m_selectedObject && (sub_10024A420((__int64)a2, (__int64)m_selectedObject) & 1) == 0 ) { if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { sub_10024A2D0((__int64)a2); } else { sub_10024A2D0((__int64)a1->m_selectedObjects); ((void (__fastcall *)(GameObject *, __int64))a1->m_selectedObject->selectObject)( a1->m_selectedObject, 65280); } a1->m_canActivateControls = 1; } a1->m_selectedObject = nullptr; v21 = nullptr; if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v22 = nullptr; LODWORD(IntGameVariable) = 0; do { v23 = (_DWORD *)sub_10024A388((__int64)a2, IntGameVariable); if ( (sub_10024A420((__int64)a1->m_selectedObjects, (__int64)v23) & 1) == 0 ) { sub_10024A2D0((__int64)a1->m_selectedObjects); v4 = v4 & 0xFFFFFFFFFF000000LL | 0xFF00; (*(void (__fastcall **)(_DWORD *, unsigned __int64))(*(_QWORD *)v23 + 1512LL))(v23, v4); a1->m_canActivateControls = 1; if ( a1->m_stickyControlsEnabled && !a1->m_linkControlsDisabled ) { v24 = v23[218]; if ( v24 >= 1 ) { if ( !v21 ) { v21 = cocos2d::CCDictionary::create(); v22 = cocos2d::CCNode::create(); v24 = v23[218]; } cocos2d::CCDictionary::setObject(v21, v22, v24); } } } IntGameVariable = (unsigned int)(IntGameVariable + 1); } while ( (unsigned int)IntGameVariable < (unsigned int)sub_10024A36C((__int64)a2) ); } if ( (unsigned int)sub_10024A36C((__int64)a2) == 1 && (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) == 1 ) { v25 = sub_10024A388((__int64)a2, 0); v26 = (GameObject *)v25; if ( !a1->m_stickyControlsEnabled || a1->m_linkControlsDisabled || (v27 = *(_DWORD *)(v25 + 872), v27 < 1) || (StickyGroup = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, v27)) == nullptr || (unsigned int)sub_10024A36C((__int64)StickyGroup) <= 1 ) { EditorUI::selectObject(a1, v26, 0); } } if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { if ( v21 ) { a1->m_findSnap = 1; v29 = cocos2d::CCDictionary::allKeys(v21); if ( (unsigned int)sub_10024A36C((__int64)v29) ) { v30 = 0; do { v31 = sub_10024A388((__int64)v29, v30); v32 = GJBaseGameLayer::getStickyGroup(a1->m_editorLayer, *(_DWORD *)(v31 + 56)); if ( v32 ) { v33 = (__int64)v32; if ( (unsigned int)sub_10024A36C((__int64)v32) ) { v34 = 0; do { v35 = sub_10024A388(v33, v34); if ( (sub_10024A420((__int64)a1->m_selectedObjects, v35) & 1) == 0 ) { sub_10024A2D0((__int64)a1->m_selectedObjects); IntGameVariable = IntGameVariable & 0xFFFFFFFFFF000000LL | 0xFF00; (*(void (__fastcall **)(__int64, unsigned __int64))(*(_QWORD *)v35 + 1512LL))( v35, IntGameVariable); } ++v34; } while ( v34 < (unsigned int)sub_10024A36C(v33) ); } } ++v30; } while ( v30 < (unsigned int)sub_10024A36C((__int64)v29) ); } } } EditorUI::checkLiveColorSelect(a1); } } } } }