//
// EditorUI::onCreateButton from 0x1401b20f0 to 0x1401b213c (76 bytes)
//
// 3 xrefs:
// > EditorUI::menuItemFromObjectString @ 0x1401f1304
// > EditorUI::getCreateBtn @ 0x1401f17cc
// > ??> @ 0x140919f70
//
// 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 11:27:56 +0000
//
__int64 __fastcall EditorUI::onCreateButton(__int64 a1, __int64 a2)
{
int v2; // eax
__int64 v4; // rax
v2 = 0;
if ( *(_DWORD *)(a1 + 1392) != *(_DWORD *)(a2 + 552) )
v2 = *(_DWORD *)(a2 + 552);
*(_DWORD *)(a1 + 1392) = v2;
v4 = EditorSFXManager::sharedState();
EditorSFXManager::playAction(v4, 277);
EditorUI::updateCreateMenu(a1, 0);
return EditorUI::updateGridNodeSize_1(a1);
}