// // SetupInstantCollisionTriggerPopup::init from 0x951430 to 0x951d30 (2304 bytes) // // 2 xrefs: // > SetupInstantCollisionTriggerPopup::create @ 0x951ee8 // > @ 0x83ad8 // // 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 // bool SetupInstantCollisionTriggerPopup::init( SetupInstantCollisionTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w24 void *v6; // x0 void *v7; // x0 void *v8; // x0 void *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s8 float v12; // s12 float v13; // s9 float v14; // s3 float v15; // s4 void *v16; // x0 float v17; // s3 float v18; // s4 void *v19; // x0 float v20; // s3 float v21; // s4 void *v22; // x0 float v23; // s3 float v24; // s4 void *v25; // x0 float v26; // s8 float v27; // s2 void *v28; // x0 float v29; // s2 void *v30; // x0 float v31; // s2 void *v32; // x0 unsigned int *v33; // x1 int v34; // w2 unsigned int *v35; // x1 int v36; // w2 unsigned int *v37; // x1 int v38; // w2 unsigned int *v39; // x1 int v40; // w2 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *v45; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x19 int v54; // w1 int v55; // [xsp+18h] [xbp-18h] __int64 v56; // [xsp+18h] [xbp-18h] __int64 v57; // [xsp+18h] [xbp-18h] __int64 v58; // [xsp+18h] [xbp-18h] char v59; // [xsp+20h] [xbp-10h] __int64 v60; // [xsp+20h] [xbp-10h] __int64 v61; // [xsp+20h] [xbp-10h] __int64 v62; // [xsp+20h] [xbp-10h] _QWORD v63[2]; // [xsp+30h] [xbp+0h] BYREF float v64; // [xsp+C0h] [xbp+90h] float v65; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v66; // [xsp+C8h] [xbp+98h] BYREF __int64 v67; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v68; // 0:s0.4,4:s1.4 cocos2d::CCPoint v69; // 0:s0.4,4:s1.4 cocos2d::CCPoint v70; // 0:s0.4,4:s1.4 cocos2d::CCPoint v71; // 0:s0.4,4:s1.4 cocos2d::CCPoint v72; // 0:s0.4,4:s1.4 cocos2d::CCPoint v73; // 0:s0.4,4:s1.4 cocos2d::CCPoint v74; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v63 + 160, "Instant Collision"); SetupTriggerPopup::addTitle(a1, (std::string)&v67); v6 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(v67 - 8); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v34 - 1; } if ( v34 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v63 + 160, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v67); v7 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v67 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v36 - 1; } if ( v36 <= 0 ) operator delete(v7); } sub_D153B8((int)&v66, "Help"); sub_D153B8( (unsigned int)v63 + 160, "Activates a group when Collision Blocks using BlockA ID and BlockB ID collide or do not collide. The condi" "tion is only checked when it is hit and never again. Make sure that one of the blocks have Dynamic Block enabled.\n" "True ID is activated if they collide. False ID is activated if they do not collide.\n" "P1 and P2 makes collision trigger upon the respective player touching BlockB ID.\n" "PP triggers when both players collide."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v66, (std::string)&v67, 1.0); v8 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(v67 - 8); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v40 - 1; } if ( v40 <= 0 ) operator delete(v8); } v9 = (void *)(*(_QWORD *)&v66 - 24LL); if ( (__int64 *)(*(_QWORD *)&v66 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)(*(_QWORD *)&v66 - 8LL); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(*(_QWORD *)&v66 - 8LL); *(_DWORD *)(*(_QWORD *)&v66 - 8LL) = v38 - 1; } if ( v38 <= 0 ) operator delete(v9); } v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10); v11 = (float)(v65 * 0.5) + 70.0; v12 = (float)(v64 * 0.5) + -70.0; v13 = (float)(v64 * 0.5) + 70.0; sub_D153B8((int)&v67, "BlockA ID"); cocos2d::CCPoint::CCPoint(&v66, v12, v11); v68.y = 0.0; v55 = 2; v68.x = 0.7; v59 = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 80, (std::string)&v67, v68, 100.0, (bool)&v66, Float, 3, 6, v14, v15, 1, 0, GoldLabel, 0, v55, v59); v16 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(v67 - 8); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v48 - 1; } if ( v48 <= 0 ) operator delete(v16); } sub_D153B8((unsigned int)v63 + 160, "BlockB ID"); cocos2d::CCPoint::CCPoint(&v66, v13, v11); v69.x = 0.7; v69.y = 0.0; LODWORD(v56) = 2; LOBYTE(v60) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 95, (std::string)&v67, v69, 100.0, (bool)&v66, Float, 3, 6, v17, v18, 1, 0, GoldLabel, 0, v56, v60); v19 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v67 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v44 - 1; } if ( v44 <= 0 ) operator delete(v19); } sub_D153B8((unsigned int)v63 + 160, "True ID"); cocos2d::CCPoint::CCPoint(&v66, v12, v11 - 60.0); v70.x = 0.7; v70.y = 0.0; LODWORD(v57) = 2; LOBYTE(v61) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 51, (std::string)&v67, v70, 100.0, (bool)&v66, Float, 3, 6, v20, v21, 1, 0, GoldLabel, 0, v57, v61); v22 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)(v67 - 8); do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v52 - 1; } if ( v52 <= 0 ) operator delete(v22); } sub_D153B8((unsigned int)v63 + 160, "False ID"); cocos2d::CCPoint::CCPoint(&v66, v13, v11 - 60.0); v71.x = 0.7; v71.y = 0.0; LODWORD(v58) = 2; LOBYTE(v62) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 71, (std::string)&v67, v71, 100.0, (bool)&v66, Float, 3, 6, v23, v24, 1, 0, GoldLabel, 0, v58, v62); v25 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(v67 - 8); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v42 - 1; } if ( v42 <= 0 ) operator delete(v25); } sub_D153B8((int)&v67, "P1"); v26 = (float)(v11 - 120.0) + 10.0; cocos2d::CCPoint::CCPoint(&v66, (float)(v64 * 0.5) + -75.0, v26); v72.x = 1.0; SetupTriggerPopup::createToggleValueControl(a1, 138, (std::string)&v67, v72, (bool)&v66, 0, 0, v27); v28 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(v67 - 8); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v50 - 1; } if ( v50 <= 0 ) operator delete(v28); } sub_D153B8((int)&v67, "P2"); cocos2d::CCPoint::CCPoint(&v66, v64 * 0.5, v26); v73.x = 1.0; SetupTriggerPopup::createToggleValueControl(a1, 200, (std::string)&v67, v73, (bool)&v66, 0, 0, v29); v30 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(v67 - 8); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v46 - 1; } if ( v46 <= 0 ) operator delete(v30); } sub_D153B8((int)&v67, "PP"); cocos2d::CCPoint::CCPoint(&v66, (float)(v64 * 0.5) + 75.0, v26); v74.x = 1.0; SetupTriggerPopup::createToggleValueControl(a1, 201, (std::string)&v67, v74, (bool)&v66, 0, 0, v31); v32 = (void *)(v67 - 24); if ( (__int64 *)(v67 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)(v67 - 8); do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = *(_DWORD *)(v67 - 8); *(_DWORD *)(v67 - 8) = v54 - 1; } if ( v54 <= 0 ) operator delete(v32); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source