// // SetupPersistentItemTriggerPopup::init from 0x14046fa10 to 0x14046ffa3 (1427 bytes) // // 3 xrefs: // > SetupPersistentItemTriggerPopup::create @ 0x14046f9ce // > @ 0x1406db288 // > @ 0x1406db294 // // 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 SetupPersistentItemTriggerPopup::init( SetupPersistentItemTriggerPopup *a1, ItemTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al double v5; // xmm0_8 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax double v8; // xmm0_8 double ToggleValueControl; // xmm0_8 char v10; // [rsp+80h] [rbp-88h] __int128 v11; // [rsp+88h] [rbp-80h] BYREF __int64 v12; // [rsp+98h] [rbp-70h] __int64 v13; // [rsp+A0h] [rbp-68h] _QWORD v14[2]; // [rsp+A8h] [rbp-60h] BYREF __int128 *v15; // [rsp+B8h] [rbp-50h] _BYTE v16[8]; // [rsp+C0h] [rbp-48h] BYREF _BYTE v17[8]; // [rsp+C8h] [rbp-40h] BYREF __int128 v18; // [rsp+D0h] [rbp-38h] BYREF __int64 v19; // [rsp+E0h] [rbp-28h] __int64 v20; // [rsp+E8h] [rbp-20h] float v21; // [rsp+150h] [rbp+48h] result = SetupTriggerPopup::init(a1, a2, a3, 300.0, 230.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v11 = 0; *(_QWORD *)&v11 = sub_14003AA10(0x20u); v12 = 21; v13 = 31; strcpy((char *)v11, "Persistent Item Setup"); SetupTriggerPopup::addTitle(a1, &v11); v11 = 0; v12 = 2; v13 = 15; strcpy((char *)&v11, "OK"); SetupTriggerPopup::addCloseButton(a1, &v11); v14[0] = &v11; v11 = 0; v12 = 0; v13 = 15; *(_QWORD *)&v11 = sub_14003AA10(0xE0u); v12 = 222; v13 = 223; strcpy( (char *)v11, "Lets you set ItemID to be Persistent. This means it does not reset upon player death, but only on " "level exit.\n" "TargetAll targets all persistent Item IDs.\n" "Reset resets the target item(s) to 0."); v18 = 0; v19 = 4; v20 = 15; strcpy((char *)&v18, "Help"); v5 = SetupTriggerPopup::addHelpButton(a1, &v18, &v11); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); v8 = cocos2d::CCPoint::CCPoint(*(float *)&v5, v21 * 0.5); v14[1] = &v11; HIWORD(v11) = 0; v12 = 7; v13 = 15; qmemcpy(&v11, "Item I", 6); *(_QWORD *)((char *)&v11 + 6) = (unsigned __int8)aItemId[6]; cocos2d::CCPoint::CCPoint(*(float *)&v8, -40.0); cocos2d::CCPoint::operator+(v17, v14); v10 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 80, (unsigned int)&v11, (unsigned int)v14, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v10); v15 = &v11; v11 = 0; v12 = 5; v13 = 15; strcpy((char *)&v11, "Timer"); cocos2d::CCPoint::CCPoint(0.0, 80.0); cocos2d::CCPoint::operator+(v17, v14); ToggleValueControl = SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 494, (unsigned int)&v11, (unsigned int)v14, 1, 0, 0, 1065353216); cocos2d::CCPoint::CCPoint(*(float *)&ToggleValueControl, v21 * 0.5); v15 = &v11; *((_QWORD *)&v11 + 1) = 29806; v12 = 10; v13 = 15; *(_QWORD *)&v11 = 0x6574736973726550LL; cocos2d::CCPoint::CCPoint(1.920457e31, -80.0); cocos2d::CCPoint::operator+(v16, v14); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 491, (unsigned int)&v11, (unsigned int)v14, 1, 0, 0, 1065353216); v15 = &v11; *((_QWORD *)&v11 + 1) = 108; v12 = 9; v13 = 15; *(_QWORD *)&v11 = 0x6C41746567726154LL; cocos2d::CCPoint::CCPoint(1.1446081e24, 0.0); cocos2d::CCPoint::operator+(v16, v14); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 492, (unsigned int)&v11, (unsigned int)v14, 1, 0, 0, 1065353216); v15 = &v11; v11 = 0; v12 = 5; v13 = 15; LODWORD(v11) = *(_DWORD *)"Reset"; WORD2(v11) = (unsigned __int8)aReset[4]; cocos2d::CCPoint::CCPoint(0.0, 80.0); cocos2d::CCPoint::operator+(v16, v14); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 493, (unsigned int)&v11, (unsigned int)v14, 1, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source