//
// GridSettingsLayer::valueDidChange from 0xcdbc84 to 0xcdbcdc (88 bytes)
//
// 2 xrefs:
// > ??> @ 0xba040
// > ??> @ 0x15024e0
//
// 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 13:06:33 +0000
//
EditorUI *__fastcall GridSettingsLayer::valueDidChange(EditorUI *this, int a2, float a3)
{
if ( a2 == -2 )
{
this = *((EditorUI **)this + 127);
if ( this )
{
if ( a3 >= 5.0 )
{
if ( a3 > 120.0 )
a3 = 120.0;
}
else
{
a3 = 5.0;
}
return (EditorUI *)EditorUI::setCustomGridNodeSize(this, a3);
}
}
else if ( a2 == -1 )
{
this = *((EditorUI **)this + 127);
if ( this )
return (EditorUI *)EditorUI::setCustomGridEnabled(this, a3 != 0.0);
}
return this;
}