//
// EditorUI::onCreateButton from 0x1003eb00c to 0x1003eb048 (60 bytes)
//
// 2 xrefs:
// > EditorUI::menuItemFromObjectString @ 0x1003e9024
// > EditorUI::getCreateBtn @ 0x1003ea4bc
//
// 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; // w8
m_uAutoReleaseCount = a2[9].m_uAutoReleaseCount;
if ( a1->m_selectedObjectIndex == m_uAutoReleaseCount )
m_uAutoReleaseCount = 0;
a1->m_selectedObjectIndex = m_uAutoReleaseCount;
EditorUI::updateCreateMenu(a1, 0);
EditorUI::updateGridNodeSize(a1);
}