// // SetupAreaRotateTriggerPopup::init from 0x1004d64b0 to 0x1004d6b4d (1693 bytes) // // 1 xrefs: // > SetupAreaRotateTriggerPopup::create @ 0x1004d6462 // // 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 SetupAreaRotateTriggerPopup::init( SetupAreaRotateTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 char v5; // [rsp+38h] [rbp-128h] BYREF char v6[15]; // [rsp+39h] [rbp-127h] BYREF void *v7; // [rsp+48h] [rbp-118h] char v8; // [rsp+50h] [rbp-110h] BYREF char v9[15]; // [rsp+51h] [rbp-10Fh] BYREF void *v10; // [rsp+60h] [rbp-100h] __int128 v11; // [rsp+68h] [rbp-F8h] BYREF void *v12; // [rsp+78h] [rbp-E8h] char v13; // [rsp+80h] [rbp-E0h] BYREF char v14[15]; // [rsp+81h] [rbp-DFh] BYREF void *v15; // [rsp+90h] [rbp-D0h] char v16; // [rsp+98h] [rbp-C8h] BYREF char v17[15]; // [rsp+99h] [rbp-C7h] BYREF void *v18; // [rsp+A8h] [rbp-B8h] char v19; // [rsp+B0h] [rbp-B0h] BYREF _BYTE v20[23]; // [rsp+B1h] [rbp-AFh] BYREF char v21; // [rsp+C8h] [rbp-98h] BYREF char v22[15]; // [rsp+C9h] [rbp-97h] BYREF void *v23; // [rsp+D8h] [rbp-88h] float v24[2]; // [rsp+E0h] [rbp-80h] BYREF void *v25[3]; // [rsp+E8h] [rbp-78h] BYREF char v26; // [rsp+100h] [rbp-60h] BYREF char v27[15]; // [rsp+101h] [rbp-5Fh] BYREF void *v28; // [rsp+110h] [rbp-50h] char v29; // [rsp+118h] [rbp-48h] BYREF char v30[15]; // [rsp+119h] [rbp-47h] BYREF void *v31; // [rsp+128h] [rbp-38h] unsigned __int64 v32; // [rsp+130h] [rbp-30h] BYREF double v33; // [rsp+138h] [rbp-28h] BYREF unsigned __int64 v34[4]; // [rsp+140h] [rbp-20h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { v4 = result; ((void (__fastcall *)(SetupAreaRotateTriggerPopup *))a1->determineStartValues)(a1); strcpy((char *)v25, "&Area Rotate Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v25); if ( ((__int64)v25[0] & 1) != 0 ) operator delete(v25[2]); 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) = 314; strcpy( (char *)v12, "Rotates objects using Target Group ID within an area around Center Group ID. The area can be speci" "fied by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area rotate 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 *)v24); sub_10028CBE0((float *)&v32, v24[0] * 0.5, (float)(0.5 * v24[1]) + 95.0); v26 = 12; strcpy(v27, "Length"); sub_10028CBE0((float *)v34, -75.0, 0.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 222, (__int64)&v26, (float *)&v33, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v26 & 1) != 0 ) operator delete(v28); v13 = 4; strcpy(v14, "+-"); sub_10028CBE0((float *)v34, 75.0, 0.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 223, (__int64)&v13, (float *)&v33, 0, Int, 0.64999998, 0.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v13 & 1) != 0 ) operator delete(v15); v29 = 12; strcpy(v30, "Offset"); sub_10028CBE0((float *)v34, -75.0, -25.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 220, (__int64)&v29, (float *)&v33, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v29 & 1) != 0 ) operator delete(v31); v16 = 4; strcpy(v17, "+-"); sub_10028CBE0((float *)v34, 75.0, -25.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 221, (__int64)&v16, (float *)&v33, 0, Int, 0.64999998, -100.0, 100.0, 6, 0, 0, 0, 1, 2, 0); if ( (v16 & 1) != 0 ) operator delete(v18); v19 = 16; strcpy(v20, "Rotation"); sub_10028CBE0((float *)v34, -75.0, -50.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 270, (__int64)&v19, (float *)&v33, 0, Float, 0.64999998, -360.0, 360.0, 6, 0, 0, 0, 1, 2, 0); if ( (v19 & 1) != 0 ) operator delete(*(void **)&v20[15]); v21 = 4; strcpy(v22, "+-"); sub_10028CBE0((float *)v34, 75.0, -50.0); sub_10028CCE0(&v33, &v32, v34); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 271, (__int64)&v21, (float *)&v33, 0, Float, 0.64999998, 0.0, 180.0, 6, 0, 0, 0, 1, 2, 0); if ( (v21 & 1) != 0 ) operator delete(v23); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3007); ((void (__fastcall *)(SetupAreaRotateTriggerPopup *))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