//
// EditorUI::setCustomGridEnabled from 0x7c14ac to 0x7c1508 (92 bytes)
//
// 3 xrefs:
// > EditorUI::toggleCustomGridEnabled @ 0x7c1510
// > GridSettingsLayer::valueDidChange @ 0xcdbca4
// > ??> @ 0xf1c00
//
// 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:06 +0000
//
__int64 __fastcall EditorUI::setCustomGridEnabled(EditorUI *this, unsigned __int8 a2)
{
int v2; // w19
GameManager *v4; // x0
v2 = a2;
*((_BYTE *)this + 656) = a2;
v4 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v4, "0194", v2);
if ( v2 && *((float *)this + 163) <= 0.0 )
return EditorUI::setCustomGridNodeSize(this, 30.0);
else
return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);
}