//
// EditorUI::setCustomGridEnabled from 0x481994 to 0x4819d0 (60 bytes)
//
// 2 xrefs:
// > EditorUI::toggleCustomGridEnabled @ 0x4819e0
// > GridSettingsLayer::valueDidChange @ 0x78e2f8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:22 +0000
//
int __fastcall EditorUI::setCustomGridEnabled(EditorUI *this, const char *a2)
{
GameManager *v4; // r0
*((_BYTE *)this + 480) = (_BYTE)a2;
v4 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v4, "0194", a2);
if ( a2 && *((float *)this + 119) <= 0.0 )
return EditorUI::setCustomGridNodeSize(this, 30.0);
else
return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);
}