// // SetupAreaTriggerPopup::init from 0x1004d9880 to 0x1004d9d80 (1280 bytes) // // 1 xrefs: // > SetupAreaTriggerPopup::create @ 0x1004d9832 // // 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 SetupAreaTriggerPopup::init(SetupAreaTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 char v5; // [rsp+38h] [rbp-F8h] BYREF char v6[15]; // [rsp+39h] [rbp-F7h] BYREF void *v7; // [rsp+48h] [rbp-E8h] char v8; // [rsp+50h] [rbp-E0h] BYREF char v9[15]; // [rsp+51h] [rbp-DFh] BYREF void *v10; // [rsp+60h] [rbp-D0h] __int128 v11; // [rsp+68h] [rbp-C8h] BYREF void *v12; // [rsp+78h] [rbp-B8h] char v13; // [rsp+80h] [rbp-B0h] BYREF char v14[15]; // [rsp+81h] [rbp-AFh] BYREF void *v15; // [rsp+90h] [rbp-A0h] char v16; // [rsp+98h] [rbp-98h] BYREF char v17[15]; // [rsp+99h] [rbp-97h] BYREF void *v18; // [rsp+A8h] [rbp-88h] float v19[2]; // [rsp+B0h] [rbp-80h] BYREF char v20; // [rsp+B8h] [rbp-78h] BYREF _BYTE v21[23]; // [rsp+B9h] [rbp-77h] BYREF char v22; // [rsp+D0h] [rbp-60h] BYREF char v23[15]; // [rsp+D1h] [rbp-5Fh] BYREF void *v24; // [rsp+E0h] [rbp-50h] char v25; // [rsp+E8h] [rbp-48h] BYREF char v26[15]; // [rsp+E9h] [rbp-47h] BYREF void *v27; // [rsp+F8h] [rbp-38h] unsigned __int64 v28; // [rsp+100h] [rbp-30h] BYREF double v29; // [rsp+108h] [rbp-28h] BYREF unsigned __int64 v30[4]; // [rsp+110h] [rbp-20h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { v4 = result; ((void (__fastcall *)(SetupAreaTriggerPopup *))a1->determineStartValues)(a1); v20 = 24; strcpy(v21, "Area Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v20); if ( (v20 & 1) != 0 ) operator delete(*(void **)&v21[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(0x140u); *(_QWORD *)&v11 = 321; *((_QWORD *)&v11 + 1) = 318; strcpy( (char *)v12, "Alters objects using Target Group ID within an area around Center Group ID. The area can be specif" "ied by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area are altered depending on how close they are to the center.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v8, &v11, (__m128)0x3F800000u); if ( (v11 & 1) != 0 ) operator delete(v12); if ( (v8 & 1) != 0 ) operator delete(v10); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v19); sub_10028CBE0((float *)&v28, v19[0] * 0.5, (float)(0.5 * v19[1]) + 95.0); v22 = 12; strcpy(v23, "Length"); sub_10028CBE0((float *)v30, -75.0, 0.0); sub_10028CCE0(&v29, &v28, v30); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 222, (__int64)&v22, (float *)&v29, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v13 = 4; strcpy(v14, "+-"); sub_10028CBE0((float *)v30, 75.0, 0.0); sub_10028CCE0(&v29, &v28, v30); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 223, (__int64)&v13, (float *)&v29, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v13 & 1) != 0 ) operator delete(v15); v25 = 12; strcpy(v26, "Offset"); sub_10028CBE0((float *)v30, -75.0, -25.0); sub_10028CCE0(&v29, &v28, v30); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 220, (__int64)&v25, (float *)&v29, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v25 & 1) != 0 ) operator delete(v27); v16 = 4; strcpy(v17, "+-"); sub_10028CBE0((float *)v30, 75.0, -25.0); sub_10028CCE0(&v29, &v28, v30); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 221, (__int64)&v16, (float *)&v29, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v16 & 1) != 0 ) operator delete(v18); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 0); ((void (__fastcall *)(SetupAreaTriggerPopup *))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