// // SetupZoomTriggerPopup::init from 0x96bc24 to 0x96c19c (1400 bytes) // // 2 xrefs: // > SetupZoomTriggerPopup::create @ 0x96c348 // > @ 0x37d88 // // 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 SetupZoomTriggerPopup::init(SetupZoomTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w24 cocos2d::CCDirector *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; // s2 unsigned int *v18; // x1 int v19; // w2 unsigned int *v20; // x1 int v21; // w2 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 int v30; // [xsp+18h] [xbp-18h] __int64 v31; // [xsp+18h] [xbp-18h] char v32; // [xsp+20h] [xbp-10h] __int64 v33; // [xsp+20h] [xbp-10h] _QWORD v34[2]; // [xsp+30h] [xbp+0h] BYREF float v35; // [xsp+A0h] [xbp+70h] float v36; // [xsp+A4h] [xbp+74h] cocos2d::CCPoint v37; // [xsp+A8h] [xbp+78h] BYREF cocos2d::CCPoint v38; // [xsp+B0h] [xbp+80h] BYREF cocos2d::CCPoint v39; // [xsp+B8h] [xbp+88h] BYREF __int64 v40; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCPoint v41; // 0:s0.4,4:s1.4 cocos2d::CCPoint v42; // 0:s0.4,4:s1.4 cocos2d::CCPoint v43; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 360.0, 220.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); sub_D153B8((unsigned int)v34 + 144, "Setup Zoom"); SetupTriggerPopup::addTitle(a1, (std::string)&v40); v7 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v40 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v7); } sub_D153B8((unsigned int)v34 + 144, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v40); v8 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v40 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v8); } sub_D153B8((int)&v39, "Help"); sub_D153B8( (unsigned int)v34 + 144, "Zooms the camera a given amount.\n" "Time is how fast the zoom happens.\n" "Easing changes the method used."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v39, (std::string)&v40, 1.0); v9 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v40 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v9); } v10 = (void *)(*(_QWORD *)&v39 - 24LL); if ( (__int64 *)(*(_QWORD *)&v39 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(*(_QWORD *)&v39 - 8LL); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(*(_QWORD *)&v39 - 8LL); *(_DWORD *)(*(_QWORD *)&v39 - 8LL) = v27 - 1; } if ( v27 <= 0 ) operator delete(v10); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); cocos2d::CCPoint::CCPoint(&v37, v35 * 0.5, v36 * 0.5); sub_D153B8((unsigned int)v34 + 144, "Zoom:"); cocos2d::CCPoint::CCPoint(&v38, 0.0, 55.0); cocos2d::CCPoint::operator+(&v39, &v37, &v38); v41.y = 0.4; v30 = 3; v41.x = 0.7; v32 = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 371, (std::string)&v40, v41, 3.0, (bool)&v39, (InputValueType)0, 1, 4, v11, v12, 0, 0, GoldLabel, 0, v30, v32); v13 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v40 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v13); } sub_D153B8((unsigned int)v34 + 144, "Time:"); cocos2d::CCPoint::CCPoint(&v38, -80.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v37, &v38); v42.x = 0.7; v42.y = 0.0; LODWORD(v31) = 2; LOBYTE(v33) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 10, (std::string)&v40, v42, 10.0, (bool)&v39, (InputValueType)0, 1, 4, v14, v15, 0, 0, GoldLabel, 0, v31, v33); v16 = (void *)(v40 - 24); if ( (__int64 *)(v40 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v40 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v40 - 8); *(_DWORD *)(v40 - 8) = v29 - 1; } if ( v29 <= 0 ) operator delete(v16); } cocos2d::CCPoint::CCPoint(&v39, 80.0, 0.0); cocos2d::CCPoint::operator+(&v40, &v37, &v39); v43.x = 0.7; SetupTriggerPopup::createEasingControls(a1, v43, v17, (unsigned int)v34 + 144, 0); SetupTriggerPopup::postSetup(a1); a1->m_disableTextDelegate = 0; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source