// // SetupPersistentItemTriggerPopup::init from 0x6b5844 to 0x6b5b5c (792 bytes) // // 1 xrefs: // > SetupPersistentItemTriggerPopup::create @ 0x6b5c16 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:42 +0000 // GameManager *__fastcall SetupPersistentItemTriggerPopup::init( SetupPersistentItemTriggerPopup *this, ItemTriggerGameObject *a2, cocos2d::CCArray *a3) { GameManager *v4; // r10 cocos2d::CCDirector *MultiTriggerItemsDefault; // r0 float v6; // r0 int v7; // r3 int v9; // [sp+20h] [bp-54h] float v10; // [sp+2Ch] [bp-48h] BYREF float v11; // [sp+30h] [bp-44h] _BYTE v12[8]; // [sp+34h] [bp-40h] BYREF _BYTE v13[8]; // [sp+3Ch] [bp-38h] BYREF _BYTE v14[8]; // [sp+44h] [bp-30h] BYREF _BYTE v15[8]; // [sp+4Ch] [bp-28h] BYREF int v16[3]; // [sp+54h] [bp-20h] BYREF int v17; // [sp+60h] [bp-14h] BYREF int v18; // [sp+64h] [bp-10h] int v19; // [sp+68h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 230.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Persistent Item Setup", 0x15u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v17); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v17); std::string::~string((int)&v17); memset(v16, 0, sizeof(v16)); std::string::__init(v16, "Help", 4u); v17 = 0; v18 = 0; v19 = 0; std::string::__init( &v17, "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((int)this, (int)v16, (int)&v17, 1065353216); std::string::~string((int)&v17); std::string::~string((int)v16); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v10 * 0.5, v11 * 0.5); v6 = COERCE_FLOAT((*(int (__fastcall **)(SetupPersistentItemTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 494)); v17 = 0; v18 = 0; v19 = 0; if ( v6 == 0.0 ) v7 = 2; else v7 = 4; v9 = v7; std::string::__init(&v17, "Item ID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -40.0, 40.0); cocos2d::CCPoint::operator+(v15, v12, v14); IDNameInput::create((int)this, (int)this + 440, v9, 80, (int)&v17, (int)v15, 0.8, 6, 0, 0, 0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Timer", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 80.0, 40.0); cocos2d::CCPoint::operator+(v15, v12, v14); SetupTriggerPopup::createToggleValueControl((int)this, 494, (int)&v17, (const cocos2d::CCPoint *)v15, 1, 0, 0, 1.0); std::string::~string((int)&v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v10 * 0.5, (float)(v11 * 0.5) - 23.0); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Persistent", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, -80.0, 0.0); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createToggleValueControl((int)this, 491, (int)&v17, (const cocos2d::CCPoint *)v15, 1, 0, 0, 1.0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "TargetAll", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, 0.0); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createToggleValueControl((int)this, 492, (int)&v17, (const cocos2d::CCPoint *)v15, 1, 0, 0, 1.0); std::string::~string((int)&v17); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, "Reset", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 80.0, 0.0); cocos2d::CCPoint::operator+(v15, v13, v14); SetupTriggerPopup::createToggleValueControl((int)this, 493, (int)&v17, (const cocos2d::CCPoint *)v15, 1, 0, 0, 1.0); std::string::~string((int)&v17); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source