//
// EditorUI::onDeleteCustomItem from 0x10063c970 to 0x10063ca01 (145 bytes)
//
// 1 xrefs:
// > EditorUI::createCustomItems @ 0x1006387c7
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:34:41 +0000
//
void __fastcall EditorUI::onDeleteCustomItem(__int64 a1, double a2)
{
__int64 v2; // rax
__int64 v3; // rax
unsigned int IntGameVariable; // r14d
__int64 v5; // rax
unsigned int v6; // r15d
__int64 v7; // r12
__int64 CustomItems; // rax
if ( *(int *)(a1 + 1344) < 0 )
{
v2 = GameManager::sharedState();
GameManager::removeCustomObject(v2);
*(_DWORD *)(a1 + 1344) = 0;
v3 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v3, "0049");
v5 = GameManager::sharedState();
v6 = GameManager::getIntGameVariable(v5, "0050");
v7 = *(_QWORD *)(a1 + 624);
CustomItems = EditorUI::createCustomItems(a1, a2);
EditButtonBar::loadFromItems(v7, CustomItems, IntGameVariable, v6, 1);
}
}