//
// EditorUI::onCreateButton from 0x7c2e10 to 0x7c2e5c (76 bytes)
//
// 4 xrefs:
// > ??> @ 0x812c8
// > EditorUI::menuItemFromObjectString @ 0xbdf3e0
// > EditorUI::getCreateBtn @ 0xbe2418
// > ??> @ 0x15435a8
//
// This function is hookable on this platform (idp: arm, 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:54:07 +0000
//
__int64 __fastcall EditorUI::onCreateButton(EditorUI *this, cocos2d::CCObject *a2)
{
EditorUI *v2; // x19
EditorSFXManager *v3; // x0
v2 = this;
LODWORD(this) = *((_DWORD *)a2 + 132);
if ( (_DWORD)this == *((_DWORD *)v2 + 336) )
this = nullptr;
else
this = (EditorUI *)(unsigned int)this;
*((_DWORD *)v2 + 336) = (_DWORD)this;
v3 = (EditorSFXManager *)EditorSFXManager::sharedState(this);
EditorSFXManager::playAction(v3, 277);
EditorUI::updateCreateMenu(v2, 0);
return EditorUI::updateGridNodeSize((cocos2d::CCArray **)v2);
}