// // EditorUI::editObjectSpecial from 0x68c440 to 0x68c968 (1320 bytes) // // 3 xrefs: // > EditorUI::editObject2 @ 0x68c96c // > EditorUI::editObject3 @ 0x68c974 // > @ 0xc4290 // // 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 // void EditorUI::editObjectSpecial(EditorUI *a1, int a2) { cocos2d::CCArray *m_selectedObjects; // x2 GameObject *m_selectedObject; // x1 GameObject *v6; // x0 int v7; // w20 int v8; // w0 GameObject *v9; // x0 cocos2d::CCArray *v10; // x0 cocos2d::CCArray *v11; // x22 unsigned int j; // w20 __int64 v13; // x1 SetupSmartBlockLayer *v14; // x0 LevelEditorLayer *m_editorLayer; // x0 cocos2d::CCArray *v16; // x2 SetupDashRingPopup *v17; // x0 _BOOL4 v18; // w22 SetupInteractObjectPopup *v19; // x0 unsigned int i; // w20 __int64 v21; // x0 SetupTeleportPopup *v22; // x0 unsigned int n; // w20 __int64 v24; // x0 SetupRotatePopup *v25; // x0 SetupGradientPopup *v26; // x0 GameObject *v27; // x0 SetupAnimSettingsPopup *v28; // x0 SetupCheckpointPopup *v29; // x0 SetupObjectTogglePopup *v30; // x0 EditGameObjectPopup *v31; // x0 unsigned int v32; // w20 __int64 v33; // x0 GameObject *v34; // x0 unsigned int k; // w20 __int64 v36; // x0 SetupSmartBlockLayer *v37; // x0 SetItemIDLayer *v38; // x0 unsigned int m; // w20 __int64 v40; // x0 SetupAnimSettingsPopup *v41; // x0 cocos2d::CCArray *v42; // [xsp+3Ch] [xbp+3Ch] BYREF int v43; // [xsp+44h] [xbp+44h] BYREF m_selectedObjects = a1->m_selectedObjects; m_selectedObject = a1->m_selectedObject; v42 = (cocos2d::CCArray *)-1LL; v43 = -1; EditorUI::getGroupInfo(a1, m_selectedObject, m_selectedObjects, (int *)&v42, (int *)&v42 + 1, &v43); v6 = a1->m_selectedObject; if ( v6 ) { v7 = v6->getHasRotateAction(v6); LABEL_3: v8 = HIDWORD(v42); if ( (_DWORD)v42 != -1 ) goto LABEL_4; } else { for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); ++i ) { v21 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, i); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v21 + 1720LL))(v21) ) { v7 = 0; goto LABEL_3; } } v7 = 1; v8 = HIDWORD(v42); if ( (_DWORD)v42 != -1 ) goto LABEL_4; } if ( v8 == -1 ) { if ( !v7 && v43 == -1 ) return; goto LABEL_5; } LABEL_4: if ( v8 == 5 ) { LABEL_8: v10 = a1->m_selectedObjects; v11 = nullptr; if ( v10 ) { v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10); for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); ++j ) { v13 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, j); if ( *(_DWORD *)(v13 + 1232) == 5 ) cocos2d::CCArray::addObject(v11, (cocos2d::CCObject *)v13); } } v14 = SetupSmartBlockLayer::create((SmartGameObject *)a1->m_selectedObject, v11); v14->show(v14); return; } LABEL_5: v9 = a1->m_selectedObject; if ( v9 && v9->m_classType == Smart || EditorUI::arrayContainsClass(a1, a1->m_selectedObjects, 5) ) goto LABEL_8; m_editorLayer = a1->m_editorLayer; v16 = (cocos2d::CCArray *)(unsigned int)v42; if ( m_editorLayer->m_isPlatformer && ((_DWORD)v42 == 1751 || (_DWORD)v42 == 1704) ) { v17 = SetupDashRingPopup::create((DashRingObject *)a1->m_selectedObject, a1->m_selectedObjects); v17->show(v17); return; } if ( (_DWORD)v42 == 2903 ) { v26 = SetupGradientPopup::create((GradientTriggerObject *)a1->m_selectedObject, a1->m_selectedObjects); v26->show(v26); return; } if ( (_DWORD)v42 != 2904 ) { switch ( (_DWORD)v42 ) { case 0x80F: v29 = SetupCheckpointPopup::create((CheckpointGameObject *)a1->m_selectedObject, a1->m_selectedObjects); v29->show(v29); return; case 0xB56: case 0x2EB: case 0xBD3: v22 = SetupTeleportPopup::create( (TeleportPortalObject *)a1->m_selectedObject, a1->m_selectedObjects, (int)v42, m_editorLayer->m_levelSettings->m_platformerMode); v22->show(v22); return; case 0x64F: v38 = SetItemIDLayer::create((EffectGameObject *)a1->m_selectedObject, a1->m_selectedObjects); v38->show(v38); return; case 0x811: goto LABEL_68; case 0x63A: v30 = SetupObjectTogglePopup::create( (EffectGameObject *)a1->m_selectedObject, a1->m_selectedObjects, m_editorLayer->m_levelSettings->m_platformerMode); v30->show(v30); return; } if ( EditorUI::canAllowMultiActivate(a1, a1->m_selectedObject, a1->m_selectedObjects) ) { v31 = EditGameObjectPopup::create( (EffectGameObject *)a1->m_selectedObject, a1->m_selectedObjects, a1->m_editorLayer->m_levelSettings->m_platformerMode); v31->show(v31); return; } if ( v7 ) { LABEL_47: v25 = SetupRotatePopup::create((EnhancedGameObject *)a1->m_selectedObject, a1->m_selectedObjects); v25->show(v25); return; } v18 = a2 != 1; if ( v18 && v43 == 30 ) { LABEL_31: v19 = SetupInteractObjectPopup::create((EffectGameObject *)a1->m_selectedObject, a1->m_selectedObjects); v19->show(v19); return; } v27 = a1->m_selectedObject; if ( v27 && v27->getHasSyncedAnimation(v27) ) { v28 = SetupAnimSettingsPopup::create((EffectGameObject *)a1->m_selectedObject, nullptr); v28->show(v28); return; } if ( (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) { v32 = 0; if ( v18 ) { while ( v32 < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) { v33 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, v32); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v33 + 1784LL))(v33) != 30 ) goto LABEL_61; ++v32; } goto LABEL_31; } LABEL_61: v34 = a1->m_selectedObject; if ( HIDWORD(v42) == 5 || v34 && v34->m_classType == Smart ) { v37 = SetupSmartBlockLayer::create((SmartGameObject *)v34, a1->m_selectedObjects); v37->show(v37); return; } for ( k = 0; k < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); ++k ) { if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, k) + 1012) != 2065 ) { for ( m = 0; ; ++m ) { if ( m >= (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects) ) { v41 = SetupAnimSettingsPopup::create((EffectGameObject *)a1->m_selectedObject, a1->m_selectedObjects); v41->show(v41); return; } v40 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, m); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v40 + 1712LL))(v40) ) break; } for ( n = 0; n < (unsigned int)cocos2d::CCArray::count(a1->m_selectedObjects); ++n ) { v24 = cocos2d::CCArray::objectAtIndex(a1->m_selectedObjects, n); if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v24 + 1720LL))(v24) ) return; } goto LABEL_47; } } LABEL_68: v36 = CreateParticlePopup::create( (CreateParticlePopup *)a1->m_selectedObject, (ParticleGameObject *)a1->m_selectedObjects, v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 1288LL))(v36); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source