// // SetupAreaFadeTriggerPopup::init from 0x1004d7290 to 0x1004d7936 (1702 bytes) // // 1 xrefs: // > SetupAreaFadeTriggerPopup::create @ 0x1004d7242 // // 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 SetupAreaFadeTriggerPopup::init( SetupAreaFadeTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 void *v5[3]; // [rsp+38h] [rbp-128h] BYREF char v6; // [rsp+50h] [rbp-110h] BYREF char v7[15]; // [rsp+51h] [rbp-10Fh] BYREF void *v8; // [rsp+60h] [rbp-100h] char v9; // [rsp+68h] [rbp-F8h] BYREF char v10[15]; // [rsp+69h] [rbp-F7h] BYREF void *v11; // [rsp+78h] [rbp-E8h] __int128 v12; // [rsp+80h] [rbp-E0h] BYREF void *v13; // [rsp+90h] [rbp-D0h] char v14; // [rsp+98h] [rbp-C8h] BYREF char v15[15]; // [rsp+99h] [rbp-C7h] BYREF void *v16; // [rsp+A8h] [rbp-B8h] char v17; // [rsp+B0h] [rbp-B0h] BYREF char v18[15]; // [rsp+B1h] [rbp-AFh] BYREF void *v19; // [rsp+C0h] [rbp-A0h] float v20[2]; // [rsp+C8h] [rbp-98h] BYREF char v21; // [rsp+D0h] [rbp-90h] BYREF char v22[15]; // [rsp+D1h] [rbp-8Fh] BYREF void *v23; // [rsp+E0h] [rbp-80h] char v24; // [rsp+E8h] [rbp-78h] BYREF char v25[15]; // [rsp+E9h] [rbp-77h] BYREF void *v26; // [rsp+F8h] [rbp-68h] char v27; // [rsp+100h] [rbp-60h] BYREF _BYTE v28[23]; // [rsp+101h] [rbp-5Fh] BYREF char v29; // [rsp+118h] [rbp-48h] BYREF _BYTE v30[23]; // [rsp+119h] [rbp-47h] BYREF unsigned __int64 v31; // [rsp+130h] [rbp-30h] BYREF double v32; // [rsp+138h] [rbp-28h] BYREF unsigned __int64 v33[4]; // [rsp+140h] [rbp-20h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { v4 = result; ((void (__fastcall *)(SetupAreaFadeTriggerPopup *))a1->determineStartValues)(a1); strcpy((char *)v5, "\"Area Fade Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v5); if ( ((__int64)v5[0] & 1) != 0 ) operator delete(v5[2]); v6 = 4; strcpy(v7, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v6); if ( (v6 & 1) != 0 ) operator delete(v8); v9 = 8; strcpy(v10, "Help"); v13 = operator new(0x138u); *(_QWORD *)&v12 = 313; *((_QWORD *)&v12 + 1) = 310; strcpy( (char *)v13, "Fades objects using Target Group ID within an area around Center Group ID. The area can be specifi" "ed by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area fade depending on how close they are to the center.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v9, &v12, (__m128)0x3F800000u); if ( (v12 & 1) != 0 ) operator delete(v13); if ( (v9 & 1) != 0 ) operator delete(v11); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20); sub_10028CBE0((float *)&v31, v20[0] * 0.5, (float)(0.5 * v20[1]) + 95.0); v21 = 12; strcpy(v22, "Length"); sub_10028CBE0((float *)v33, -75.0, 0.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 222, (__int64)&v21, (float *)&v32, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v14 = 4; strcpy(v15, "+-"); sub_10028CBE0((float *)v33, 75.0, 0.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 223, (__int64)&v14, (float *)&v32, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v14 & 1) != 0 ) operator delete(v16); v24 = 12; strcpy(v25, "Offset"); sub_10028CBE0((float *)v33, -75.0, -25.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 220, (__int64)&v24, (float *)&v32, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v24 & 1) != 0 ) operator delete(v26); v17 = 4; strcpy(v18, "+-"); sub_10028CBE0((float *)v33, 75.0, -25.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 221, (__int64)&v17, (float *)&v32, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v17 & 1) != 0 ) operator delete(v19); v27 = 24; strcpy(v28, "From Opacity"); sub_10028CBE0((float *)v33, -75.0, -50.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 286, (__int64)&v27, (float *)&v32, 0, Float, 0.64999998, 0.0, 1.0, 6, 0, 0, 0, 1, 2, 0); if ( (v27 & 1) != 0 ) operator delete(*(void **)&v28[15]); v29 = 20; strcpy(v30, "To Opacity"); sub_10028CBE0((float *)v33, -75.0, -75.0); sub_10028CCE0(&v32, &v31, v33); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 275, (__int64)&v29, (float *)&v32, 0, Float, 0.64999998, 0.0, 1.0, 6, 0, 0, 0, 1, 2, 0); if ( (v29 & 1) != 0 ) operator delete(*(void **)&v30[15]); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3009); ((void (__fastcall *)(SetupAreaFadeTriggerPopup *))a1->updateDefaultTriggerValues)(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source