// // EditorUI::handleEditorAction from 0x10060bbd0 to 0x10060d0ce (5374 bytes) // // 1 xrefs: // > EditorUI::handleAction @ 0x10060b878 // // 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:34:33 +0000 // __int64 __fastcall EditorUI::handleEditorAction(_QWORD *a1, __int64 a2, __int64 a3, __m128 a4) { int v4; // r15d unsigned int v5; // ebx _QWORD *v6; // r14 __int64 v7; // rsi __int64 v8; // rsi unsigned int v9; // r15d unsigned __int8 v10; // r12 __int64 v11; // rdi unsigned int v12; // eax void *v13; // r12 __int64 v14; // rax int IntGameVariable; // eax int v16; // r12d __int64 v17; // rax unsigned __int8 v18; // al __int64 v19; // rdi __int64 v20; // rax __int64 v21; // rax __int64 v22; // rdx __int64 v23; // rax unsigned __int8 v24; // al unsigned int v25; // esi char v26; // al char v27; // al __int64 v28; // rax __int64 v29; // xmm0_8 __int64 v30; // rsi _QWORD *v31; // rax float v32; // xmm1_4 __int64 v33; // rsi __int64 v34; // rax __int64 v35; // rax __int64 v36; // rax __int64 v37; // rax __int64 v38; // rax __int64 v39; // rax __int64 v40; // rax __int64 v41; // rax unsigned __int8 v42; // al __int64 v43; // rax __int64 SelectedObjects; // rax __int64 v45; // rax __int64 v46; // rdx __int64 v47; // rax unsigned __int8 GameVariable; // al __int64 v49; // rdi __int64 v50; // rsi __int64 v51; // rdi __int64 v52; // rax __int64 v53; // r15 __int64 v54; // rax __int64 v55; // rax __int64 v57; // r15 __int64 v58; // rax int v59; // eax __int64 v60; // [rsp+0h] [rbp-180h] BYREF void *v61[3]; // [rsp+8h] [rbp-178h] BYREF void *v62[3]; // [rsp+20h] [rbp-160h] BYREF void *v63[3]; // [rsp+38h] [rbp-148h] BYREF void *v64[3]; // [rsp+50h] [rbp-130h] BYREF void *v65[3]; // [rsp+68h] [rbp-118h] BYREF void *v66[3]; // [rsp+80h] [rbp-100h] BYREF void *v67[3]; // [rsp+98h] [rbp-E8h] BYREF void *v68[3]; // [rsp+B0h] [rbp-D0h] BYREF void *v69[3]; // [rsp+C8h] [rbp-B8h] BYREF void *v70[3]; // [rsp+E0h] [rbp-A0h] BYREF void *v71[2]; // [rsp+F8h] [rbp-88h] BYREF void *v72; // [rsp+108h] [rbp-78h] _QWORD v73[3]; // [rsp+110h] [rbp-70h] BYREF void *v74[3]; // [rsp+128h] [rbp-58h] BYREF __int64 v75; // [rsp+144h] [rbp-3Ch] BYREF float v76; // [rsp+14Ch] [rbp-34h] float v77; // [rsp+150h] [rbp-30h] float v78; // [rsp+154h] [rbp-2Ch] _QWORD v79[5]; // [rsp+158h] [rbp-28h] BYREF v4 = a2; v5 = 0; v6 = a1; switch ( (int)a2 ) { case 20001: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::undoLastAction((__int64)a1); return v5; case 20002: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::redoLastAction((__int64)a1); return v5; case 20003: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onCopy((__int64)a1); return v5; case 20004: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onPaste((__int64)a1); return v5; case 20005: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onDuplicate(a1); return v5; case 20006: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onDeselectAll((__int64)a1); return v5; case 20007: case 20008: case 20009: case 20010: case 20011: case 20012: case 20013: case 20014: case 20015: case 20016: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) sub_10060DCB0(a1, (unsigned int)(a2 - 20007), 1); return v5; case 20017: case 20018: case 20019: case 20020: case 20021: case 20022: case 20023: case 20024: case 20025: case 20026: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) sub_10060DCB0(a1, (unsigned int)(a2 - 20017), 0); return v5; case 20027: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v33 = a1[116]; goto LABEL_139; } return v5; case 20028: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v33 = a1[117]; goto LABEL_139; } return v5; case 20029: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v33 = a1[115]; goto LABEL_139; } return v5; case 20030: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v33 = a1[118]; LABEL_139: EditorUI::toggleMode((__int64)a1, v33); } return v5; case 20031: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::zoomIn((__int64)a1, a4); return v5; case 20032: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::zoomOut((__int64)a1, a4); return v5; case 20033: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v32 = -10.0; goto LABEL_126; } return v5; case 20034: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v32 = 10.0; LABEL_126: sub_100278250((float *)v79, 0.0, v32); EditorUI::moveGamelayer((__int64)a1, (__int64)v79); } return v5; case 20035: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onDeleteSelected(a1); return v5; case 20036: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::activateTransformControl(a1, 0); return v5; case 20037: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 37); return v5; case 20038: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 38); return v5; case 20039: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 40); return v5; case 20040: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 39); return v5; 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: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { switch ( (int)a2 ) { case 20041: v7 = 5; break; case 20042: v7 = 6; break; case 20043: v7 = 7; break; case 20044: v7 = 8; break; case 20045: v7 = 1; break; case 20046: v7 = 2; break; case 20047: v7 = 3; break; case 20048: v7 = 4; break; 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; case 20178: v7 = 33; break; case 20179: v7 = 34; break; case 20180: v7 = 35; break; case 20181: v7 = 36; break; default: v7 = 0; break; } EditorUI::moveObjectCall_1(a1, v7); } return v5; case 20049: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::toggleEnableRotate((__int64)a1, 0, a3); return v5; case 20050: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::toggleFreeMove((__int64)a1); return v5; case 20051: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::toggleSwipe((__int64)a1); return v5; case 20052: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::toggleSnap((__int64)a1, 0, a3); return v5; case 20053: LOBYTE(v5) = 1; if ( (_BYTE)a3 && *((_DWORD *)a1 + 176) == -1 ) EditorUI::onPlayback((__int64)a1); return v5; case 20054: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v76 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1[180] + 3920LL) + 168LL))(*(_QWORD *)(a1[180] + 3920LL)); v30 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v79, v30); v77 = *(float *)v79 * 0.5; v78 = (float)(0.5 * *((float *)a1 + 214)) + (float)(*((float *)v79 + 1) * 0.5); v31 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1[180] + 3920LL) + 192LL))(*(_QWORD *)(a1[180] + 3920LL)); sub_1002782D0(&v75, v31); sub_100278250((float *)&v60, (float)(v77 - *(float *)&v75) / v76, (float)(v78 - *((float *)&v75 + 1)) / v76); sub_100278300((_QWORD *)(a1[180] + 14584LL), &v60); sub_10000E4E0(v61, "Preview Locked."); EditorUI::showTextAlert(a1, v61, 0, 1, 0); if ( ((__int64)v61[0] & 1) != 0 ) operator delete(v61[2]); } return v5; case 20055: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { sub_100278300((_QWORD *)(a1[180] + 14584LL), &qword_100BE59C8); sub_10000E4E0(v62, "Preview Unlocked."); EditorUI::showTextAlert(a1, v62, 0, 1, 0); if ( ((__int64)v62[0] & 1) != 0 ) operator delete(v62[2]); } return v5; 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: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; switch ( (int)a2 ) { case 20056: v8 = 9; break; case 20058: v8 = 11; break; case 20059: v8 = 10; break; 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: v8 = 0; break; } if ( !(unsigned __int8)EditorUI::toggleViewOption(a1, v8) ) return v5; v55 = EditorSFXManager::sharedState(a1); if ( v4 > 20058 ) { if ( v4 == 20059 ) { v50 = 197; goto LABEL_313; } if ( v4 == 20153 ) { v50 = 269; goto LABEL_313; } } else { if ( v4 == 20056 ) { v50 = 195; goto LABEL_313; } if ( v4 == 20058 ) { v50 = 196; LABEL_313: v49 = v55; goto LABEL_314; } } v50 = 189; goto LABEL_313; case 20057: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v45 = GameManager::sharedState(); GameManager::toggleGameVariable(v45, (std::string::value_type *)"0137"); LevelEditorLayer::updatePreviewParticles(a1[180], (__int64)"0137", v46); sub_10000E4E0(v71, "Particle Icons: "); v47 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v47, "0137"); EditorUI::showTextAlert(a1, v71, GameVariable ^ 1u, 0, 0); if ( ((__int64)v71[0] & 1) != 0 ) { a1 = v72; operator delete(v72); } v49 = EditorSFXManager::sharedState(a1); v50 = 198; goto LABEL_314; case 20060: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v37 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getGameVariable(v37, "0097") ) { v38 = GameManager::sharedState(); GameManager::toggleGameVariable(v38, "0180"); v39 = GameManager::sharedState(); *((_BYTE *)a1 + 868) = GameManager::getGameVariable(v39, "0180"); EditorUI::updateButtons((__int64)a1); sub_10000E4E0(v63, "Link Mode: "); EditorUI::showTextAlert(a1, v63, *((unsigned __int8 *)a1 + 868) ^ 1u, 0, 0); if ( ((__int64)v63[0] & 1) != 0 ) operator delete(v63[2]); } } return v5; case 20061: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { if ( EditorUI::toggleTraceSelected(a1, 1) ) { sub_10000E4E0(v64, "Trace In: "); EditorUI::showTextAlert(a1, v64, *(_QWORD *)(a1[180] + 14824LL) != 0, 0, 0); if ( ((__int64)v64[0] & 1) != 0 ) operator delete(v64[2]); } } return v5; case 20062: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { if ( EditorUI::toggleTraceSelected(a1, 0) ) { sub_10000E4E0(v65, "Trace Out: "); EditorUI::showTextAlert(a1, v65, *(_QWORD *)(a1[180] + 14832LL) != 0, 0, 0); if ( ((__int64)v65[0] & 1) != 0 ) operator delete(v65[2]); } } return v5; case 20063: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGroupUp((__int64)a1); return v5; case 20064: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGroupDown((__int64)a1); return v5; case 20065: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onTargetIDChange((__int64)a1, 1); return v5; case 20066: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onTargetIDChange((__int64)a1, -1); return v5; case 20069: *((_BYTE *)a1 + 688) = a3; LOBYTE(v5) = 1; return v5; case 20070: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 42); return v5; case 20071: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 41); return v5; case 20072: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::transformObjectCall_1(a1, 44); return v5; case 20073: case 20074: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v13 = cocos2d::CCNode::create(); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v13 + 72LL))(v13, (unsigned int)((_DWORD)a2 != 20073) + 45); EditorUI::activateScaleControl(a1, v13); } return v5; case 20078: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::editObject(a1); return v5; case 20079: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::editGroup(a1); return v5; case 20080: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::editObject2((__int64)a1); return v5; case 20081: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onCopyState((__int64)a1); return v5; case 20082: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onPasteState((__int64)a1); return v5; case 20083: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onPasteColor((__int64)a1); return v5; case 20084: case 20085: case 20118: case 20145: case 20146: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; if ( (int)a2 > 20117 ) { if ( (_DWORD)a2 != 20145 ) { if ( (_DWORD)a2 == 20118 ) { EditorUI::toggleCustomGridEnabled((__int64)a1, a2, a3, a4.f32[0]); v9 = *((unsigned __int8 *)a1 + 656) ^ 0xCB; goto LABEL_246; } goto LABEL_243; } EditorUI::adjustCustomGridSize((__int64)a1, 1, a3); v9 = 204; } else { if ( (_DWORD)a2 != 20084 ) { if ( (_DWORD)a2 == 20085 ) { EditorUI::cycleCustomGridPreset((__int64)a1, 0, a3); v9 = 201; goto LABEL_246; } LABEL_243: EditorUI::adjustCustomGridSize((__int64)a1, 0xFFFFFFFFLL, a3); v9 = 205; goto LABEL_246; } EditorUI::cycleCustomGridPreset((__int64)a1, 1, a3); v9 = 200; } LABEL_246: EditorUI::refreshGridWindow((__int64)a1); EditorUI::showGridSizeAlert((__int64)a1); v49 = EditorSFXManager::sharedState(a1); v50 = v9; LABEL_314: EditorSFXManager::playAction(v49, v50, 189); return v5; case 20086: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v19 = a1[180]; if ( *(_DWORD *)(*(_QWORD *)(v19 + 1936) + 1140LL) == 2 ) { if ( *(_DWORD *)(v19 + 1972) ) { sub_10000E4E0(v66, "Stop Playtest First."); EditorUI::showTextAlert(v6, v66, 0, 1, 0); if ( ((__int64)v66[0] & 1) != 0 ) operator delete(v66[2]); } else if ( (unsigned __int8)LevelEditorLayer::saveLevel(v19) ) { sub_10000E4E0(v67, "Level Saved."); EditorUI::showTextAlert(v6, v67, 0, 1, 0); if ( ((__int64)v67[0] & 1) != 0 ) operator delete(v67[2]); } } } return v5; case 20088: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::dynamicGroupUpdate(a1, 0); return v5; case 20089: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::createLoop((__int64)a1); return v5; case 20090: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { SelectedObjects = EditorUI::getSelectedObjects((__int64)a1); EditorUI::alignObjects(a1, SelectedObjects, 0); } return v5; case 20091: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v34 = EditorUI::getSelectedObjects((__int64)a1); EditorUI::alignObjects(a1, v34, 1); } return v5; case 20092: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::selectAll(a1, *(double *)a4.i64); return v5; case 20093: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::selectAllWithDirection((__int64)a1, 1); return v5; case 20094: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::selectAllWithDirection((__int64)a1, 0); return v5; case 20112: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v25 = *((_DWORD *)a1 + 384) - 1; goto LABEL_166; case 20113: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v25 = *((_DWORD *)a1 + 384) + 1; LABEL_166: EditorUI::selectBuildTab((__int64)a1, v25); return v5; case 20114: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v28 = *a1; v29 = 1109393408; goto LABEL_179; case 20115: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v28 = *a1; v29 = 3256877056LL; LABEL_179: (*(void (__fastcall **)(_QWORD *, double, double))(v28 + 1320))(a1, *(double *)&v29, 0.0); return v5; case 20116: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v26 = *((_BYTE *)a1 + 1589); *((_BYTE *)a1 + 1589) = v26 ^ 1; *((_BYTE *)a1 + 1590) = 0; if ( v26 ) { EditorUI::updateDeleteMenu((__int64)a1); EditorUI::updateCreateMenu((__int64)a1, 0); EditorUI::updateEditMenu((__int64)a1); EditorUI::updateViewMenu((__int64)a1); v27 = *((_BYTE *)a1 + 1589) ^ 1; } else { v27 = 0; } EditorUI::showUI((__int64)a1, v27 & 1, a3); v49 = EditorSFXManager::sharedState(a1); v50 = 194; goto LABEL_314; case 20117: LOBYTE(v5) = 1; if ( (_BYTE)a3 && a1[199] ) EditorUI::nextDpadStep(a1); return v5; case 20119: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onEditorCommands((__int64)a1); return v5; case 20120: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v36 = EditorUI::getSelectedObjects((__int64)a1); EditorUI::alignObjectsOnAxis(a1, v36, 0); } return v5; case 20121: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v35 = EditorUI::getSelectedObjects((__int64)a1); EditorUI::alignObjectsOnAxis(a1, v35, 1); } return v5; case 20122: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::createGradientFromSelection((__int64)a1); return v5; case 20123: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::dynamicGroupUpdate(a1, 1); return v5; case 20124: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::assignNewGroups(a1, 0); return v5; case 20125: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::assignNewGroups(a1, 1); return v5; case 20126: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::doCopyObjects((__int64)a1, 1); return v5; case 20127: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::doPasteObjects((__int64)a1, 1u); return v5; case 20128: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v52 = EditorUI::getSelectedObjects((__int64)a1); EditorUI::createRockBases(a1, v52); } return v5; case 20129: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) LevelEditorLayer::unlockAllLayers(a1[180]); return v5; case 20130: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) LevelEditorLayer::resetUnusedColorChannels(a1[180]); return v5; case 20131: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::uncheckPortals((__int64)a1); return v5; case 20132: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onEditColor((__int64)a1); return v5; case 20133: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGoToLayer(a1); return v5; case 20134: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGoToBaseLayer((__int64)a1); return v5; case 20135: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGoToFreeLayer((__int64)a1); return v5; case 20136: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onLockLayer((__int64)a1, 0, a3); return v5; case 20137: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGroupSticky((__int64)a1); return v5; case 20138: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onUngroupSticky((__int64)a1); return v5; case 20140: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) goto LABEL_60; return v5; case 20141: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onResetSpecialFilter((__int64)a1, 0, a3, *(double *)a4.i64); return v5; case 20142: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onDeleteSelectedType((__int64)a1); return v5; case 20143: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onNewCustomItem(a1, 0); return v5; case 20144: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v51 = a1[180]; if ( *(_DWORD *)(*(_QWORD *)(v51 + 1936) + 1140LL) == 2 ) { if ( *(_DWORD *)(v51 + 1972) ) { sub_10000E4E0(v68, "Stop Playtest First."); EditorUI::showTextAlert(v6, v68, 0, 1, 0); if ( ((__int64)v68[0] & 1) != 0 ) operator delete(v68[2]); } else { LevelEditorLayer::saveLevel(v51); v57 = sub_1007FE9A0(*(_QWORD *)(v6[180] + 1936LL)); v58 = LocalLevelManager::sharedState(*(double *)a4.i64); v59 = sub_1006CE060(v58, v57); if ( v59 <= 0 ) { if ( !v59 ) { sub_10000E4E0(v70, "Export Failed."); EditorUI::showTextAlert(v6, v70, 0, 1, 0); if ( ((__int64)v70[0] & 1) != 0 ) operator delete(v70[2]); } } else { sub_10000E4E0(v69, "Level Exported."); EditorUI::showTextAlert(v6, v69, 0, 1, 0); if ( ((__int64)v69[0] & 1) != 0 ) operator delete(v69[2]); } } } } return v5; case 20147: case 20148: case 20149: case 20150: v10 = a3; v5 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[99] + 352LL))(a1[99]); if ( ((unsigned __int8)v5 & v10) == 1 ) { v11 = a1[99]; switch ( (int)a2 ) { case 20147: sub_100644390(v11, 0); break; case 20148: sub_100644410(v11, 0); break; case 20149: sub_100644490(v11, 0); break; case 20150: sub_100644510(v11, 0); break; } v54 = EditorSFXManager::sharedState(v11); EditorSFXManager::playAction_1(v54, 189); LOBYTE(v5) = 1; } return v5; case 20151: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v20 = KeybindingsLayer::create(0); goto LABEL_81; case 20152: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v20 = sub_1008FD440(a1); LABEL_81: if ( v20 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 1312LL))(v20); return v5; case 20170: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onGroupIDFilter((__int64)a1, 0, a3); return v5; case 20171: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::onColorFilter((__int64)a1, 0, a3); return v5; case 20172: case 20173: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v14 = GameManager::sharedState(); IntGameVariable = GameManager::getIntGameVariable(v14, "0230"); if ( IntGameVariable <= 0 ) { LABEL_60: EditorUI::onFindObject((__int64)a1); } else { v16 = IntGameVariable; v17 = GameManager::sharedState(); v18 = GameManager::getGameVariable(v17, "0232"); EditorUI::findObject((__int64)a1, v16, v18, 2 * ((_DWORD)a2 == 20172) - 1, *(double *)a4.i64); } return v5; case 20174: case 20175: case 20176: case 20177: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v12 = EditorUI::selectedMoveCommand(a1, (unsigned int)(a2 - 20174)); EditorUI::moveObjectCall_1(a1, v12); } return v5; case 20182: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v40 = GameManager::sharedState(); GameManager::toggleGameVariable(v40, "0242"); sub_10000E4E0(v74, "Anchor Snap: "); v41 = GameManager::sharedState(); v42 = GameManager::getGameVariable(v41, "0242"); EditorUI::showTextAlert(a1, v74, v42 ^ 1u, 0, 0); if ( ((__int64)v74[0] & 1) == 0 ) goto LABEL_192; a1 = v74[2]; goto LABEL_191; case 20185: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) { v53 = EditorUI::getSelectedObjects((__int64)a1); if ( (unsigned int)sub_1007FEF90(v53) ) { EditorUI::getGroupCenter(v79, a1, v53, 1); EditorUI::centerCameraOnObject((__int64)a1, (float *)v79); } } return v5; case 20186: LOBYTE(v5) = 1; if ( !(_BYTE)a3 ) return v5; v21 = GameManager::sharedState(); GameManager::toggleGameVariable(v21, "0248"); LevelEditorLayer::updateOptions(a1[180], (__int64)"0248", v22); sub_10000E4E0(v73, "Center Cross: "); v23 = GameManager::sharedState(); v24 = GameManager::getGameVariable(v23, "0248"); EditorUI::showTextAlert(a1, v73, v24 ^ 1u, 0, 0); if ( (v73[0] & 1) == 0 ) goto LABEL_192; a1 = (_QWORD *)v73[2]; LABEL_191: operator delete(a1); LABEL_192: v43 = EditorSFXManager::sharedState(a1); EditorSFXManager::playAction_1(v43, 189); return v5; case 20187: LOBYTE(v5) = 1; if ( (_BYTE)a3 ) EditorUI::editObjectOptions(a1); return v5; default: return v5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source