// // EditorUI::toggleViewOption from 0x70c2e4 to 0x70c6de (1018 bytes) // // 2 xrefs: // > EditorUI::handleEditorAction @ 0x6f1d6c // > EditorUI::onViewButton @ 0x70c780 // // 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:57:41 +0000 // int __fastcall EditorUI::toggleViewOption(EditorUI *this, int a2) { char *v4; // r1 int v5; // r3 unsigned __int8 *v6; // r0 unsigned __int8 *v7; // r4 int v8; // r3 GameManager *v10; // r0 char *v11; // r1 LevelEditorLayer *v12; // r4 GameManager *v13; // r0 char GameVariable; // r0 GameManager *v15; // r4 GameManager *v16; // r4 char *v17; // r3 char *v18; // r1 const char *v19; // r9 size_t v20; // r0 float *v21; // r9 int v22; // [sp+Ch] [bp-40h] BYREF float v23[2]; // [sp+10h] [bp-3Ch] BYREF float v24[2]; // [sp+18h] [bp-34h] BYREF char v25[4]; // [sp+20h] [bp-2Ch] BYREF int v26; // [sp+24h] [bp-28h] const char *v27; // [sp+28h] [bp-24h] int v28[3]; // [sp+2Ch] [bp-20h] BYREF int v29; // [sp+38h] [bp-14h] BYREF int v30; // [sp+3Ch] [bp-10h] int v31; // [sp+40h] [bp-Ch] v22 = a2; if ( (a2 == 9 || a2 == 20) && *(_DWORD *)(*((_DWORD *)this + 236) + 1428) ) { v29 = 0; v30 = 0; v31 = 0; std::string::__init(&v29, "Stop Playtest First.", 0x14u); EditorUI::showTextAlert((int)this, &v29, 0, 1, 0); std::string::~string((int)&v29); return 0; } else { v6 = (unsigned __int8 *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_DWORD *)this + 229, (unsigned int *)&v22); v7 = v6; if ( v6 ) { v8 = v6[12]; v6 = (unsigned __int8 *)(v8 << 31); if ( (v8 & 1) != 0 ? *((_DWORD *)v7 + 4) : v8 >> 1 ) { v10 = (GameManager *)GameManager::sharedState((GameManager *)v6); if ( (v7[12] & 1) != 0 ) v11 = *((char **)v7 + 5); else v11 = (char *)(v7 + 13); v6 = (unsigned __int8 *)GameManager::toggleGameVariable(v10, v11); } } switch ( v22 ) { case 4: EditorUI::toggleObjectInfoLabel(this); break; case 5: v12 = *((LevelEditorLayer **)this + 236); v13 = (GameManager *)GameManager::sharedState((GameManager *)v6); GameVariable = GameManager::getGameVariable(v13, "0037"); LevelEditorLayer::toggleGround(v12, GameVariable); break; case 7: LevelEditorLayer::updatePreviewParticles(*((LevelEditorLayer **)this + 236)); break; case 8: LevelEditorLayer::updatePreviewAnim(*((cocos2d::CCArray ***)this + 236)); break; case 9: LevelEditorLayer::updateEditorMode(*((LevelEditorLayer **)this + 236)); break; case 14: v15 = (GameManager *)GameManager::sharedState((GameManager *)v6); *((_BYTE *)v15 + 721) = *(_BYTE *)(GameManager::sharedState(v15) + 721) ^ 1; break; case 15: v16 = (GameManager *)GameManager::sharedState((GameManager *)v6); *((_BYTE *)v16 + 722) = *(_BYTE *)(GameManager::sharedState(v16) + 722) ^ 1; break; case 17: LevelEditorLayer::toggleLocalDeaths(*((LevelEditorLayer **)this + 236)); break; case 18: LevelEditorLayer::toggleGlobalDeaths(*((LevelEditorLayer **)this + 236)); break; case 19: LevelEditorLayer::toggleDeathLabels(*((LevelEditorLayer **)this + 236)); break; case 20: *(_BYTE *)(*((_DWORD *)this + 236) + 12278) = 1; break; case 21: v17 = &LevelEditorLayer::s_liveTraceIn; goto LABEL_34; case 22: v17 = &LevelEditorLayer::s_liveTraceOut; LABEL_34: *v17 ^= 1u; break; default: break; } LevelEditorLayer::updateOptions(*((EditorUI ***)this + 236)); EditorUI::updateViewButtons((char *)this); *(_DWORD *)v25 = 0; v26 = 0; v27 = nullptr; std::string::__init((int *)v25, &unk_B6B226, 0); switch ( v22 ) { case -16: v4 = "Keyframe Lines: "; goto LABEL_6; case 1: v4 = "Ignore Damage: "; goto LABEL_6; case 2: v4 = "Select Filter: "; goto LABEL_6; case 3: v4 = "Show Grid: "; goto LABEL_6; case 4: v4 = "Object Info: "; goto LABEL_6; case 5: v4 = "Show Ground: "; goto LABEL_6; case 6: v4 = "Preview Shaders: "; goto LABEL_6; case 7: v4 = "Preview Particles: "; goto LABEL_6; case 8: v4 = "Preview Anims: "; goto LABEL_6; case 9: v4 = "Preview Mode: "; goto LABEL_6; case 10: v4 = "Hide Invisible: "; goto LABEL_6; case 11: v4 = "Show Hitboxes: "; goto LABEL_6; case 12: v4 = "Effect Lines: "; goto LABEL_6; case 13: v4 = "Duration Lines: "; goto LABEL_6; case 14: v4 = "Song Guidelines: "; goto LABEL_6; case 15: v4 = "BPM Lines: "; goto LABEL_6; case 17: v4 = "Local Markers: "; goto LABEL_6; case 18: v4 = "Global Markers: "; goto LABEL_6; case 19: v4 = "Marker Labels: "; goto LABEL_6; case 20: v4 = "LDM: "; goto LABEL_6; case 21: v4 = "Live Trace In: "; goto LABEL_6; case 22: v4 = "Live Trace Out: "; LABEL_6: std::string::assign((int *)v25, v4); break; default: break; } if ( (v25[0] & 1) != 0 ) v5 = v26; else v5 = (int)(unsigned __int8)v25[0] >> 1; if ( v5 ) { if ( EditorUI::getViewButtonState(this, v22) ) v18 = "On"; else v18 = "Off"; std::string::append(v25, v18); if ( (v25[0] & 1) != 0 ) v19 = v27; else v19 = &v25[1]; memset(v28, 0, sizeof(v28)); v20 = strlen(v19); std::string::__init(v28, v19, v20); v29 = 0; v30 = 0; v31 = 0; std::string::__init(&v29, "chatFont.fnt", 0xCu); v21 = (float *)TextAlertPopup::create((int)v28, (cocos2d::CCDelayTime *)0x3F19999A, 0.6, 100, (int)&v29); std::string::~string((int)&v29); std::string::~string((int)v28); TextAlertPopup::setLabelColor((int)v21, 65280, (int)&unk_BF02E4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 0.0, 1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 20.0, -20.0); TextAlertPopup::setAlertPosition(v21, v23, v24); (*(void (__fastcall **)(EditorUI *, float *, int))(*(_DWORD *)this + 232))(this, v21, 100); } std::string::~string((int)v25); return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source