// // SetGroupIDLayer::onClose from 0x1403fdb60 to 0x1403fdf1f (959 bytes) // // 4 xrefs: // > SetGroupIDLayer::onAnim @ 0x1403fbba1 // > SetGroupIDLayer::keyBackClicked @ 0x1403fdf29 // > SetGroupIDLayer::init @ 0x1403f8c50 // > @ 0x1406d8684 // // 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 // // Hidden C++ exception states: #wind=6 void SetGroupIDLayer::onClose(SetGroupIDLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // rcx unsigned int v4; // edi CCTextInputNode *m_orderInput; // rcx CCTextInputNode *m_channelInput; // rcx GameObject *m_targetObject; // rax cocos2d::CCArray *m_targetObjects; // rcx __int64 v9; // rcx EffectGameObject *v10; // rdi __int64 v11; // rsi cocos2d::CCArray *v12; // rcx _BOOL8 v13; // rdx void *v14; // [rsp+30h] [rbp+8h] void *v15; // [rsp+30h] [rbp+8h] void *v16; // [rsp+30h] [rbp+8h] void *v17; // [rsp+30h] [rbp+8h] void *v18; // [rsp+30h] [rbp+8h] void *v19; // [rsp+30h] [rbp+8h] v3 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v14 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v14); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = qword_1406C2ED8; } *(_DWORD *)(v3 + 956) = a1->m_groupIDValue; a1->m_groupIDInput->onClickTrackNode(a1->m_groupIDInput, 0); v4 = 0; a1->m_groupIDInput->m_delegate = nullptr; a1->m_editorLayerInput->onClickTrackNode(a1->m_editorLayerInput, 0); a1->m_editorLayerInput->m_delegate = nullptr; a1->m_editorLayer2Input->onClickTrackNode(a1->m_editorLayer2Input, 0); a1->m_editorLayer2Input->m_delegate = nullptr; a1->m_zOrderInput->onClickTrackNode(a1->m_zOrderInput, 0); a1->m_zOrderInput->m_delegate = nullptr; m_orderInput = a1->m_orderInput; if ( m_orderInput ) { m_orderInput->onClickTrackNode(m_orderInput, 0); a1->m_orderInput->m_delegate = nullptr; } m_channelInput = a1->m_channelInput; if ( m_channelInput ) { m_channelInput->onClickTrackNode(m_channelInput, 0); a1->m_channelInput->m_delegate = nullptr; } m_targetObject = a1->m_targetObject; if ( m_targetObject ) { m_targetObject->m_updateParents = 1; } else { m_targetObjects = a1->m_targetObjects; if ( m_targetObjects && cocos2d::CCArray::count(m_targetObjects) ) { do LOBYTE(cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v4++)[20].m_uUnknown) = 1; while ( v4 < cocos2d::CCArray::count(a1->m_targetObjects) ); } } v9 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v15 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = qword_1406C2ED8; } EditorUI::updateObjectInfoLabel(*(EditorUI **)(*(_QWORD *)(v9 + 528) + 14496LL)); if ( a1->m_addedGroup ) { if ( !qword_1406C2ED8 ) { v16 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } LevelEditorLayer::resetToggledGroupsAndObjects(*(LevelEditorLayer **)(qword_1406C2ED8 + 528)); } if ( a1->m_reverseChanged ) { if ( !a1->m_targetObject ) goto LABEL_34; if ( !qword_1406C2ED8 ) { v17 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } v10 = (EffectGameObject *)a1->m_targetObject; v11 = *(_QWORD *)(*(_QWORD *)(qword_1406C2ED8 + 528) + 14536LL); v12 = *(cocos2d::CCArray **)(v11 + 592); if ( v10->m_isReverse ) { if ( !cocos2d::CCArray::containsObject(v12, v10) ) { cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v11 + 592), v10); *(_BYTE *)(v11 + 633) = 1; EffectGameObject::updateSpeedModType(v10); } } else if ( cocos2d::CCArray::containsObject(v12, v10) ) { cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v11 + 592), v10, 1); *(_BYTE *)(v11 + 633) = 1; } } if ( a1->m_targetObject && (a1->m_channelOrderEdited || a1->m_channelUpdated || a1->m_reverseChanged) ) { if ( !qword_1406C2ED8 ) { v18 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v18); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } *(_BYTE *)(*(_QWORD *)(qword_1406C2ED8 + 528) + 14432LL) = 1; } LABEL_34: if ( !qword_1406C2ED8 ) { v19 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v19); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } *(_BYTE *)(*(_QWORD *)(qword_1406C2ED8 + 528) + 15138LL) = 1; a1->setKeypadEnabled(a1, 0); LOBYTE(v13) = 1; a1->removeFromParentAndCleanup(a1, v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source