// // SetupPersistentItemTriggerPopup::init from 0x57cca0 to 0x57cf4e (686 bytes) // // 1 xrefs: // > SetupPersistentItemTriggerPopup::create @ 0x57d00e // // 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 // bool SetupPersistentItemTriggerPopup::init( SetupPersistentItemTriggerPopup *a1, ItemTriggerGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 _BYTE v7[4]; // [sp+38h] [bp-34h] BYREF cocos2d::CCSize v8; // [sp+3Ch] [bp-30h] BYREF cocos2d::CCPoint v9; // [sp+44h] [bp-28h] BYREF cocos2d::CCPoint v10; // [sp+4Ch] [bp-20h] BYREF cocos2d::CCPoint v11; // [sp+54h] [bp-18h] BYREF cocos2d::CCPoint v12; // [sp+5Ch] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 300.0, 230.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v12, "Persistent Item Setup"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v12); sub_776584((int)&v12, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v12); sub_774008(&v12); sub_776584((int)&v11, "Help"); sub_776584( (int)&v12, "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."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v11, (int)&v12, 1065353216); sub_774008(&v12); sub_774008(&v11); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v5); cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, v8.height * 0.5); sub_776584((int)&v10, "Item ID"); cocos2d::CCPoint::CCPoint(&v11, -40.0, 40.0); cocos2d::CCPoint::operator+(&v12, &v9, &v11); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 80, (int)&v10, &v12, (cocos2d::CCZone *)0x3F4CCCCD, 1, Int, 10, 1, nullptr, 9999.0, 0, 0, 0, 0, 0); sub_774008(&v10); sub_776584((int)&v10, "Timer"); cocos2d::CCPoint::CCPoint(&v11, 80.0, 40.0); cocos2d::CCPoint::operator+(&v12, &v9, &v11); SetupTriggerPopup::createToggleValueControl(a1, 494, (int)&v10, &v12, 1, 0, 0, 1.0); sub_774008(&v10); cocos2d::CCPoint::CCPoint(&v10, v8.width * 0.5, (float)(v8.height * 0.5) - 23.0); sub_776584((int)v7, "Persistent"); cocos2d::CCPoint::CCPoint(&v11, -80.0, 0.0); cocos2d::CCPoint::operator+(&v12, &v10, &v11); SetupTriggerPopup::createToggleValueControl(a1, 491, (int)v7, &v12, 1, 0, 0, 1.0); sub_774008(v7); sub_776584((int)v7, "TargetAll"); cocos2d::CCPoint::CCPoint(&v11, 0.0, 0.0); cocos2d::CCPoint::operator+(&v12, &v10, &v11); SetupTriggerPopup::createToggleValueControl(a1, 492, (int)v7, &v12, 1, 0, 0, 1.0); sub_774008(v7); sub_776584((int)v7, "Reset"); cocos2d::CCPoint::CCPoint(&v11, 80.0, 0.0); cocos2d::CCPoint::operator+(&v12, &v10, &v11); SetupTriggerPopup::createToggleValueControl(a1, 493, (int)v7, &v12, 1, 0, 0, 1.0); sub_774008(v7); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source