//
// EditorUI::showGridSizeAlert from 0x4859c0 to 0x485a72 (178 bytes)
//
// 1 xrefs:
// > EditorUI::handleEditorAction @ 0x6f1c22
//
// 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:25 +0000
//
int __fastcall EditorUI::showGridSizeAlert(EditorUI *this)
{
float v2; // s15
size_t v3; // r0
int v5[3]; // [sp+8h] [bp-30h] BYREF
char v6[32]; // [sp+14h] [bp-24h] BYREF
if ( *((_BYTE *)this + 480) && (v2 = *((float *)this + 119), v2 > 0.0) )
{
if ( v2 == (float)(int)v2 )
sub_993BD0(v6, "Gridsize: %d", (int)v2);
else
sub_993BD0(v6, "Gridsize: %.1f", v2);
}
else
{
strcpy(v6, "Gridsize: Off");
}
memset(v5, 0, sizeof(v5));
v3 = strlen(v6);
std::string::__init(v5, v6, v3);
EditorUI::showTextAlert((int)this, (int)v5, 0, 1, 0);
return std::string::~string((int)v5);
}