//
// EditorUI::setCustomGridNodeSize from 0x481914 to 0x481986 (114 bytes)
//
// 5 xrefs:
// > EditorUI::setCustomGridEnabled @ 0x4819c4
// > EditorUI::cycleCustomGridPreset @ 0x481aa6
// > EditorUI::adjustCustomGridSize @ 0x481afc
// > GridSettingsLayer::onReset @ 0x78e2bc
// > GridSettingsLayer::valueDidChange @ 0x78e32c
//
// 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::setCustomGridNodeSize(EditorUI *this, float a2)
{
float v3; // s16
GameManager *v4; // r0
int v5; // r3
v3 = a2;
if ( a2 <= 0.0 )
{
v3 = 0.0;
}
else if ( a2 >= 300.0 )
{
v3 = 300.0;
}
else if ( a2 <= 5.0 )
{
v3 = 5.0;
}
*((float *)this + 119) = v3;
v4 = (GameManager *)GameManager::sharedState(this);
GameManager::setIntGameVariable(v4, "0193", (const char *)(int)(float)(v3 * 10.0), v5);
return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);
}