//
// EditorUI::onCreateButton from 0x689df8 to 0x689e34 (60 bytes)
//
// 4 xrefs:
// > ??> @ 0x5e800
// > EditorUI::getCreateBtn @ 0x6949b0
// > EditorUI::menuItemFromObjectString @ 0x697418
// > ??> @ 0x122b0e8
//
// 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::onCreateButton(EditorUI *a1, cocos2d::CCObject *a2)
{
int m_uIndexInArray; // w2
m_uIndexInArray = a2[8].m_uIndexInArray;
if ( m_uIndexInArray == a1->m_selectedObjectIndex )
m_uIndexInArray = 0;
a1->m_selectedObjectIndex = m_uIndexInArray;
EditorUI::updateCreateMenu(a1, 0);
EditorUI::updateGridNodeSize(a1);
}