//
// EditorUI::onDeleteCustomItem from 0x697950 to 0x697994 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0xae6a8
// > EditorUI::createCustomItems @ 0x69784c
// > ??> @ 0x122e070
//
// 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::onDeleteCustomItem(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
if ( a1->m_selectedObjectIndex < 0 )
{
v3 = GameManager::sharedState();
GameManager::removeCustomObject(v3, a1->m_selectedObjectIndex);
a1->m_selectedObjectIndex = 0;
EditorUI::reloadCustomItems(a1);
}
}