// // EditorUI::toggleMode from 0x1401afd40 to 0x1401afe3b (251 bytes) // // 13 xrefs: // > EditorUI::init @ 0x1401ab201 // > EditorUI::onPlaytest @ 0x1401b47ec // > EditorUI::handleEditorAction @ 0x1401c249c // > EditorUI::handleEditorAction @ 0x1401c24ba // > EditorUI::handleEditorAction @ 0x1401c24d8 // > EditorUI::handleEditorAction @ 0x1401c24f6 // > EditorUI::init @ 0x1401aa0e4 // > EditorUI::init @ 0x1401aa1a1 // > EditorUI::init @ 0x1401aa256 // > EditorUI::init @ 0x1401aa30b // > @ 0x1408a139c // > @ 0x1408a13ac // > @ 0x140919e5c // // 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 11:27:55 +0000 // void __fastcall EditorUI::toggleMode(__int64 a1, __int64 a2) { int v3; // eax int v4; // ebx int v5; // ebp int v6; // esi int v7; // ebx int v8; // ebx int v9; // ebx _QWORD *v10; // rbx int v11; // eax __int64 v12; // rcx __int64 v13; // rax v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = v3; if ( *(_DWORD *)(a1 + 1508) != v3 ) { *(_DWORD *)(a1 + 1508) = v3; EditorUI::resetUI(a1); v5 = 169; v6 = 169; v7 = v4 - 1; if ( v7 ) { v8 = v7 - 1; if ( v8 ) { v9 = v8 - 1; if ( v9 ) { if ( v9 == 1 ) v6 = 173; } else { v6 = 171; } } else { v6 = 170; } } else { v6 = 172; } v10 = (_QWORD *)EditorSFXManager::sharedState(); if ( EditorSFXManager::hasSoundsForAction(v10, v6) ) v5 = v6; EditorSFXManager::playAction((__int64)v10, v5); v11 = *(_DWORD *)(a1 + 1508); switch ( v11 ) { case 1: v12 = *(_QWORD *)(a1 + 968); break; case 2: v12 = *(_QWORD *)(a1 + 976); break; case 3: v12 = *(_QWORD *)(a1 + 984); break; case 4: v12 = *(_QWORD *)(a1 + 992); break; default: return; } v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 952LL))(v12); ButtonSprite::updateBGImage(v13, "GJ_button_02.png"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source