// // EditorUI::keyDown from 0x1003f9880 to 0x1003fa5c0 (3392 bytes) // // 2 xrefs: // > sub_1003FA698 @ 0x1003fa69c // > @ 0x100813fa0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall EditorUI::keyDown(EditorUI *a1, cocos2d::enumKeyCodes a2, double a3) { __int64 v4; // x20 cocos2d::CCObject *v6; // x1 LevelEditorLayer *m_editorLayer; // x8 int v8; // w8 LevelEditorLayer **p_m_editorLayer; // x22 cocos2d::CCObject *v10; // x1 cocos2d::CCDirector *v11; // x0 cocos2d::CCObject *v12; // x1 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 cocos2d::CCObject *v15; // x1 cocos2d::CCDirector *v16; // x0 cocos2d::CCDirector *v17; // x0 float v18; // s8 cocos2d::CCDirector *v19; // x0 float v20; // s9 float v21; // s10 cocos2d::CCDirector *v22; // x0 __int64 *v23; // x0 __n128 v24; // q0 __n128 v25; // q1 cocos2d::CCString *v26; // x0 char *CString; // x0 cocos2d::CCDirector *v28; // x0 cocos2d::CCDirector *v29; // x0 cocos2d::CCDirector *v30; // x0 cocos2d::CCDirector *v31; // x0 int v32; // w8 EditorUI *v33; // x0 EditCommand v34; // w1 cocos2d::CCDirector *v35; // x0 int v36; // w8 cocos2d::CCDirector *v37; // x0 EditCommand v38; // w1 cocos2d::CCDirector *v39; // x0 EditCommand v40; // w1 GameManager *v41; // x0 GameManager *v42; // x0 bool GameVariable; // w21 cocos2d::CCDirector *v44; // x0 cocos2d::CCDirector *v45; // x0 cocos2d::CCObject *v46; // x1 LevelEditorLayer *v47; // x8 int v48; // w10 __n128 v49; // q0 __n128 v50; // q1 cocos2d::CCLayer *m_objectLayer; // x21 CCMenuItemSpriteExtra *m_deleteModeBtn; // x1 cocos2d::CCDirector *v53; // x0 cocos2d::CCObject *v54; // x1 __n128 v55; // q0 __n128 v56; // q1 GameManager *v57; // x0 GameManager *v58; // x0 bool v59; // w21 cocos2d::CCObject *v60; // x0 void *v61; // x0 cocos2d::CCObject *v62; // x0 cocos2d::CCDirector *v63; // x0 cocos2d::CCObject *v64; // x1 cocos2d::CCDirector *v65; // x0 bool v66; // zf int v67; // w8 int v68; // w9 GameObject *m_selectedObject; // x9 LevelEditorLayer *v70; // x8 EffectGameObject *m_traceInObject; // x10 bool v72; // w21 cocos2d::CCDirector *v73; // x0 cocos2d::CCObject *v74; // x1 cocos2d::CCObject *v75; // x1 cocos2d::CCDirector *v76; // x0 __int64 v77; // x0 EditorUI *v78; // x0 int v79; // w1 cocos2d::CCDirector *v80; // x0 GameManager *v81; // x0 GameManager *v82; // x0 float v83; // s8 cocos2d::CCDirector *v84; // x0 float v85; // s9 float v86; // s10 __int64 *v87; // x0 __n128 v88; // q0 __n128 v89; // q1 cocos2d::CCObject *v90; // x0 GameManager *v91; // x0 GameManager *v92; // x0 GameManager *v93; // x0 GameManager *v94; // x0 GameManager *v95; // x0 const std::string::value_type *v96; // x1 char v97; // w21 cocos2d::CCDirector *v98; // x0 __int64 v99; // x0 GameObject *v100; // x9 LevelEditorLayer *v101; // x8 GameObjectClassType m_classType; // w10 std::string *v103; // x1 TextAlertPopup *v104; // x21 __n128 v105; // q0 __n128 v106; // q1 __n128 v107; // q0 __n128 v108; // q1 void *v109[2]; // [xsp+8h] [xbp-148h] BYREF char v110; // [xsp+1Fh] [xbp-131h] void *v111[2]; // [xsp+20h] [xbp-130h] BYREF char v112; // [xsp+37h] [xbp-119h] void *__p[2]; // [xsp+38h] [xbp-118h] BYREF char v114; // [xsp+4Fh] [xbp-101h] _QWORD v115[2]; // [xsp+50h] [xbp-100h] BYREF char v116; // [xsp+67h] [xbp-E9h] void *v117[2]; // [xsp+68h] [xbp-E8h] BYREF char v118; // [xsp+7Fh] [xbp-D1h] void *v119[2]; // [xsp+80h] [xbp-D0h] BYREF char v120; // [xsp+97h] [xbp-B9h] void *v121[2]; // [xsp+98h] [xbp-B8h] BYREF char v122; // [xsp+AFh] [xbp-A1h] std::string __dst; // [xsp+B0h] [xbp-A0h] BYREF std::string v124; // [xsp+D0h] [xbp-80h] BYREF cocos2d::CCPoint v125; // [xsp+E8h] [xbp-68h] BYREF __int64 v126; // [xsp+F0h] [xbp-60h] BYREF __int64 v127; // [xsp+F8h] [xbp-58h] BYREF cocos2d::CCPoint v128; // 0:s0.4,4:s1.4 cocos2d::CCPoint v129; // 0:s0.4,4:s1.4 cocos2d::CCPoint v130; // 0:s2.4,4:s3.4 v4 = *(_QWORD *)&a2; ftime((timeb *)&v124); a1->m_keyTime = (double)(LOWORD(v124.__r_.__value_.__r.__words[1]) + 1000 * (unsigned __int64)((__int64)v124.__r_.__value_.__l.__data_ & 0xFFFFF)) / 1000.0; if ( (_DWORD)v4 == 32 ) { if ( a1->m_pressedSpace ) return; a1->m_pressedSpace = 1; m_editorLayer = a1->m_editorLayer; if ( m_editorLayer->m_playbackMode != Playing ) { v8 = 0; p_m_editorLayer = &a1->m_editorLayer; goto LABEL_38; } LABEL_6: ((void (__fastcall *)(UILayer *, __int64, double))m_editorLayer->m_uiLayer->keyDown)( m_editorLayer->m_uiLayer, v4, a3); goto LABEL_7; } m_editorLayer = a1->m_editorLayer; if ( m_editorLayer->m_playbackMode == Playing ) goto LABEL_6; p_m_editorLayer = &a1->m_editorLayer; if ( (int)v4 > 85 ) { if ( (_DWORD)v4 == 86 ) { v29 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v29->getKeyboardDispatcher)(v29) + 89) == 1 ) { EditorUI::doPasteObjects(a1, 0); return; } } else { if ( (_DWORD)v4 != 90 ) goto LABEL_25; v13 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v13->getKeyboardDispatcher)(v13) + 89) == 1 ) { v14 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v14->getKeyboardDispatcher)(v14) + 88) == 1 ) { EditorUI::redoLastAction(a1, v15); return; } } v30 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v30->getKeyboardDispatcher)(v30) + 89) == 1 ) { EditorUI::undoLastAction(a1, v6); return; } } LABEL_37: v8 = 0; goto LABEL_38; } if ( (_DWORD)v4 == 67 ) { v28 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v28->getKeyboardDispatcher)(v28) + 89) == 1 ) { EditorUI::doCopyObjects(a1, 0); return; } goto LABEL_37; } if ( (_DWORD)v4 == 68 ) { v11 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v11->getKeyboardDispatcher)(v11) + 90) == 1 ) { EditorUI::onDeselectAll(a1, v12); return; } v44 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v44->getKeyboardDispatcher)(v44) + 89) == 1 ) { EditorUI::onDuplicate(a1, v6); return; } v8 = 1; goto LABEL_38; } LABEL_25: if ( (unsigned int)(v4 - 48) <= 9 ) { v16 = cocos2d::CCDirector::sharedDirector(); if ( (*(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v16->getKeyboardDispatcher)(v16) + 89) & 1) != 0 || (v17 = cocos2d::CCDirector::sharedDirector(), *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v17->getKeyboardDispatcher)(v17) + 90) == 1) ) { v18 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); v19 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v19); v20 = *(float *)&v127 * 0.5; v21 = (float)(*((float *)&v127 + 1) * 0.5) + (float)(a1->m_toolbarHeight * 0.5); v22 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v22->getKeyboardDispatcher)(v22) + 89) == 1 ) { v23 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))(*p_m_editorLayer)->m_objectLayer->getPosition)((*p_m_editorLayer)->m_objectLayer); sub_1000229B8(&v126, v23); v24.n128_f32[0] = (float)(v20 - *(float *)&v126) / v18; v25.n128_f32[0] = (float)(v21 - *((float *)&v126 + 1)) / v18; sub_100022980(v24, v25, &v125); LevelEditorLayer::saveEditorPosition(*p_m_editorLayer, &v125, v4 - 48); v26 = (cocos2d::CCString *)sub_100268F4C("Position %i saved.", (int)v4 - 48); CString = (char *)cocos2d::CCString::getCString(v26); sub_100009900(&v124, CString); if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v124.__r_.__value_.__l.__data_, v124.__r_.__value_.__l.__size_); else __dst = v124; sub_100009900(v121, ""); v62 = TextAlertPopup::create((__int64)&__dst, 150, (__int64)v121, 0.5, 0.6); ((void (__fastcall *)(EditorUI *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v62, 100); if ( v122 < 0 ) operator delete(v121[0]); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v124.__r_.__value_.__l.__data_); } else { LevelEditorLayer::getSavedEditorPosition(*p_m_editorLayer, v4 - 48); if ( *(float *)&v124.__r_.__value_.__l.__data_ != 0.0 || *((float *)v124.__r_.__value_.__r.__words + 1) != 0.0 ) { m_objectLayer = (*p_m_editorLayer)->m_objectLayer; v49.n128_f32[0] = v20 - (float)(*(float *)&v124.__r_.__value_.__l.__data_ * v18); v50.n128_f32[0] = v21 - (float)(*((float *)v124.__r_.__value_.__r.__words + 1) * v18); sub_100022980(v49, v50, &v126); ((void (__fastcall *)(cocos2d::CCLayer *, __int64 *))m_objectLayer->setPosition)(m_objectLayer, &v126); } } goto LABEL_7; } } v8 = 0; if ( (int)v4 > 50 ) { if ( (int)v4 > 183 ) { if ( (_DWORD)v4 == 184 ) { v63 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v63->getKeyboardDispatcher)(v63) + 88) == 1 ) { EditorUI::zoomIn(a1, v64); return; } v55.n128_u32[0] = 0; v56.n128_u32[0] = -10.0; } else { if ( (_DWORD)v4 != 189 ) goto LABEL_38; v53 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v53->getKeyboardDispatcher)(v53) + 88) == 1 ) { EditorUI::zoomOut(a1, v54); return; } v55.n128_u32[0] = 0; v56.n128_u32[0] = 10.0; } sub_100022980(v55, v56, &v124); EditorUI::moveGamelayer(a1, v128); return; } if ( (_DWORD)v4 != 51 ) { if ( (_DWORD)v4 == 84 ) { v45 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v45->getKeyboardDispatcher)(v45) + 89) == 1 ) EditorUI::activateTransformControl(a1, v46); else EditorUI::toggleSwipe(a1, v46); return; } goto LABEL_38; } m_deleteModeBtn = a1->m_deleteModeBtn; LABEL_112: EditorUI::toggleMode(a1, m_deleteModeBtn); return; } if ( (int)v4 > 48 ) { if ( (_DWORD)v4 == 49 ) m_deleteModeBtn = a1->m_buildModeBtn; else m_deleteModeBtn = a1->m_editModeBtn; goto LABEL_112; } if ( (_DWORD)v4 == 8 || (_DWORD)v4 == 46 ) { EditorUI::onDeleteSelected(a1, v6); goto LABEL_7; } LABEL_38: switch ( (_DWORD)v4 ) { case 'A': v37 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v37->getKeyboardDispatcher)(v37) + 88) ) v38 = SmallLeft; else v38 = Left; goto LABEL_48; case 'E': v35 = cocos2d::CCDirector::sharedDirector(); v36 = *(unsigned __int8 *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v35->getKeyboardDispatcher)(v35) + 90); v33 = a1; if ( v36 == 1 ) v34 = FlipY; else v34 = RotateCW; goto LABEL_61; case 'Q': v31 = cocos2d::CCDirector::sharedDirector(); v32 = *(unsigned __int8 *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v31->getKeyboardDispatcher)(v31) + 90); v33 = a1; if ( v32 == 1 ) v34 = FlipX; else v34 = RotateCCW; LABEL_61: EditorUI::transformObjectCall_1(v33, v34); return; } if ( v8 ) { v39 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v39->getKeyboardDispatcher)(v39) + 88) ) v40 = SmallRight; else v40 = Right; EditorUI::moveObjectCall_1(a1, v40); goto LABEL_7; } if ( (int)v4 <= 111 ) { if ( (int)v4 <= 70 ) { if ( (int)v4 > 38 ) { if ( (_DWORD)v4 != 39 ) { if ( (_DWORD)v4 == 70 ) { EditorUI::toggleFreeMove(a1, v6); return; } goto LABEL_139; } v47 = a1->m_editorLayer; LOWORD(v48) = v47->m_currentLayer + 1; } else { if ( (_DWORD)v4 == 13 ) { v73 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v73->getKeyboardDispatcher)(v73) + 89) == 1 ) { if ( a1->m_touchID == -1 ) EditorUI::onPlayback(a1, v74); LABEL_134: if ( (((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playtestStopBtn->isVisible)(a1->m_playtestStopBtn) & 1) != 0 ) { EditorUI::onStopPlaytest(a1, v75); } else if ( a1->m_touchID == -1 ) { EditorUI::onPlaytest(a1, nullptr); } return; } goto LABEL_139; } if ( (_DWORD)v4 != 37 ) goto LABEL_139; v47 = a1->m_editorLayer; v48 = (v47->m_currentLayer & ~(v47->m_currentLayer >> 31)) - 1; } v47->m_currentLayer = v48; EditorUI::updateGroupIDLabel(a1); return; } if ( (int)v4 <= 82 ) { if ( (_DWORD)v4 == 71 ) { EditorUI::toggleSnap(a1, v6); return; } if ( (_DWORD)v4 == 82 ) { EditorUI::toggleEnableRotate(a1, v6); return; } goto LABEL_139; } if ( (_DWORD)v4 == 83 ) { v80 = cocos2d::CCDirector::sharedDirector(); v66 = *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v80->getKeyboardDispatcher)(v80) + 88) == 0; v67 = 8; v68 = 4; } else { if ( (_DWORD)v4 != 87 ) goto LABEL_139; v65 = cocos2d::CCDirector::sharedDirector(); v66 = *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v65->getKeyboardDispatcher)(v65) + 88) == 0; v67 = 7; v68 = 3; } if ( v66 ) v38 = v67; else v38 = v68; LABEL_48: EditorUI::moveObjectCall_1(a1, v38); return; } if ( (unsigned int)(v4 - 114) < 7 ) { sub_100009900(&v124, ""); if ( (int)v4 <= 116 ) { if ( (_DWORD)v4 == 114 ) { v81 = GameManager::sharedState(); GameManager::toggleGameVariable(v81, "0036"); LevelEditorLayer::updateEditorMode(*p_m_editorLayer); v82 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v82, "0036"); std::string::assign(&v124, "Preview Mode: "); goto LABEL_159; } if ( (_DWORD)v4 != 115 ) { v91 = GameManager::sharedState(); GameManager::toggleGameVariable(v91, "0045"); LevelEditorLayer::updateOptions(*p_m_editorLayer); v92 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v92, "0045"); std::string::assign(&v124, "Show Hitboxes: "); goto LABEL_159; } v57 = GameManager::sharedState(); GameManager::toggleGameVariable(v57, "0137"); LevelEditorLayer::updatePreviewParticles(*p_m_editorLayer); v58 = GameManager::sharedState(); v59 = GameManager::getGameVariable(v58, "0137"); std::string::assign(&v124, "Particle Icons: "); LABEL_158: GameVariable = !v59; LABEL_159: if ( GameVariable ) { LABEL_160: v96 = "On"; LABEL_179: std::string::append(&v124, v96); if ( (v124.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v103 = &v124; else v103 = (std::string *)v124.__r_.__value_.__r.__words[0]; sub_100009900(v111, (char *)v103); sub_100009900(v109, "chatFont.fnt"); v104 = (TextAlertPopup *)TextAlertPopup::create((__int64)v111, 100, (__int64)v109, 0.6, 0.6); if ( v110 < 0 ) operator delete(v109[0]); if ( v112 < 0 ) operator delete(v111[0]); TextAlertPopup::setLabelColor(v104, (cocos2d::ccColor3B)65280); v105.n128_u32[0] = 0; v106.n128_u32[0] = 1.0; sub_100022980(v105, v106, &v127); v107.n128_u32[0] = 20.0; v108.n128_u32[0] = -20.0; sub_100022980(v107, v108, &v126); TextAlertPopup::setAlertPosition(v104, v129, v130); ((void (__fastcall *)(EditorUI *, TextAlertPopup *, __int64))a1->addChild_0)(a1, v104, 100); v97 = 1; LABEL_187: if ( SHIBYTE(v124.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v124.__r_.__value_.__l.__data_); if ( (v97 & 1) == 0 ) return; LABEL_7: if ( (int)v4 > 1008 ) { if ( (_DWORD)v4 != 1009 ) { if ( (_DWORD)v4 != 1011 ) { LABEL_10: if ( (_DWORD)v4 == 32 ) a1->m_spaceSwiping = 1; return; } LABEL_19: EditorUI::onPause(a1, v10); return; } } else if ( (_DWORD)v4 != 13 ) { if ( (_DWORD)v4 != 27 ) goto LABEL_10; goto LABEL_19; } goto LABEL_134; } LABEL_178: v96 = "Off"; goto LABEL_179; } if ( (int)v4 <= 118 ) { if ( (_DWORD)v4 == 117 ) { v41 = GameManager::sharedState(); GameManager::toggleGameVariable(v41, "0121"); v42 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v42, "0121"); std::string::assign(&v124, "Hide Invisible: "); goto LABEL_159; } v93 = GameManager::sharedState(); if ( GameManager::getGameVariable(v93, "0097") ) { v94 = GameManager::sharedState(); GameManager::toggleGameVariable(v94, "0180"); v95 = GameManager::sharedState(); v59 = GameManager::getGameVariable(v95, "0180"); a1->m_linkControlsDisabled = v59; EditorUI::updateButtons(a1); std::string::assign(&v124, "Link Mode: "); goto LABEL_158; } LABEL_162: v97 = 0; goto LABEL_187; } if ( (_DWORD)v4 == 119 ) { if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) goto LABEL_162; m_selectedObject = a1->m_selectedObject; v70 = a1->m_editorLayer; if ( m_selectedObject ) { m_traceInObject = v70->m_traceInObject; v72 = m_traceInObject == m_selectedObject; if ( m_traceInObject == m_selectedObject ) m_selectedObject = nullptr; } else { v72 = 1; } v70->m_traceInObject = (EffectGameObject *)m_selectedObject; std::string::assign(&v124, "Trace In: "); LABEL_177: (*p_m_editorLayer)->m_unk3b22 = 1; if ( !v72 ) goto LABEL_160; goto LABEL_178; } if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) goto LABEL_162; v100 = a1->m_selectedObject; v101 = a1->m_editorLayer; if ( v100 ) { if ( v101->m_traceOutObject != v100 ) { m_classType = v100->m_classType; v72 = m_classType != Effect; if ( m_classType != Effect ) v100 = nullptr; goto LABEL_176; } v100 = nullptr; } v72 = 1; LABEL_176: v101->m_traceOutObject = (EffectGameObject *)v100; std::string::assign(&v124, "Trace Out: "); goto LABEL_177; } if ( (_DWORD)v4 != 112 ) { if ( (_DWORD)v4 == 113 ) { sub_1000229D0(&(*p_m_editorLayer)->m_previewPosition, (double *)&dword_10086E8B0); sub_100009900(v115, "Preview Unlocked"); sub_100009900(__p, ""); v60 = TextAlertPopup::create((__int64)v115, 150, (__int64)__p, 0.5, 0.6); ((void (__fastcall *)(EditorUI *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v60, 100); if ( v114 < 0 ) operator delete(__p[0]); if ( v116 < 0 ) { v61 = (void *)v115[0]; LABEL_154: operator delete(v61); return; } return; } LABEL_139: v76 = cocos2d::CCDirector::sharedDirector(); v77 = ((__int64 (__fastcall *)(cocos2d::CCDirector *))v76->getKeyboardDispatcher)(v76); if ( (_DWORD)v4 == 38 && (*(_BYTE *)(v77 + 90) & 1) != 0 ) { v78 = a1; v79 = 1; } else { v98 = cocos2d::CCDirector::sharedDirector(); v99 = ((__int64 (__fastcall *)(cocos2d::CCDirector *))v98->getKeyboardDispatcher)(v98); if ( (_DWORD)v4 != 40 || (*(_BYTE *)(v99 + 90) & 1) == 0 ) goto LABEL_7; v78 = a1; v79 = -1; } EditorUI::onTargetIDChange(v78, v79); return; } v83 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); v84 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v84); v85 = *(float *)&v124.__r_.__value_.__l.__data_ * 0.5; v86 = (float)(*((float *)v124.__r_.__value_.__r.__words + 1) * 0.5) + (float)(a1->m_toolbarHeight * 0.5); v87 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer); sub_1000229B8(&v127, v87); v88.n128_f32[0] = (float)(v85 - *(float *)&v127) / v83; v89.n128_f32[0] = (float)(v86 - *((float *)&v127 + 1)) / v83; sub_100022980(v88, v89, &v126); sub_1000229D0(&a1->m_editorLayer->m_previewPosition, (double *)&v126); sub_100009900(v119, "Preview Locked"); sub_100009900(v117, ""); v90 = TextAlertPopup::create((__int64)v119, 150, (__int64)v117, 0.5, 0.6); ((void (__fastcall *)(EditorUI *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v90, 100); if ( v118 < 0 ) operator delete(v117[0]); if ( v120 < 0 ) { v61 = v119[0]; goto LABEL_154; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source