//
// EditorUI::onDeleteCustomItem from 0x1003e8b1c to 0x1003e8b58 (60 bytes)
//
// 1 xrefs:
// > EditorUI::createCustomItems @ 0x1003e8e34
//
// 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::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);
}
}