// // SetupCollisionStateTriggerPopup::init from 0x952428 to 0x952948 (1312 bytes) // // 2 xrefs: // > SetupCollisionStateTriggerPopup::create @ 0x952af4 // > @ 0x93f18 // // 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 SetupCollisionStateTriggerPopup::init( SetupCollisionStateTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w23 void *v6; // x0 void *v7; // x0 void *v8; // x0 void *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s11 float v12; // s8 __int128 v13; // q0 float v14; // s8 float v15; // s3 float v16; // s4 void *v17; // x0 float v18; // s3 float v19; // s4 void *v20; // x0 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x1 int v24; // w2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x20 int v32; // w1 int v33; // [xsp+18h] [xbp-18h] __int64 v34; // [xsp+18h] [xbp-18h] char v35; // [xsp+20h] [xbp-10h] __int64 v36; // [xsp+20h] [xbp-10h] _QWORD v37[2]; // [xsp+30h] [xbp+0h] BYREF __int128 v38; // [xsp+A0h] [xbp+70h] float v39; // [xsp+C0h] [xbp+90h] float v40; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v41; // [xsp+C8h] [xbp+98h] BYREF __int64 v42; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v43; // 0:s0.4,4:s1.4 cocos2d::CCPoint v44; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 340.0, 200.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v37 + 160, "Collision State"); SetupTriggerPopup::addTitle(a1, (std::string)&v42); v6 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v42 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v22 - 1; } if ( v22 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v37 + 160, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v42); v7 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v42 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v24 - 1; } if ( v24 <= 0 ) operator delete(v7); } sub_D153B8((int)&v41, "Help"); sub_D153B8( (unsigned int)v37 + 160, "Activates a group when the player collides with the hitbox.\n" "State On is activated upon entering.\n" "State Off is activated upon exiting."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v41, (std::string)&v42, 1.0); v8 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v42 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v8); } v9 = (void *)(*(_QWORD *)&v41 - 24LL); if ( (__int64 *)(*(_QWORD *)&v41 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(*(_QWORD *)&v41 - 8LL); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(*(_QWORD *)&v41 - 8LL); *(_DWORD *)(*(_QWORD *)&v41 - 8LL) = v30 - 1; } if ( v30 <= 0 ) operator delete(v9); } v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10); v11 = (float)(v39 * 0.5) + 70.0; v12 = (float)(v40 * 0.5) + 70.0; *(float *)&v13 = (float)(v39 * 0.5) + -70.0; v38 = v13; sub_D153B8((int)&v42, "State On"); v14 = v12 - 60.0; cocos2d::CCPoint::CCPoint(&v41, *(float *)&v38, v14); v43.y = 0.0; v33 = 2; v43.x = 0.7; v35 = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 51, (std::string)&v42, v43, 100.0, (bool)&v41, Float, 3, 6, v15, v16, 1, 0, GoldLabel, 0, v33, v35); v17 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v42 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v17); } sub_D153B8((unsigned int)v37 + 160, "State Off"); cocos2d::CCPoint::CCPoint(&v41, v11, v14); v44.x = 0.7; v44.y = 0.0; LODWORD(v34) = 2; LOBYTE(v36) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 71, (std::string)&v42, v44, 100.0, (bool)&v41, Float, 3, 6, v18, v19, 1, 0, GoldLabel, 0, v34, v36); v20 = (void *)(v42 - 24); if ( (__int64 *)(v42 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v42 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *(_DWORD *)(v42 - 8); *(_DWORD *)(v42 - 8) = v32 - 1; } if ( v32 <= 0 ) operator delete(v20); } SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source