// // SetupZoomTriggerPopup::init from 0x100321310 to 0x1003216b7 (935 bytes) // // 1 xrefs: // > SetupZoomTriggerPopup::create @ 0x1003212cb // // 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 __fastcall SetupZoomTriggerPopup::init(SetupZoomTriggerPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r12 char v5; // [rsp+40h] [rbp-D0h] BYREF char v6[15]; // [rsp+41h] [rbp-CFh] BYREF void *v7; // [rsp+50h] [rbp-C0h] char v8; // [rsp+58h] [rbp-B8h] BYREF char v9[15]; // [rsp+59h] [rbp-B7h] BYREF void *v10; // [rsp+68h] [rbp-A8h] __int128 v11; // [rsp+70h] [rbp-A0h] BYREF void *v12; // [rsp+80h] [rbp-90h] char v13[16]; // [rsp+88h] [rbp-88h] BYREF void *v14; // [rsp+98h] [rbp-78h] char v15[16]; // [rsp+A0h] [rbp-70h] BYREF void *v16; // [rsp+B0h] [rbp-60h] float v17[2]; // [rsp+B8h] [rbp-58h] BYREF char v18; // [rsp+C0h] [rbp-50h] BYREF _BYTE v19[23]; // [rsp+C1h] [rbp-4Fh] BYREF unsigned __int64 v20; // [rsp+D8h] [rbp-38h] BYREF double v21; // [rsp+E0h] [rbp-30h] BYREF unsigned __int64 v22[5]; // [rsp+E8h] [rbp-28h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 360.0, 220.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17); v18 = 20; strcpy(v19, "Setup Zoom"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v18); if ( (v18 & 1) != 0 ) operator delete(*(void **)&v19[15]); v5 = 4; strcpy(v6, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v5); if ( (v5 & 1) != 0 ) operator delete(v7); v8 = 8; strcpy(v9, "Help"); v12 = operator new(0x80u); *(_QWORD *)&v11 = 129; *((_QWORD *)&v11 + 1) = 123; strcpy( (char *)v12, "Zooms the camera a given amount.\n" "Time is how fast the zoom happens.\n" "Easing changes the method used."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v8, &v11, (__m128)0x3F800000u); if ( (v11 & 1) != 0 ) operator delete(v12); if ( (v8 & 1) != 0 ) operator delete(v10); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); sub_10028CBE0((float *)&v20, v17[0] * 0.5, 0.5 * v17[1]); strcpy(v13, "\nZoom:"); sub_10028CBE0((float *)v22, 0.0, 55.0); sub_10028CCE0(&v21, &v20, v22); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 371, (__int64)v13, (float *)&v21, 0, Float, 0.69999999, 0.40000001, 3.0, 4, 0, 0, 0, 0, 3, 0); if ( (v13[0] & 1) != 0 ) operator delete(v14); strcpy(v15, "\nTime:"); sub_10028CBE0((float *)v22, -80.0, 0.0); sub_10028CCE0(&v21, &v20, v22); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 10, (__int64)v15, (float *)&v21, 0, Float, 0.69999999, 0.0, 10.0, 4, 0, 0, 0, 0, 2, 0); if ( (v15[0] & 1) != 0 ) operator delete(v16); sub_10028CBE0((float *)v22, 80.0, 0.0); sub_10028CCE0(&v21, &v20, v22); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1060320051LL, 0.0, (int)&v21, 0); SetupTriggerPopup::postSetup(a1); a1->m_disableTextDelegate = 0; return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source