//
// GridSettingsLayer::valueDidChange from 0x78e2d8 to 0x78e332 (90 bytes)
//
// 0 xrefs:
//
// 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:59:39 +0000
//
EditorUI *__fastcall GridSettingsLayer::valueDidChange(EditorUI *this, int a2, float a3)
{
float v3; // s15
v3 = a3;
if ( a2 == -2 )
{
this = *((EditorUI **)this + 178);
if ( this )
{
if ( a3 < 5.0 )
{
v3 = 5.0;
}
else if ( a3 > 120.0 )
{
v3 = 120.0;
}
return (EditorUI *)EditorUI::setCustomGridNodeSize(this, v3);
}
}
else if ( a2 == -1 )
{
this = *((EditorUI **)this + 178);
if ( this )
return (EditorUI *)EditorUI::setCustomGridEnabled(this, (const char *)(a3 != 0.0));
}
return this;
}