//
// EditorUI::onCreateButton from 0x100010880 to 0x1000108ca (74 bytes)
//
// 2 xrefs:
// > EditorUI::getCreateBtn @ 0x100638251
// > EditorUI::menuItemFromObjectString @ 0x10063903a
//
// 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 12:18:52 +0000
//
__int64 __fastcall EditorUI::onCreateButton(__int64 a1, __int64 a2, float a3)
{
int v3; // ecx
__int64 v4; // rax
v3 = 0;
if ( *(_DWORD *)(a1 + 1344) != *(_DWORD *)(a2 + 528) )
v3 = *(_DWORD *)(a2 + 528);
*(_DWORD *)(a1 + 1344) = v3;
v4 = EditorSFXManager::sharedState(a1);
EditorSFXManager::playAction_1(v4, 277);
EditorUI::updateCreateMenu(a1, 0);
return EditorUI::updateGridNodeSize_1(a1, a3);
}