// // SetupStopTriggerPopup::init from 0xa51fe8 to 0xa52910 (2344 bytes) // // 2 xrefs: // > SetupStopTriggerPopup::create @ 0xa52ac0 // > @ 0x3cc30 // // 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 SetupStopTriggerPopup::init(SetupStopTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w24 void *v6; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCPoint *p_m_textOffset; // x0 void *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 void *v18; // x0 void *v19; // x0 void *v20; // x0 void *v21; // x0 void *v22; // x0 void *v23; // x0 void *v24; // x0 unsigned int *v25; // x19 int v26; // w1 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *p_m_caption; // x1 int m_data; // w2 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 int v47; // [xsp+ACh] [xbp+7Ch] __int64 v48; // [xsp+B8h] [xbp+88h] BYREF __int64 v49; // [xsp+C0h] [xbp+90h] BYREF ButtonSprite *v50; // [xsp+C8h] [xbp+98h] BYREF __int64 v51; // [xsp+D0h] [xbp+A0h] BYREF __int64 v52; // [xsp+D8h] [xbp+A8h] BYREF __int64 v53; // [xsp+E0h] [xbp+B0h] BYREF float v54; // [xsp+E8h] [xbp+B8h] float v55; // [xsp+ECh] [xbp+BCh] cocos2d::CCPoint v56; // [xsp+F0h] [xbp+C0h] BYREF __int64 v57; // [xsp+F8h] [xbp+C8h] BYREF __int64 v58; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCPoint v59; // [xsp+108h] [xbp+D8h] BYREF cocos2d::CCPoint v60; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCPoint v61; // [xsp+118h] [xbp+E8h] BYREF cocos2d::CCPoint v62; // [xsp+120h] [xbp+F0h] BYREF cocos2d::CCPoint v63; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 320.0, 240.0, 1); if ( v4 ) { sub_D153B8((int)&v48, "Stop Trigger"); a1->getValue(a1, 533); SetupTriggerPopup::preSetup(a1); sub_D18D28(&v49); SetupTriggerPopup::addTitle((__int64)a1); v6 = (void *)(v49 - 24); if ( (__int64 *)(v49 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v49 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v49 - 8); *(_DWORD *)(v49 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v6); } sub_D153B8((int)&v50, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, &v50, v7, v8, v9, v10, v11); p_m_textOffset = &v50[-1].m_textOffset; if ( &v50[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_caption = (unsigned int *)&v50[-1].m_caption; do m_data = __ldaxr(p_m_caption); while ( __stlxr(m_data - 1, p_m_caption) ); } else { m_data = (int)v50[-1].m_caption.m_data.m_data; LODWORD(v50[-1].m_caption.m_data.m_data) = m_data - 1; } if ( m_data <= 0 ) operator delete(p_m_textOffset); } sub_D153B8( (int)&v51, "Stops triggers from being active permanently.\n" "TargetID must be a group on the trigger(s) that you want to stop. If you only want to stop certain trigger" "s within a group, use Control ID.\n" "Hint: Unlike Group ID, Control ID can be remapped.\n" "Pause/Resume works on: Pulse, Col, Alpha, Move, Rotate, Scale, Spawn, Follow, FollowPY, ADVFollow"); sub_D153B8((int)&v52, "Help"); sub_D18D28(&v53); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = (void *)(v53 - 24); if ( (__int64 *)(v53 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v53 - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(v53 - 8); *(_DWORD *)(v53 - 8) = v30 - 1; } if ( v30 <= 0 ) operator delete(v13); } v14 = (void *)(v52 - 24); if ( (__int64 *)(v52 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(v52 - 8); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(v52 - 8); *(_DWORD *)(v52 - 8) = v40 - 1; } if ( v40 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v56, v54 * 0.5, v55 * 0.5); sub_D153B8((int)&v57, "TargetID"); cocos2d::CCPoint::CCPoint(&v62, (float)(v54 * 0.5) + -70.0, (float)(v55 * 0.5) + 45.0); v63.y = 0.0; v63.x = 0.8; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v63, 9999.0, v16, v17, (std::string)&v57, &v62, Float, Int, 10, 1u, 0, 0, 0, 0, 0); v18 = (void *)(v57 - 24); if ( (__int64 *)(v57 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v57 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *(_DWORD *)(v57 - 8); *(_DWORD *)(v57 - 8) = v36 - 1; } if ( v36 <= 0 ) operator delete(v18); } sub_D153B8((int)&v58, "Use\nControl ID"); cocos2d::CCPoint::CCPoint(&v62, (float)(v54 * 0.5) + 45.0, (float)(v55 * 0.5) + 45.0); SetupTriggerPopup::createToggleValueControl(a1, 535, 1.0, (__int64)&v58, &v62, 0, 0, 0); v19 = (void *)(v58 - 24); if ( (__int64 *)(v58 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v58 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(v58 - 8); *(_DWORD *)(v58 - 8) = v44 - 1; } if ( v44 <= 0 ) operator delete(v19); } cocos2d::CCPoint::CCPoint(&v59, v56.x, v56.y - 20.0); v47 = (int)a1->getValue(a1, 580); sub_D153B8((int)&v60, "Stop"); cocos2d::CCPoint::CCPoint(&v61, -75.0, 0.0); cocos2d::CCPoint::operator+(&v62, &v59, &v61); SetupTriggerPopup::createCustomToggleValueControl(a1, 0, v47 == 0, 1u, (int)&v60, &v62, 1u, 0, 0); v20 = (void *)(*(_QWORD *)&v60 - 24LL); if ( (__int64 *)(*(_QWORD *)&v60 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(*(_QWORD *)&v60 - 8LL); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *(_DWORD *)(*(_QWORD *)&v60 - 8LL); *(_DWORD *)(*(_QWORD *)&v60 - 8LL) = v34 - 1; } if ( v34 <= 0 ) operator delete(v20); } sub_D153B8((int)&v61, "Pause"); cocos2d::CCPoint::CCPoint(&v60, 0.0, 0.0); cocos2d::CCPoint::operator+(&v62, &v59, &v60); SetupTriggerPopup::createCustomToggleValueControl(a1, 1, v47 == 1, 1u, (int)&v61, &v62, 1u, 0, 0); v21 = (void *)(*(_QWORD *)&v61 - 24LL); if ( (__int64 *)(*(_QWORD *)&v61 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(*(_QWORD *)&v61 - 8LL); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(*(_QWORD *)&v61 - 8LL); *(_DWORD *)(*(_QWORD *)&v61 - 8LL) = v42 - 1; } if ( v42 <= 0 ) operator delete(v21); } sub_D153B8((int)&v62, "Resume"); cocos2d::CCPoint::CCPoint(&v60, 75.0, 0.0); cocos2d::CCPoint::operator+(&v61, &v59, &v60); SetupTriggerPopup::createCustomToggleValueControl(a1, 2, v47 == 2, 1u, (int)&v62, &v61, 1u, 0, 0); v22 = (void *)(*(_QWORD *)&v62 - 24LL); if ( (__int64 *)(*(_QWORD *)&v62 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)(*(_QWORD *)&v62 - 8LL); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(*(_QWORD *)&v62 - 8LL); *(_DWORD *)(*(_QWORD *)&v62 - 8LL) = v38 - 1; } if ( v38 <= 0 ) operator delete(v22); } SetupTriggerPopup::postSetup(a1); v23 = (void *)(v51 - 24); if ( (__int64 *)(v51 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(v51 - 8); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(v51 - 8); *(_DWORD *)(v51 - 8) = v46 - 1; } if ( v46 <= 0 ) operator delete(v23); } v24 = (void *)(v48 - 24); if ( (__int64 *)(v48 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v48 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v48 - 8); *(_DWORD *)(v48 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v24); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source