//
// EditorUI::setCustomGridNodeSize from 0x7c142c to 0x7c14a8 (124 bytes)
//
// 9 xrefs:
// > EditorUI::setCustomGridEnabled @ 0x7c1504
// > EditorUI::cycleCustomGridPreset @ 0x7c1578
// > EditorUI::cycleCustomGridPreset @ 0x7c15c0
// > EditorUI::cycleCustomGridPreset @ 0x7c15f8
// > EditorUI::adjustCustomGridSize @ 0x7c1630
// > EditorUI::adjustCustomGridSize @ 0x7c1668
// > GridSettingsLayer::onReset @ 0xcdbc5c
// > GridSettingsLayer::valueDidChange @ 0xcdbcc4
// > ??> @ 0xa6870
//
// 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::setCustomGridNodeSize(EditorUI *this, float a2)
{
float v3; // s1
GameManager *v4; // x0
float v6; // [xsp+20h] [xbp+20h]
if ( a2 <= 0.0 )
{
a2 = 0.0;
}
else
{
v3 = 300.0;
if ( a2 >= 300.0 || (v3 = 5.0, a2 <= 5.0) )
a2 = v3;
}
*((float *)this + 163) = a2;
v6 = a2;
v4 = (GameManager *)GameManager::sharedState(this);
GameManager::setIntGameVariable(v4, "0193", (int)(float)(v6 * 10.0));
return EditorUI::updateGridNodeSize((cocos2d::CCArray **)this);
}