// // SetupShaderEffectPopup::setupBulge from 0xa042d0 to 0xa04dc0 (2800 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0xa08670 // > @ 0x6ca80 // // 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 SetupShaderEffectPopup::setupBulge(SetupShaderEffectPopup *a1) { void *v2; // x0 void *v3; // x0 void *v4; // x0 cocos2d::CCDirector *v5; // x0 void *v6; // x0 void *v7; // x0 void *v8; // x0 void *v9; // x0 void *v10; // x0 float v11; // s3 float v12; // s4 void *v13; // x0 float v14; // s3 float v15; // s4 void *v16; // x0 float v17; // s3 float v18; // s4 void *v19; // x0 void *v20; // x0 void *v21; // x0 float v22; // s0 _BOOL4 v23; // w22 float v24; // s2 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // 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 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x22 int v50; // w1 float v51; // [xsp+B0h] [xbp+80h] float v52; // [xsp+B4h] [xbp+84h] cocos2d::CCPoint v53; // [xsp+B8h] [xbp+88h] BYREF cocos2d::CCPoint v54; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCPoint v55; // [xsp+C8h] [xbp+98h] BYREF __int64 v56; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v57; // 0:s0.4,4:s1.4 cocos2d::CCPoint v58; // 0:s0.4,4:s1.4 cocos2d::CCPoint v59; // 0:s0.4,4:s1.4 cocos2d::CCPoint v60; // 0:s0.4,4:s1.4 sub_D153B8((int)&v56, "Setup Bulge"); SetupTriggerPopup::addTitle((__int64)a1); v2 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v56 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v26 - 1; } if ( v26 <= 0 ) operator delete(v2); } sub_D153B8((int)&v55, "Help"); sub_D153B8( (int)&v56, "Bulges the screen.\n" "Bulge defines how strong the effect is.\n" "Radius is how large the effect is.\n" "Screen OffX and OffY offsets the center of the effect.\n" "FadeTime is time until final state is reached.\n" "Target lets you set a specific target object as the center."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v3 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v56 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v28 - 1; } if ( v28 <= 0 ) operator delete(v3); } v4 = (void *)(*(_QWORD *)&v55 - 24LL); if ( (__int64 *)(*(_QWORD *)&v55 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(*(_QWORD *)&v55 - 8LL); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *(_DWORD *)(*(_QWORD *)&v55 - 8LL); *(_DWORD *)(*(_QWORD *)&v55 - 8LL) = v30 - 1; } if ( v30 <= 0 ) operator delete(v4); } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCPoint::CCPoint(&v53, v51 * 0.5, (float)(v52 * 0.5) + 85.0); sub_D153B8((int)&v56, "Bulge:"); cocos2d::CCPoint::CCPoint(&v54, -100.0, 0.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); SetupTriggerPopup::createValueControl(a1, 0xB0u, 0.7, 0.0, 1.0, (__int64)&v56, &v55); v6 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v56 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v32 - 1; } if ( v32 <= 0 ) operator delete(v6); } sub_D153B8((int)&v56, "Radius:"); cocos2d::CCPoint::CCPoint(&v54, -100.0, -50.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); SetupTriggerPopup::createValueControl(a1, 0xB4u, 0.7, 0.0, 1.0, (__int64)&v56, &v55); v7 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(v56 - 8); do v34 = __ldaxr(v33); while ( __stlxr(v34 - 1, v33) ); } else { v34 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v34 - 1; } if ( v34 <= 0 ) operator delete(v7); } sub_D153B8((int)&v56, "FadeTime:"); cocos2d::CCPoint::CCPoint(&v54, -100.0, -100.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); SetupTriggerPopup::createValueControl(a1, 0xAu, 0.7, 0.0, 0.0, (__int64)&v56, &v55); v8 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v56 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v36 - 1; } if ( v36 <= 0 ) operator delete(v8); } sub_D153B8((int)&v56, "Relative"); cocos2d::CCPoint::CCPoint( &v55, (float)((float)((float)(a1->m_width * 0.5) + (float)(v51 * 0.5)) - 72.0) - 90.0, 20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v52 * 0.5))); SetupTriggerPopup::createToggleValueControl(a1, 514, 1.0, (__int64)&v56, &v55, 0, 0, 0); v9 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)(v56 - 8); do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v38 - 1; } if ( v38 <= 0 ) operator delete(v9); } sub_D153B8((int)&v56, "Target"); cocos2d::CCPoint::CCPoint(&v55, (float)(v51 * 0.5) + -140.0, (float)(v52 * 0.5) + -70.0); SetupTriggerPopup::createToggleValueControl(a1, 188, 1.0, (__int64)&v56, &v55, 0, 0, 0); v10 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)(v56 - 8); do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v40 - 1; } if ( v40 <= 0 ) operator delete(v10); } sub_D153B8((int)&v56, "Screen\nOffX:"); cocos2d::CCPoint::CCPoint(&v54, 100.0, 0.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); v57.x = 0.7; v57.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x122u, v57, 1.0, v11, v12, (std::string)&v56, &v55, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v13 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(v56 - 8); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v42 - 1; } if ( v42 <= 0 ) operator delete(v13); } sub_D153B8((int)&v56, "Screen\nOffY:"); cocos2d::CCPoint::CCPoint(&v54, 100.0, -50.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); v58.x = 0.7; v58.y = -1.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x123u, v58, 1.0, v14, v15, (std::string)&v56, &v55, (InputValueType)0, Float, 6, 0, 0, 101, 0, 2, 0); v16 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)(v56 - 8); do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v44 - 1; } if ( v44 <= 0 ) operator delete(v16); } sub_D153B8((int)&v56, "CenterID:"); cocos2d::CCPoint::CCPoint(&v54, 100.0, 0.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); v59.x = 0.7; v59.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v59, 1.0, v17, v18, (std::string)&v56, &v55, Float, Int, 6, 1u, 0, 100, 0, 2, 0); v19 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)(v56 - 8); do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v46 - 1; } if ( v46 <= 0 ) operator delete(v19); } sub_D153B8((int)&v56, "P1"); cocos2d::CCPoint::CCPoint(&v54, 60.0, -40.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); SetupTriggerPopup::createToggleValueControl(a1, 138, 1.0, (__int64)&v56, &v55, 0, 0, 100); v20 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)(v56 - 8); do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v48 - 1; } if ( v48 <= 0 ) operator delete(v20); } sub_D153B8((int)&v56, "P2"); cocos2d::CCPoint::CCPoint(&v54, 130.0, -40.0); cocos2d::CCPoint::operator+(&v55, &v53, &v54); SetupTriggerPopup::createToggleValueControl(a1, 200, 1.0, (__int64)&v56, &v55, 0, 0, 100); v21 = (void *)(v56 - 24); if ( (__int64 *)(v56 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)(v56 - 8); do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = *(_DWORD *)(v56 - 8); *(_DWORD *)(v56 - 8) = v50 - 1; } if ( v50 <= 0 ) operator delete(v21); } v22 = a1->getValue(a1, 188); v23 = v22 != 0.0; a1->toggleGroup(a1, 100, v22 != 0.0); a1->toggleGroup(a1, 101, !v23); cocos2d::CCPoint::CCPoint(&v55, 100.0, -100.0); cocos2d::CCPoint::operator+(&v56, &v53, &v55); v60.x = 0.8; SetupTriggerPopup::createEasingControls(a1, v60, v24, (int)&v56, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source