// // SetupAreaTriggerPopup::init from 0x1405a7f50 to 0x1405a84fc (1452 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x1401bc28e // > @ 0x14092d644 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:34:39 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupAreaTriggerPopup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al _QWORD *v6; // r9 _QWORD *v7; // rcx const char *v8; // rdx __int64 v9; // r8 __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax float v16[2]; // [rsp+88h] [rbp-80h] BYREF __int128 *v17; // [rsp+90h] [rbp-78h] BYREF __int128 *v18; // [rsp+98h] [rbp-70h] BYREF __int128 *v19; // [rsp+A0h] [rbp-68h] BYREF __int128 v20; // [rsp+A8h] [rbp-60h] BYREF __int64 v21; // [rsp+B8h] [rbp-50h] __int64 v22; // [rsp+C0h] [rbp-48h] __int128 v23; // [rsp+C8h] [rbp-40h] BYREF __int64 v24; // [rsp+D8h] [rbp-30h] __int64 v25; // [rsp+E0h] [rbp-28h] char v26; // [rsp+150h] [rbp+48h] BYREF result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1133248512, 1, 0); if ( result ) { (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); v21 = 12; v22 = 15; strcpy((char *)&v20, "Area Trigger"); BYTE13(v20) = 0; HIWORD(v20) = 0; SetupTriggerPopup::addTitle(a1, &v20); v20 = 0; v21 = 2; v22 = 15; strcpy((char *)&v20, "OK"); SetupTriggerPopup::addCloseButton(a1, &v20); v17 = &v20; v20 = 0; v21 = 0; v22 = 0; v6 = sub_14003D460(0x140u); *(_QWORD *)&v20 = v6; v21 = 318; v22 = 319; v7 = v6; v8 = "Alters objects using Target Group ID within an area around Center Group ID. The area can be spe" "cified 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."; v9 = 2; do { *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); *((_OWORD *)v7 + 3) = *((_OWORD *)v8 + 3); *((_OWORD *)v7 + 4) = *((_OWORD *)v8 + 4); *((_OWORD *)v7 + 5) = *((_OWORD *)v8 + 5); *((_OWORD *)v7 + 6) = *((_OWORD *)v8 + 6); v7 += 16; *((_OWORD *)v7 - 1) = *((_OWORD *)v8 + 7); v8 += 128; --v9; } while ( v9 ); *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); v7[6] = *((_QWORD *)v8 + 6); *((_DWORD *)v7 + 14) = *((_DWORD *)v8 + 14); *((_WORD *)v7 + 30) = *((_WORD *)v8 + 30); *((_BYTE *)v6 + 318) = 0; v23 = 0; v24 = 4; v25 = 15; strcpy((char *)&v23, "Help"); SetupTriggerPopup::addHelpButton(a1, &v23, &v20); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v16[0] * 0.5, (float)(v16[1] * 0.5) + 95.0); v18 = &v20; v20 = 0; v21 = 6; v22 = 15; strcpy((char *)&v20, "Length"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, -75.0, 0.0); cocos2d::CCPoint::operator+(&v26, &v17, v12); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v20, (unsigned int)&v17, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v19 = &v23; v23 = 0; v24 = 2; v25 = 15; strcpy((char *)&v23, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, 75.0, 0.0); cocos2d::CCPoint::operator+(&v26, &v17, v13); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v23, (unsigned int)&v17, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v19 = &v20; v20 = 0; v21 = 6; v22 = 15; strcpy((char *)&v20, "Offset"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, -75.0, -25.0); cocos2d::CCPoint::operator+(&v26, &v17, v14); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v20, (unsigned int)&v17, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); v19 = &v23; v23 = 0; v24 = 2; v25 = 15; strcpy((char *)&v23, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, 75.0, -25.0); cocos2d::CCPoint::operator+(&v26, &v17, v15); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v23, (unsigned int)&v17, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); SetupAreaMoveTriggerPopup::addAreaDefaultControls((__int64)a1, 0); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); SetupTriggerPopup::createPageButtons(a1); SetupTriggerPopup::goToPage(a1, 0, 0); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source