// // LevelEditorLayer::activateTriggerEffect from 0x7956ac to 0x795c40 (1428 bytes) // // 5 xrefs: // > LevelEditorLayer::spawnGroupPreview @ 0x795dc8 // > LevelEditorLayer::spawnGroupPreview @ 0x795e84 // > LevelEditorLayer::updateGameObjects @ 0x79e5cc // > LevelEditorLayer::updateGameObjects @ 0x79e704 // > @ 0xbec48 // // 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 12:53:33 +0000 // __int64 __fastcall LevelEditorLayer::activateTriggerEffect( LevelEditorLayer *this, EffectGameObject *a2, float a3, float a4, float a5, unsigned __int8 a6) { int v8; // w23 float v12; // s9 float v13; // s12 unsigned int v14; // w21 unsigned __int8 v15; // w3 int v17; // w0 float v18; // s0 float v19; // s0 __int64 v20; // x3 bool v21; // zf unsigned __int64 v22; // x6 char v23; // w2 char v24; // w0 unsigned __int64 v25; // x5 int v26; // w9 int v27; // w8 char v28; // w11 char v29; // w10 unsigned __int8 v30; // w4 __int64 v31; // x1 unsigned __int64 v32; // x6 __int64 v33; // x7 __int64 v34; // x2 __int64 v35; // x0 __int64 OpacityActionForGroup; // x0 float v37; // s0 float v38; // s0 __int64 v39; // x0 float v40; // s0 OpacityEffectAction *v41; // [xsp+98h] [xbp+68h] int v42; // [xsp+98h] [xbp+68h] __int64 v43; // [xsp+A0h] [xbp+70h] BYREF v8 = a6; if ( *((_BYTE *)a2 + 650) ) return 1; if ( !*((_BYTE *)this + 13169) ) { if ( !*((_BYTE *)a2 + 1472) ) goto LABEL_4; goto LABEL_14; } if ( *((_BYTE *)a2 + 1259) ) return 1; if ( *((_BYTE *)a2 + 1472) ) { LABEL_14: if ( !(*(unsigned __int8 (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1552LL))(a2) ) return 1; } LABEL_4: v12 = *((float *)a2 + 452); v13 = (float)(a3 - v12) - a5; if ( *((_BYTE *)a2 + 1254) ) { v14 = *((unsigned __int8 *)this + 14297); if ( *((_BYTE *)this + 14297) ) { v15 = 0; if ( (float)(a4 - (float)(v12 + *((float *)a2 + 363))) <= 5.0 ) v15 = (float)(a5 - (float)(a3 - v12)) > 0.2; if ( !LevelEditorLayer::runColorEffect( (GJEffectManager **)this, a2, *((unsigned int *)a2 + 256), *((float *)a2 + 452), v13, v15) ) return 0; if ( *((_DWORD *)a2 + 257) == 29 && *((_BYTE *)a2 + 1484) ) { LevelEditorLayer::runColorEffect((GJEffectManager **)this, a2, 1001, v12, v13, 0); return v14; } } return 1; } v17 = *((_DWORD *)a2 + 257); if ( v17 == 2907 ) goto LABEL_69; if ( v17 > 2907 ) { if ( v17 == 2999 ) { v14 = 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, (EffectGameObject *)((char *)a2 + 1488)); GJBaseGameLayer::updateMGOffsetY(this, *((float *)&v43 + 1), 0.0, 0, 0.0, -1, -1); return v14; } if ( v17 > 2999 ) { if ( v17 == 3605 ) { if ( v8 ) { v14 = 1; GJBaseGameLayer::activateSongEditTrigger(this, a2); return v14; } } else { if ( v17 > 3605 ) { if ( v17 == 3606 ) { v14 = 1; GJBaseGameLayer::updateBGArtSpeed(this, *((float *)a2 + 379), *((float *)a2 + 380)); return v14; } if ( v17 == 3612 ) { v14 = 1; GJBaseGameLayer::updateMGArtSpeed(this, *((float *)a2 + 379), *((float *)a2 + 380)); return v14; } return 1; } if ( v17 == 3602 ) { if ( v8 ) { v14 = 1; GJBaseGameLayer::activateSFXTrigger(this, a2); return v14; } } else { if ( v17 != 3603 ) return 1; if ( v8 ) { v14 = 1; GJBaseGameLayer::activateSFXEditTrigger(this, a2); return v14; } } } LABEL_35: if ( *((_BYTE *)this + 14936) ) { v14 = *((unsigned __int8 *)this + 14937); if ( *((_BYTE *)this + 14937) ) { (*(void (__fastcall **)(LevelEditorLayer *, EffectGameObject *))(*(_QWORD *)this + 1520LL))(this, a2); return v14; } } return 1; } if ( v17 < 2909 || v17 > 2917 && (unsigned int)(v17 - 2919) > 5 ) return 1; LABEL_69: v14 = *((unsigned __int8 *)this + 14014); if ( !*((_BYTE *)this + 14014) || *((_BYTE *)a2 + 1914) ) return 1; v35 = *((_QWORD *)this + 1552); if ( v35 && *(_BYTE *)(v35 + 1080) ) *(double *)(v35 + 488) = *(double *)(v35 + 504) + v12; GJBaseGameLayer::triggerShaderCommand(this, a2); return v14; } if ( v17 == 1616 ) { if ( !*((_DWORD *)a2 + 466) ) { v14 = 1; LevelEditorLayer::stopTriggersInGroup((GJEffectManager **)this, *((_DWORD *)a2 + 366), *((float *)a2 + 452)); return v14; } return 1; } if ( v17 > 1616 ) { if ( v17 == 2903 ) { v14 = 1; GJBaseGameLayer::triggerGradientCommand(this, a2); return v14; } if ( v17 <= 2903 ) { if ( v17 != 1934 ) { if ( v17 == 2900 && *((_BYTE *)a2 + 1860) ) { v14 = 1; *((_DWORD *)this + 207) = *((_DWORD *)a2 + 466); return v14; } return 1; } if ( v8 ) { v14 = 1; GJBaseGameLayer::activateSongTrigger(this, a2); return v14; } goto LABEL_35; } if ( v17 > 2905 ) return 1; goto LABEL_69; } if ( v17 != 1007 ) { if ( v17 > 1007 ) { if ( v17 == 1049 ) { v14 = 1; LevelEditorLayer::toggleGroupPreview((GJEffectManager **)this, *((_DWORD *)a2 + 366), *((_BYTE *)a2 + 1637)); return v14; } if ( v17 == 1268 && !*((_BYTE *)a2 + 1665) ) { v18 = *((float *)a2 + 476); if ( v18 <= 0.0 ) { v14 = 1; v42 = *((_DWORD *)a2 + 366); v40 = (*(float (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1624LL))(a2); LevelEditorLayer::spawnGroupPreview( this, v42, v40, *((float *)a2 + 452), a3, a4, a5, *((_BYTE *)a2 + 1666), v8); return v14; } v19 = v12 + v18; if ( a4 >= v19 ) { v14 = 1; LevelEditorLayer::addDelayedSpawn(this, a2, v19); return v14; } } return 1; } if ( v17 == 1006 ) { v14 = *((unsigned __int8 *)this + 14297); if ( *((_BYTE *)this + 14297) ) { if ( a4 <= (float)((float)((float)(v12 + *((float *)a2 + 398)) + *((float *)a2 + 399)) + *((float *)a2 + 400)) ) { if ( *((_DWORD *)a2 + 401) ) v20 = 1; else v20 = 2; v21 = *((_DWORD *)a2 + 402) == 1; v22 = *((unsigned int *)a2 + 405) | ((unsigned __int64)*((unsigned __int8 *)a2 + 1624) << 32); v23 = *((_BYTE *)a2 + 1449); v24 = *((_BYTE *)a2 + 1450); v25 = *((unsigned int *)a2 + 403) | ((unsigned __int64)*((unsigned int *)a2 + 404) << 32); v26 = *((_DWORD *)a2 + 229); v27 = *((_DWORD *)a2 + 418); v28 = *((_BYTE *)a2 + 1635); v29 = *((_BYTE *)a2 + 1636); v30 = *((_BYTE *)a2 + 1625); v31 = *((unsigned int *)a2 + 366); LOBYTE(v43) = *((_BYTE *)a2 + 1448); v32 = v22 & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)v30 << 40); v33 = *((unsigned int *)a2 + 407); BYTE1(v43) = v23; v34 = v21; BYTE2(v43) = v24; *(float *)(GJEffectManager::runPulseEffect( *((_QWORD *)this + 269), v31, v34, v20, v43, v25, v32, v33, *((_BYTE *)a2 + 1633), *((_BYTE *)a2 + 1634), v28, v29, v26, v27) + 68) = v13; return v14; } } } return 1; } v14 = *((unsigned __int8 *)this + 14297); if ( !*((_BYTE *)this + 14297) ) return 1; OpacityActionForGroup = GJEffectManager::getOpacityActionForGroup( *((GJEffectManager **)this + 269), *((_DWORD *)a2 + 366)); if ( OpacityActionForGroup ) { v37 = *(float *)(OpacityActionForGroup + 40); if ( v37 != 0.0 ) { v38 = v12 - v37; if ( v38 != 0.0 ) { v41 = (OpacityEffectAction *)OpacityActionForGroup; *(_DWORD *)(OpacityActionForGroup + 36) = 0; *(_DWORD *)(OpacityActionForGroup + 16) = 0; OpacityEffectAction::step((OpacityEffectAction *)OpacityActionForGroup, v38); GJEffectManager::updateOpacityAction(*((GJEffectManager **)this + 269), v41); } } } v39 = GJEffectManager::runOpacityActionOnGroup( *((GJEffectManager **)this + 269), *((_DWORD *)a2 + 366), *((float *)a2 + 363), *((float *)a2 + 364), *((_DWORD *)a2 + 229), *((_DWORD *)a2 + 418)); *(float *)(v39 + 40) = v12; *(float *)(v39 + 36) = v13; return v14; }
GD Web Decomp Icon

GD Web Decomp

Raw Source