// // SetupPersistentItemTriggerPopup::init from 0xb766ec to 0xb76bf8 (1292 bytes) // // 2 xrefs: // > SetupPersistentItemTriggerPopup::create @ 0xb76e2c // > @ 0x83110 // // This function is hookable on this platform (idp: arm, 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 13:02:23 +0000 // __int64 __fastcall SetupPersistentItemTriggerPopup::init( SetupPersistentItemTriggerPopup *this, ItemTriggerGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v13; // x0 float v14; // s0 unsigned int v15; // w26 __int64 v16; // [xsp+80h] [xbp+70h] BYREF _BYTE v17[8]; // [xsp+88h] [xbp+78h] BYREF _BYTE v18[8]; // [xsp+90h] [xbp+80h] BYREF _BYTE v19[8]; // [xsp+98h] [xbp+88h] BYREF __int64 v20; // [xsp+A0h] [xbp+90h] BYREF __int64 v21[2]; // [xsp+A8h] [xbp+98h] BYREF void *v22; // [xsp+B8h] [xbp+A8h] __int64 v23; // [xsp+C0h] [xbp+B0h] BYREF __int64 v24; // [xsp+C8h] [xbp+B8h] void *v25; // [xsp+D0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 230.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Persistent Item Setup", 0x15u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v23); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v23, v7, v8, v9, v10, v11); if ( (v23 & 1) != 0 ) operator delete(v25); v21[0] = 0; v21[1] = 0; v22 = nullptr; std::string::__init(v21, "Help", 4u); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init( &v23, "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.", 0xDEu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v21, (char *)&v23, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); if ( (v21[0] & 1) != 0 ) operator delete(v22); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v16, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, *(float *)&v16 * 0.5, *((float *)&v16 + 1) * 0.5); v14 = (*(float (__fastcall **)(SetupPersistentItemTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 494); v23 = 0; v24 = 0; if ( v14 == 0.0 ) v15 = 2; else v15 = 4; v25 = nullptr; std::string::__init(&v23, "Item ID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -40.0, 40.0); cocos2d::CCPoint::operator+(&v20, v17); IDNameInput::create(this, (char *)this + 544, v15, 80, &v23, &v20, 6, 0, 0.8, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Timer", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 80.0, 40.0); cocos2d::CCPoint::operator+(&v20, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1EEu, &v23, (const cocos2d::CCPoint *)&v20, 1, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v18, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + -23.0); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Persistent", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -80.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1EBu, &v23, (const cocos2d::CCPoint *)&v20, 1, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "TargetAll", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1ECu, &v23, (const cocos2d::CCPoint *)&v20, 1, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); v23 = 0; v24 = 0; v25 = nullptr; std::string::__init(&v23, "Reset", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 80.0, 0.0); cocos2d::CCPoint::operator+(&v20, v18); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1EDu, &v23, (const cocos2d::CCPoint *)&v20, 1, 0, 0, 1.0); if ( (v23 & 1) != 0 ) operator delete(v25); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source