//
// EditorUI::onCreateButton from 0x1000347d0 to 0x100034805 (53 bytes)
//
// 2 xrefs:
// > EditorUI::menuItemFromObjectString @ 0x100031b98
// > EditorUI::getCreateBtn @ 0x100033ac1
//
// 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::onCreateButton(EditorUI *a1, cocos2d::CCObject *a2)
{
unsigned int m_uAutoReleaseCount; // ecx
m_uAutoReleaseCount = 0;
if ( a1->m_selectedObjectIndex != a2[9].m_uAutoReleaseCount )
m_uAutoReleaseCount = a2[9].m_uAutoReleaseCount;
a1->m_selectedObjectIndex = m_uAutoReleaseCount;
EditorUI::updateCreateMenu(a1, 0);
EditorUI::updateGridNodeSize_1(a1);
}