// // EditorUI::onDeleteSelected from 0x1003c752c to 0x1003c768c (352 bytes) // // 3 xrefs: // > EditorUI::keyDown @ 0x1003f9cb4 // > EditorUI::init @ 0x1003c5928 // > EditorUI::setupDeleteMenu @ 0x1003c7c8c // // 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::onDeleteSelected(EditorUI *a1, cocos2d::CCObject *a2) { EditorUI *v3; // x0 cocos2d::CCArray *v4; // x20 unsigned int v5; // w21 EditorUI *v6; // x0 char v7; // w22 unsigned int v8; // w21 GameObject *v9; // x1 UndoObject *v10; // x0 GameObject *m_selectedObject; // x1 UndoObject *v12; // x0 v3 = (EditorUI *)sub_10024A36C((__int64)a1->m_selectedObjects); if ( (_DWORD)v3 ) { v4 = (cocos2d::CCArray *)sub_10024A15C(); if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { v5 = 0; do { v6 = (EditorUI *)sub_10024A388((__int64)a1->m_selectedObjects, v5); if ( EditorUI::shouldDeleteObject(v6, (GameObject *)v6) ) sub_10024A2D0((__int64)v4); ++v5; } while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ); } if ( (unsigned int)sub_10024A36C((__int64)v4) ) { v7 = 0; v8 = 0; do { v9 = (GameObject *)sub_10024A388((__int64)v4, v8); v7 |= v9->m_objectID == 747; EditorUI::deleteObject(a1, v9, 1); ++v8; } while ( v8 < (unsigned int)sub_10024A36C((__int64)v4) ); v10 = UndoObject::createWithArray(v4, DeleteMulti); LevelEditorLayer::addToUndoList(a1->m_editorLayer, v10, 0); if ( (v7 & 1) != 0 ) EditorUI::deselectTargetPortals(a1); } else { v12 = UndoObject::createWithArray(v4, DeleteMulti); LevelEditorLayer::addToUndoList(a1->m_editorLayer, v12, 0); } } else { m_selectedObject = a1->m_selectedObject; if ( m_selectedObject && EditorUI::shouldDeleteObject(v3, m_selectedObject) ) EditorUI::deleteObject(a1, a1->m_selectedObject, 0); } EditorUI::updateObjectInfoLabel(a1); ((void (__fastcall *)(EditorUI *))a1->updateScaleControl)(a1); EditorUI::updateButtons(a1); }