// // EditorUI::cycleCustomGridPreset from 0x10000e0c0 to 0x10000e200 (320 bytes) // // 4 xrefs: // > EditorUI::handleEditorAction @ 0x10060bcf9 // > EditorUI::handleEditorAction @ 0x10060cd28 // > sub_100908B60 @ 0x100908b77 // > sub_100908BD0 @ 0x100908bea // // This function is hookable on this platform (idp: pc, 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:18:50 +0000 // __int64 __fastcall EditorUI::cycleCustomGridPreset(__int64 a1, __int64 a2, __int64 a3) { float v4; // xmm0_4 float v5; // xmm0_4 float v6; // xmm1_4 __int64 v7; // rdi __int64 v8; // rdx __int64 v9; // rdi __int64 v10; // rdx float v11; // xmm0_4 __int64 v12; // rax float v13; // xmm0_4 if ( *(_BYTE *)(a1 + 656) ) { v4 = *(float *)(a1 + 652); if ( (_BYTE)a2 ) { v5 = v4 + 0.001; v6 = 7.5; if ( v5 >= 7.5 ) { v6 = 15.0; if ( v5 >= 15.0 ) { v6 = 30.0; if ( v5 >= 30.0 ) { v6 = 60.0; if ( v5 >= 60.0 ) v6 = 120.0; } } } } else { v11 = v4 + -0.001; v6 = 120.0; if ( v11 <= 120.0 ) { v6 = 60.0; if ( v11 <= 60.0 ) { v6 = 30.0; if ( v11 <= 30.0 ) { v6 = 15.0; if ( v11 <= 15.0 ) v6 = 7.5; } } } } *(float *)(a1 + 652) = v6; v12 = GameManager::sharedState(a1, a2, a3); v10 = (unsigned int)(int)(float)(v6 * 10.0); v9 = v12; } else { *(_BYTE *)(a1 + 656) = 1; v7 = GameManager::sharedState(a1, a2, a3); GameManager::setGameVariable(v7, "0194", 1); *(_DWORD *)(a1 + 652) = 1106247680; v9 = GameManager::sharedState(v7, "0194", v8); v10 = 300; } v13 = GameManager::setIntGameVariable(v9, "0193", v10); return EditorUI::updateGridNodeSize_1(a1, v13); }