// // SetupAreaFadeTriggerPopup::init from 0x14040f0f0 to 0x14040f844 (1876 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x14011c9fc // > @ 0x1406d8c30 // // 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 // // Hidden C++ exception states: #wind=3 bool SetupAreaFadeTriggerPopup::init(SetupAreaFadeTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax int v12; // r8d char v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] __int64 v15; // [rsp+80h] [rbp-88h] __int64 v16; // [rsp+80h] [rbp-88h] __int64 v17; // [rsp+80h] [rbp-88h] __int64 v18; // [rsp+80h] [rbp-88h] float v19; // [rsp+88h] [rbp-80h] _QWORD v20[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v21; // [rsp+A0h] [rbp-68h] __int128 v22; // [rsp+A8h] [rbp-60h] BYREF __int64 v23; // [rsp+B8h] [rbp-50h] __int64 v24; // [rsp+C0h] [rbp-48h] __int128 v25; // [rsp+C8h] [rbp-40h] BYREF __int64 v26; // [rsp+D8h] [rbp-30h] __int64 v27; // [rsp+E0h] [rbp-28h] char v28; // [rsp+170h] [rbp+68h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { a1->determineStartValues(a1); v22 = 0; *(_QWORD *)&v22 = sub_14003AA10(0x20u); v23 = 17; v24 = 31; strcpy((char *)v22, "Area Fade Trigger"); SetupTriggerPopup::addTitle(a1, &v22); v22 = 0; v23 = 2; v24 = 15; strcpy((char *)&v22, "OK"); SetupTriggerPopup::addCloseButton(a1, &v22); v20[0] = &v22; v22 = 0; v23 = 0; v24 = 15; v5 = sub_14003AA10(0x140u); *(_QWORD *)&v22 = v5; v23 = 310; v24 = 319; v6 = v5; v7 = "Fades objects using Target Group ID within an area around Center Group ID. The area can be spec" "ified 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."; v8 = 2; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_DWORD *)v6 + 12) = *((_DWORD *)v7 + 12); *((_WORD *)v6 + 26) = *((_WORD *)v7 + 26); *((_BYTE *)v5 + 310) = 0; v25 = 0; v26 = 4; v27 = 15; strcpy((char *)&v25, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v25, &v22); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v19 * 0.5); v20[1] = &v22; v22 = 0; v23 = 6; v24 = 15; strcpy((char *)&v22, "Length"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v28, v20); v13 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v22, (unsigned int)v20, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, v13); v21 = &v25; v25 = 0; v26 = 2; v27 = 15; strcpy((char *)&v25, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v28, v20); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v25, (unsigned int)v20, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, v14); v21 = &v22; v22 = 0; v23 = 6; v24 = 15; strcpy((char *)&v22, "Offset"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v28, v20); LOBYTE(v15) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v22, (unsigned int)v20, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, v15); v21 = &v25; v25 = 0; v26 = 2; v27 = 15; strcpy((char *)&v25, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v28, v20); LOBYTE(v16) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v25, (unsigned int)v20, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, v16); v21 = &v22; v23 = 12; v24 = 15; strcpy((char *)&v22, "From Opacity"); BYTE13(v22) = 0; HIWORD(v22) = 0; cocos2d::CCPoint::CCPoint(4.6315666e27, -75.0); cocos2d::CCPoint::operator+(&v28, v20); LOBYTE(v17) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 286, (unsigned int)&v22, (unsigned int)v20, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 2, v17); v21 = &v22; *((_QWORD *)&v22 + 1) = 31092; v23 = 10; v24 = 15; *(_QWORD *)&v22 = 0x696361704F206F54LL; cocos2d::CCPoint::CCPoint(2691650600.0, -75.0); cocos2d::CCPoint::operator+(&v28, v20); LOBYTE(v18) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 275, (unsigned int)&v22, (unsigned int)v20, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 2, v18); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3009); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, v12); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source