// // EditorUI::handleEditorAction from 0x100162738 to 0x1001639b4 (4732 bytes) // // 1 xrefs: // > EditorUI::handleAction @ 0x1001626fc // // This function is hookable on this platform (idp: arm, 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 10:59:47 +0000 // __int64 __fastcall EditorUI::handleEditorAction(__int64 a1, int a2, int a3) { __int64 v3; // x20 __int64 v7; // x1 __int64 v8; // x1 __int64 v9; // x20 bool v10; // zf __int64 v11; // x0 __n128 v12; // q0 __int64 v13; // x0 __int64 v14; // x20 __int64 v15; // x1 __int64 v16; // x0 __int64 IntGameVariable; // x0 __int64 v18; // x22 __int64 v19; // x0 __int64 v20; // x0 __n128 GameVariable; // q0 __int64 v22; // x3 __int64 v23; // x0 void *v24; // x0 void *v25; // x0 __int64 v26; // x0 _QWORD *v27; // x0 __int64 v28; // x0 void *v29; // x0 __int64 v30; // x1 char v31; // w8 char v32; // w9 __n128 v33; // q0 __int64 v34; // x0 __int64 v35; // x1 __int64 v36; // x0 float v37; // s0 float v38; // s8 __int64 v39; // x0 float v40; // s9 float v41; // s10 double *v42; // x0 float v43; // s1 __int64 v44; // x1 __int64 v45; // x0 __int64 v46; // x0 __int64 v47; // x0 __int64 v48; // x0 __int64 v49; // x0 __int64 v50; // x0 __int64 v51; // x0 __int64 v52; // x0 char v53; // w0 void *v54; // x0 __int64 v55; // x0 _QWORD *v56; // x0 __int64 v57; // x0 __int64 SelectedObjects; // x0 __int64 v59; // x0 _QWORD *v60; // x0 __int64 v61; // x0 __n128 v62; // q0 __int64 v63; // x0 __int64 v64; // x1 __int64 v65; // x0 __int64 v66; // x0 __int64 v67; // x21 __n128 v68; // q0 __int64 v69; // x0 __n128 v70; // q0 __n128 v72; // q0 __int64 v73; // x20 __int64 v74; // x0 int v75; // w0 char v76[23]; // [xsp+8h] [xbp-1A8h] BYREF char v77; // [xsp+1Fh] [xbp-191h] void *v78[2]; // [xsp+20h] [xbp-190h] BYREF char v79; // [xsp+37h] [xbp-179h] char v80[23]; // [xsp+38h] [xbp-178h] BYREF char v81; // [xsp+4Fh] [xbp-161h] char v82[23]; // [xsp+50h] [xbp-160h] BYREF char v83; // [xsp+67h] [xbp-149h] char __s[23]; // [xsp+68h] [xbp-148h] BYREF char v85; // [xsp+7Fh] [xbp-131h] void *__p[2]; // [xsp+80h] [xbp-130h] BYREF char v87; // [xsp+97h] [xbp-119h] char v88[23]; // [xsp+98h] [xbp-118h] BYREF char v89; // [xsp+AFh] [xbp-101h] void *v90[2]; // [xsp+B0h] [xbp-100h] BYREF char v91; // [xsp+C7h] [xbp-E9h] char v92[23]; // [xsp+C8h] [xbp-E8h] BYREF char v93; // [xsp+DFh] [xbp-D1h] char v94[23]; // [xsp+E0h] [xbp-D0h] BYREF char v95; // [xsp+F7h] [xbp-B9h] char v96[8]; // [xsp+F8h] [xbp-B8h] BYREF char v97; // [xsp+10Fh] [xbp-A1h] char v98[23]; // [xsp+110h] [xbp-A0h] BYREF char v99; // [xsp+127h] [xbp-89h] char v100[23]; // [xsp+128h] [xbp-88h] BYREF char v101; // [xsp+13Fh] [xbp-71h] double v102; // [xsp+140h] [xbp-70h] BYREF __int64 v103; // [xsp+148h] [xbp-68h] BYREF __int64 v104; // [xsp+150h] [xbp-60h] BYREF __int64 v105; // [xsp+158h] [xbp-58h] BYREF v3 = 0; v105 = a1; switch ( a2 ) { case 20001: if ( a3 ) EditorUI::undoLastAction(a1, 0); return 1; case 20002: if ( a3 ) EditorUI::redoLastAction(a1, 0); return 1; case 20003: if ( a3 ) EditorUI::onCopy(a1, 0); return 1; case 20004: if ( a3 ) EditorUI::onPaste(a1, 0); return 1; case 20005: if ( a3 ) EditorUI::onDuplicate(a1, 0); return 1; case 20006: if ( a3 ) EditorUI::onDeselectAll(a1, 0); return 1; case 20007: case 20008: case 20009: case 20010: case 20011: case 20012: case 20013: case 20014: case 20015: case 20016: if ( !a3 ) return 1; v3 = 1; sub_100163D04(&v105, (unsigned int)(a2 - 20007), 1); return v3; case 20017: case 20018: case 20019: case 20020: case 20021: case 20022: case 20023: case 20024: case 20025: case 20026: if ( a3 ) sub_100163D04(&v105, (unsigned int)(a2 - 20017), 0); return 1; case 20027: if ( !a3 ) return 1; v44 = *(_QWORD *)(a1 + 928); goto LABEL_181; case 20028: if ( !a3 ) return 1; v44 = *(_QWORD *)(a1 + 936); goto LABEL_181; case 20029: if ( !a3 ) return 1; v44 = *(_QWORD *)(a1 + 920); goto LABEL_181; case 20030: if ( !a3 ) return 1; v44 = *(_QWORD *)(a1 + 944); LABEL_181: EditorUI::toggleMode(a1, v44); return 1; case 20031: if ( a3 ) EditorUI::zoomIn(a1, 0); return 1; case 20032: if ( a3 ) EditorUI::zoomOut(a1, 0); return 1; case 20033: if ( !a3 ) return 1; v43 = -10.0; goto LABEL_168; case 20034: if ( !a3 ) return 1; v43 = 10.0; LABEL_168: sub_1000262BC((float *)&v104, 0.0, v43); EditorUI::moveGamelayer(a1, &v104); return 1; case 20035: if ( a3 ) EditorUI::onDeleteSelected(a1, 0); return 1; case 20036: if ( a3 ) EditorUI::activateTransformControl(a1); return 1; case 20037: if ( !a3 ) return 1; v35 = 37; goto LABEL_196; case 20038: if ( !a3 ) return 1; v35 = 38; goto LABEL_196; case 20039: if ( !a3 ) return 1; v35 = 40; goto LABEL_196; case 20040: if ( !a3 ) return 1; v35 = 39; goto LABEL_196; case 20041: case 20042: case 20043: case 20044: case 20045: case 20046: case 20047: case 20048: case 20095: case 20096: case 20097: case 20098: case 20099: case 20100: case 20101: case 20102: case 20103: case 20104: case 20105: case 20106: case 20107: case 20108: case 20109: case 20110: case 20178: case 20179: case 20180: case 20181: if ( !a3 ) return 1; if ( a2 > 20094 ) { if ( a2 <= 20177 ) { switch ( a2 ) { case 20095: v7 = 17; break; case 20096: v7 = 18; break; case 20097: v7 = 19; break; case 20098: v7 = 20; break; case 20099: v7 = 21; break; case 20100: v7 = 22; break; case 20101: v7 = 23; break; case 20102: v7 = 24; break; case 20103: v7 = 25; break; case 20104: v7 = 26; break; case 20105: v7 = 27; break; case 20106: v7 = 28; break; case 20107: v7 = 9; break; case 20108: v7 = 10; break; case 20109: v7 = 11; break; case 20110: v7 = 12; break; default: goto LABEL_302; } goto LABEL_34; } if ( a2 <= 20179 ) { if ( a2 == 20178 ) v7 = 33; else v7 = 34; goto LABEL_34; } if ( a2 == 20180 ) { v7 = 35; goto LABEL_34; } if ( a2 == 20181 ) { v7 = 36; goto LABEL_34; } LABEL_302: v7 = 0; goto LABEL_34; } if ( a2 > 20044 ) { if ( a2 <= 20046 ) { if ( a2 == 20045 ) v7 = 1; else v7 = 2; goto LABEL_34; } if ( a2 != 20047 ) { if ( a2 == 20048 ) { v7 = 4; goto LABEL_34; } goto LABEL_302; } v7 = 3; } else { if ( a2 > 20042 ) { if ( a2 == 20043 ) v7 = 7; else v7 = 8; goto LABEL_34; } if ( a2 != 20041 ) { if ( a2 == 20042 ) { v7 = 6; goto LABEL_34; } goto LABEL_302; } v7 = 5; } LABEL_34: EditorUI::moveObjectCall_1(a1, v7); return 1; case 20049: if ( a3 ) EditorUI::toggleEnableRotate(a1, 0); return 1; case 20050: if ( a3 ) EditorUI::toggleFreeMove(a1, 0); return 1; case 20051: if ( a3 ) EditorUI::toggleSwipe(a1, 0); return 1; case 20052: if ( a3 ) EditorUI::toggleSnap(a1, 0); return 1; case 20053: if ( a3 && *(_DWORD *)(a1 + 704) == -1 ) EditorUI::onPlayback(a1, 0); return 1; case 20054: if ( !a3 ) return 1; v36 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL)); v38 = v37; v39 = cocos2d::CCDirector::sharedDirector(v36); cocos2d::CCDirector::getWinSize(&v104, v39); v40 = *(float *)&v104 * 0.5; v41 = (float)(*((float *)&v104 + 1) * 0.5) + (float)(*(float *)(a1 + 856) * 0.5); v42 = (double *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL)); sub_1000262F4(&v103, v42); sub_1000262BC((float *)&v102, (float)(v40 - *(float *)&v103) / v38, (float)(v41 - *((float *)&v103 + 1)) / v38); sub_10002630C((_QWORD *)(*(_QWORD *)(a1 + 1440) + 14584LL), &v102); sub_100009900(v100, "Preview Locked."); EditorUI::showTextAlert(a1, v100); if ( (v101 & 0x80000000) == 0 ) return 1; v24 = *(void **)v100; goto LABEL_355; case 20055: if ( !a3 ) return 1; sub_10002630C((_QWORD *)(*(_QWORD *)(a1 + 1440) + 14584LL), &dbl_1009F4000); sub_100009900(v98, "Preview Unlocked."); EditorUI::showTextAlert(a1, v98); if ( (v99 & 0x80000000) == 0 ) return 1; v24 = *(void **)v98; goto LABEL_355; case 20056: case 20058: case 20059: case 20153: case 20154: case 20155: case 20156: case 20157: case 20158: case 20159: case 20160: case 20161: case 20162: case 20163: case 20164: case 20165: case 20166: case 20167: case 20168: case 20169: case 20183: case 20184: if ( !a3 ) return 1; if ( a2 <= 20152 ) { switch ( a2 ) { case 20056: v8 = 9; break; case 20058: v8 = 11; break; case 20059: v8 = 10; break; default: LABEL_334: v8 = 0; break; } } else { switch ( a2 ) { case 20153: v8 = 20; break; case 20154: v8 = 8; break; case 20155: v8 = 7; break; case 20156: v8 = 6; break; case 20157: v8 = 5; break; case 20158: v8 = 4; break; case 20159: v8 = 3; break; case 20160: v8 = 2; break; case 20161: v8 = 1; break; case 20162: v8 = 12; break; case 20163: v8 = 13; break; case 20164: v8 = 14; break; case 20165: v8 = 15; break; case 20166: v8 = 4294967280LL; break; case 20167: v8 = 17; break; case 20168: v8 = 18; break; case 20169: v8 = 19; break; case 20183: v8 = 21; break; case 20184: v8 = 22; break; default: goto LABEL_334; } } if ( !(unsigned int)EditorUI::toggleViewOption(a1, v8) ) return 1; v63 = EditorSFXManager::sharedState(v70); if ( a2 > 20058 ) { if ( a2 != 20059 ) { if ( a2 == 20153 ) { v64 = 269; goto LABEL_346; } goto LABEL_343; } v64 = 197; } else { if ( a2 != 20056 ) { if ( a2 == 20058 ) { v64 = 196; goto LABEL_346; } LABEL_343: v64 = 189; goto LABEL_346; } v64 = 195; } goto LABEL_346; case 20057: if ( !a3 ) return 1; v59 = GameManager::sharedState(a1); GameManager::toggleGameVariable(v59, "0137"); sub_100401FCC(*(_QWORD *)(a1 + 1440)); v60 = sub_100009900(v96, "Particle Icons: "); v61 = GameManager::sharedState(v60); GameManager::getGameVariable(v61, "0137"); EditorUI::showTextAlert(a1, v96); if ( v97 < 0 ) operator delete(*(void **)v96); v63 = EditorSFXManager::sharedState(v62); v64 = 198; goto LABEL_346; case 20060: if ( !a3 ) return 1; v48 = GameManager::sharedState(a1); GameManager::getGameVariable(v48, "0097"); v3 = 1; if ( !(_DWORD)v49 ) return v3; v50 = GameManager::sharedState(v49); v51 = GameManager::toggleGameVariable(v50, "0180"); v52 = GameManager::sharedState(v51); GameManager::getGameVariable(v52, "0180"); *(_BYTE *)(a1 + 868) = v53; EditorUI::updateButtons(a1); sub_100009900(v92, "Link Mode: "); EditorUI::showTextAlert(a1, v92); if ( (v93 & 0x80000000) == 0 ) return v3; v54 = *(void **)v92; goto LABEL_256; case 20061: if ( !a3 ) return 1; v3 = 1; if ( !(unsigned int)EditorUI::toggleTraceSelected(a1, 1) ) return v3; sub_100009900(v90, "Trace In: "); EditorUI::showTextAlert(a1, (char *)v90); if ( (v91 & 0x80000000) == 0 ) return v3; v54 = v90[0]; LABEL_256: operator delete(v54); return v3; case 20062: if ( !a3 ) return 1; if ( !(unsigned int)EditorUI::toggleTraceSelected(a1, 0) ) return 1; sub_100009900(v88, "Trace Out: "); EditorUI::showTextAlert(a1, v88); if ( (v89 & 0x80000000) == 0 ) return 1; v24 = *(void **)v88; goto LABEL_355; case 20063: if ( a3 ) EditorUI::onGroupUp(a1, 0); return 1; case 20064: if ( a3 ) EditorUI::onGroupDown(a1, 0); return 1; case 20065: v3 = 1; if ( a3 ) EditorUI::onTargetIDChange(a1, 1); return v3; case 20066: if ( a3 ) EditorUI::onTargetIDChange(a1, 0xFFFFFFFFLL); return 1; case 20069: *(_BYTE *)(a1 + 688) = a3; return 1; case 20070: if ( !a3 ) return 1; v35 = 42; goto LABEL_196; case 20071: if ( !a3 ) return 1; v35 = 41; goto LABEL_196; case 20072: if ( !a3 ) return 1; v35 = 44; LABEL_196: EditorUI::transformObjectCall_1(a1, v35); return 1; case 20073: case 20074: if ( a3 ) { v13 = cocos2d::CCNode::create(a1); v14 = v13; if ( a2 == 20073 ) v15 = 45; else v15 = 46; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 72LL))(v13, v15); EditorUI::activateScaleControl(a1, v14); } return 1; case 20078: if ( a3 ) EditorUI::editObject(a1, 0); return 1; case 20079: if ( a3 ) EditorUI::editGroup(a1, 0); return 1; case 20080: if ( a3 ) EditorUI::editObject2(a1, 0); return 1; case 20081: if ( a3 ) EditorUI::onCopyState(a1, 0); return 1; case 20082: if ( a3 ) EditorUI::onPasteState(a1, 0); return 1; case 20083: if ( a3 ) EditorUI::onPasteColor(a1, 0); return 1; case 20084: case 20085: case 20118: case 20145: case 20146: if ( !a3 ) return 1; if ( a2 > 20117 ) { if ( a2 == 20145 ) { EditorUI::adjustCustomGridSize(a1, 1); v9 = 204; } else { if ( a2 != 20118 ) { LABEL_285: EditorUI::adjustCustomGridSize(a1, 0xFFFFFFFFLL); v9 = 205; goto LABEL_288; } EditorUI::toggleCustomGridEnabled(a1); if ( *(_BYTE *)(a1 + 656) ) v9 = 202; else v9 = 203; } } else { if ( a2 != 20084 ) { if ( a2 == 20085 ) { EditorUI::cycleCustomGridPreset(a1, 0); v9 = 201; goto LABEL_288; } goto LABEL_285; } EditorUI::cycleCustomGridPreset(a1, 1); v9 = 200; } LABEL_288: EditorUI::refreshGridWindow(a1); v68.n128_f64[0] = EditorUI::showGridSizeAlert(a1); v63 = EditorSFXManager::sharedState(v68); v64 = v9; LABEL_346: EditorSFXManager::playAction(v63, v64, 189); return 1; case 20086: if ( !a3 ) return 1; v23 = *(_QWORD *)(a1 + 1440); if ( *(_DWORD *)(*(_QWORD *)(v23 + 1936) + 1140LL) != 2 ) return 1; if ( *(_DWORD *)(v23 + 1972) ) { sub_100009900(__s, "Stop Playtest First."); EditorUI::showTextAlert(a1, __s); if ( (v85 & 0x80000000) == 0 ) return 1; v24 = *(void **)__s; goto LABEL_355; } if ( (unsigned int)LevelEditorLayer::saveLevel() ) { sub_100009900(v82, "Level Saved."); EditorUI::showTextAlert(a1, v82); if ( v83 < 0 ) { v24 = *(void **)v82; goto LABEL_355; } } return 1; case 20088: if ( a3 ) EditorUI::dynamicGroupUpdate(a1, 0); return 1; case 20089: if ( a3 ) EditorUI::createLoop(a1); return 1; case 20090: if ( a3 ) { SelectedObjects = EditorUI::getSelectedObjects(a1); EditorUI::alignObjects(a1, SelectedObjects, 0); } return 1; case 20091: if ( !a3 ) return 1; v45 = EditorUI::getSelectedObjects(a1); v3 = 1; EditorUI::alignObjects(a1, v45, 1); return v3; case 20092: if ( a3 ) EditorUI::selectAll(a1); return 1; case 20093: v3 = 1; if ( a3 ) EditorUI::selectAllWithDirection(a1, 1); return v3; case 20094: if ( a3 ) EditorUI::selectAllWithDirection(a1, 0); return 1; case 20112: if ( !a3 ) return 1; v30 = (unsigned int)(*(_DWORD *)(a1 + 1536) - 1); goto LABEL_209; case 20113: if ( !a3 ) return 1; v30 = (unsigned int)(*(_DWORD *)(a1 + 1536) + 1); LABEL_209: EditorUI::selectBuildTab(a1, v30); return 1; case 20114: if ( a3 ) (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)a1 + 1320LL))(a1, 40.0, 0.0); return 1; case 20115: if ( a3 ) (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)a1 + 1320LL))(a1, -40.0, 0.0); return 1; case 20116: v3 = 1; if ( a3 ) { v31 = 0; v32 = *(_BYTE *)(a1 + 1589); *(_WORD *)(a1 + 1589) = (v32 & 1) == 0; if ( (v32 & 1) != 0 ) { EditorUI::updateDeleteMenu(a1); EditorUI::updateCreateMenu(a1, 0); EditorUI::updateEditMenu(a1); EditorUI::updateViewMenu(a1); v31 = *(_BYTE *)(a1 + 1589) ^ 1; } v33.n128_f64[0] = EditorUI::showUI(a1, v31 & 1); v34 = EditorSFXManager::sharedState(v33); EditorSFXManager::playAction(v34, 194, 189); } return v3; case 20117: if ( a3 && *(_QWORD *)(a1 + 1592) ) EditorUI::nextDpadStep(a1); return 1; case 20119: if ( a3 ) EditorUI::onEditorCommands(a1, 0); return 1; case 20120: if ( a3 ) { v47 = EditorUI::getSelectedObjects(a1); EditorUI::alignObjectsOnAxis(a1, v47, 0); } return 1; case 20121: if ( !a3 ) return 1; v46 = EditorUI::getSelectedObjects(a1); v3 = 1; EditorUI::alignObjectsOnAxis(a1, v46, 1); return v3; case 20122: if ( a3 ) EditorUI::createGradientFromSelection(a1); return 1; case 20123: v3 = 1; if ( a3 ) EditorUI::dynamicGroupUpdate(a1, 1); return v3; case 20124: if ( a3 ) EditorUI::assignNewGroups(a1, 0); return 1; case 20125: v3 = 1; if ( a3 ) EditorUI::assignNewGroups(a1, 1); return v3; case 20126: v3 = 1; if ( a3 ) EditorUI::doCopyObjects(a1, 1); return v3; case 20127: v3 = 1; if ( a3 ) EditorUI::doPasteObjects(a1, 1); return v3; case 20128: if ( a3 ) { v66 = EditorUI::getSelectedObjects(a1); EditorUI::createRockBases(a1, v66); } return 1; case 20129: if ( a3 ) LevelEditorLayer::unlockAllLayers(*(_QWORD *)(a1 + 1440)); return 1; case 20130: if ( a3 ) LevelEditorLayer::resetUnusedColorChannels(*(_QWORD *)(a1 + 1440)); return 1; case 20131: if ( a3 ) EditorUI::uncheckPortals(a1); return 1; case 20132: if ( a3 ) EditorUI::onEditColor(a1, 0); return 1; case 20133: if ( a3 ) EditorUI::onGoToLayer(a1, 0); return 1; case 20134: if ( a3 ) EditorUI::onGoToBaseLayer(a1, 0); return 1; case 20135: if ( a3 ) EditorUI::onGoToFreeLayer(a1, 0); return 1; case 20136: if ( a3 ) EditorUI::onLockLayer(a1, 0); return 1; case 20137: if ( a3 ) EditorUI::onGroupSticky(a1, 0); return 1; case 20138: if ( a3 ) EditorUI::onUngroupSticky(a1, 0); return 1; case 20140: if ( a3 ) goto LABEL_100; return 1; case 20141: if ( a3 ) EditorUI::onResetSpecialFilter(a1, 0); return 1; case 20142: if ( a3 ) EditorUI::onDeleteSelectedType(a1, 0); return 1; case 20143: if ( a3 ) EditorUI::onNewCustomItem(a1, 0); return 1; case 20144: if ( !a3 ) return 1; v65 = *(_QWORD *)(a1 + 1440); if ( *(_DWORD *)(*(_QWORD *)(v65 + 1936) + 1140LL) != 2 ) return 1; if ( *(_DWORD *)(v65 + 1972) ) { sub_100009900(v80, "Stop Playtest First."); EditorUI::showTextAlert(a1, v80); if ( (v81 & 0x80000000) == 0 ) return 1; v24 = *(void **)v80; } else { v72.n128_f64[0] = ((double (*)(void))LevelEditorLayer::saveLevel)(); v73 = sub_1002E73C8(v72); v74 = LocalLevelManager::sharedState(v73); v75 = LocalLevelManager::exportLevelsToFile(v74, v73); if ( v75 < 1 ) { if ( v75 ) return 1; sub_100009900(v76, "Export Failed."); EditorUI::showTextAlert(a1, v76); if ( (v77 & 0x80000000) == 0 ) return 1; v24 = *(void **)v76; } else { sub_100009900(v78, "Level Exported."); EditorUI::showTextAlert(a1, (char *)v78); if ( (v79 & 0x80000000) == 0 ) return 1; v24 = v78[0]; } } LABEL_355: operator delete(v24); return 1; case 20147: case 20148: case 20149: case 20150: v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)); if ( (_DWORD)v3 ) v10 = a3 == 0; else v10 = 1; if ( v10 ) return v3; v11 = *(_QWORD *)(a1 + 792); if ( a2 > 20148 ) { if ( a2 == 20149 ) sub_100159E54(v11); else sub_100159ED8(v11); } else if ( a2 == 20147 ) { sub_100159D4C(v11); } else { sub_100159DD0(v11); } goto LABEL_291; case 20151: if ( !a3 ) return 1; v25 = KeybindingsLayer::create(0); if ( !v25 ) return 1; goto LABEL_122; case 20152: if ( a3 ) { v25 = (void *)EditorSoundsLayer::create(a1); if ( v25 ) LABEL_122: (*(void (__fastcall **)(void *))(*(_QWORD *)v25 + 1312LL))(v25); } return 1; case 20170: if ( a3 ) sub_100476A28(a1, 0); return 1; case 20171: if ( a3 ) EditorUI::onColorFilter(a1, 0); return 1; case 20172: case 20173: if ( !a3 ) return 1; v16 = GameManager::sharedState(a1); IntGameVariable = GameManager::getIntGameVariable(v16, "0230"); if ( (int)IntGameVariable <= 0 ) { LABEL_100: sub_100476C74(a1, 0); return 1; } v18 = IntGameVariable; v19 = GameManager::sharedState(IntGameVariable); GameVariable = GameManager::getGameVariable(v19, "0232"); v3 = 1; if ( a2 == 20172 ) v22 = 1; else v22 = 0xFFFFFFFFLL; EditorUI::findObject(a1, v18, v20, v22, GameVariable); return v3; case 20174: case 20175: case 20176: case 20177: if ( !a3 ) return 1; v7 = EditorUI::selectedMoveCommand(a1, (unsigned int)(a2 - 20174)); goto LABEL_34; case 20182: if ( !a3 ) return 1; v55 = GameManager::sharedState(a1); GameManager::toggleGameVariable(v55, "0242"); v56 = sub_100009900(__p, "Anchor Snap: "); v57 = GameManager::sharedState(v56); GameManager::getGameVariable(v57, "0242"); EditorUI::showTextAlert(a1, (char *)__p); if ( (v87 & 0x80000000) == 0 ) goto LABEL_291; v29 = __p[0]; goto LABEL_233; case 20185: if ( !a3 ) return 1; v67 = EditorUI::getSelectedObjects(a1); v3 = 1; if ( (unsigned int)sub_1002E757C(v67) ) { EditorUI::getGroupCenter(v67, 1, (float *)&v104); EditorUI::centerCameraOnPoint(a1, &v104); } return v3; case 20186: if ( !a3 ) return 1; v26 = GameManager::sharedState(a1); GameManager::toggleGameVariable(v26, "0248"); LevelEditorLayer::updateOptions(*(_QWORD *)(a1 + 1440)); v27 = sub_100009900(v94, "Center Cross: "); v28 = GameManager::sharedState(v27); GameManager::getGameVariable(v28, "0248"); EditorUI::showTextAlert(a1, v94); if ( (v95 & 0x80000000) == 0 ) goto LABEL_291; v29 = *(void **)v94; LABEL_233: operator delete(v29); LABEL_291: v69 = EditorSFXManager::sharedState(v12); EditorSFXManager::playAction_1(v69, 189); return 1; case 20187: if ( a3 ) EditorUI::editObjectOptions(a1, 0); return 1; default: return v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source