//
// EditorUI::toggleCustomGridEnabled from 0x10000e040 to 0x10000e0c0 (128 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x10060be3b
//
// 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:50 +0000
//
__int64 __fastcall EditorUI::toggleCustomGridEnabled(__int64 a1, __int64 a2, __int64 a3, float a4)
{
int v5; // r15d
__int64 v6; // rdi
__int64 v7; // rdx
__int64 v8; // rax
v5 = *(unsigned __int8 *)(a1 + 656);
*(_BYTE *)(a1 + 656) ^= 1u;
v6 = GameManager::sharedState(a1, a2, a3);
GameManager::setGameVariable(v6, "0194", v5 ^ 1u);
if ( !v5 )
{
a4 = 0.0;
if ( *(float *)(a1 + 652) <= 0.0 )
{
*(_DWORD *)(a1 + 652) = 1106247680;
v8 = GameManager::sharedState(v6, "0194", v7);
a4 = GameManager::setIntGameVariable(v8, "0193", 300);
}
}
return EditorUI::updateGridNodeSize_1(a1, a4);
}