// // SetupTimerTriggerPopup::init from 0xbb136c to 0xbb1aa8 (1852 bytes) // // 2 xrefs: // > SetupTimerTriggerPopup::create @ 0xbb1cf8 // > @ 0x8a748 // // 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:56 +0000 // __int64 __fastcall SetupTimerTriggerPopup::init( SetupTimerTriggerPopup *this, TimerTriggerGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w25 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCDirector *MultiTriggerItemsDefault; // x0 cocos2d::CCDirector *v13; // x0 int v14; // [xsp+8h] [xbp-28h] int v15; // [xsp+8h] [xbp-28h] __int64 v16; // [xsp+A8h] [xbp+78h] BYREF _BYTE v17[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v18[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v19; // [xsp+C0h] [xbp+90h] BYREF __int64 v20[2]; // [xsp+C8h] [xbp+98h] BYREF void *v21; // [xsp+D8h] [xbp+A8h] __int64 v22; // [xsp+E0h] [xbp+B0h] BYREF __int64 v23; // [xsp+E8h] [xbp+B8h] void *v24; // [xsp+F0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Time Trigger", 0xCu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v22); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v22, v7, v8, v9, v10, v11); if ( (v22 & 1) != 0 ) operator delete(v24); v20[0] = 0; v20[1] = 0; v21 = nullptr; std::string::__init(v20, "Help", 4u); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init( &v22, "These function as an in-game timer using ItemID.\n" "TargetID is spawned when StopTime is hit.\n" "TimeMod modifies the timer with multiplication (Can be negative).\n" "StartPaused pauses at starting time until activated by another Time trigger.", 0x119u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v20, (char *)&v22, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); if ( (v20[0] & 1) != 0 ) operator delete(v21); 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)(*((float *)&v16 + 1) * 0.5) + 85.0); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "StartTime", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -85.0, 0.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 467, (char *)&v22, (__int64)&v19, 0, 1, 10, 0, 0.8, 0.0, 100.0, 0, 0, 0, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "StopTime", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 85.0, 0.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 473, (char *)&v22, (__int64)&v19, 0, 1, 10, 0, 0.8, 0.0, 100.0, 0, 0, 0, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, &byte_11B8890, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 175.0, 0.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1DAu, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 0, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "TimerID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -85.0, -75.0); cocos2d::CCPoint::operator+(&v19, v17); LOBYTE(v14) = 0; IDNameInput::create(this, (char *)this + 544, 4, 80, &v22, &v19, 6, 0, 0.8, 0, v14); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "TimeMod", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 85.0, -60.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 470, (char *)&v22, (__int64)&v19, 0, 1, 10, 0, 0.8, 0.01, 2.0, 0, 0, 0, 2, 0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "TargetID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, -85.0, -135.0); cocos2d::CCPoint::operator+(&v19, v17); LOBYTE(v15) = 0; IDNameInput::create(this, (char *)this + 544, 1, 51, &v22, &v19, 6, 0, 0.8, 0, v15); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Ignore\nTimeWarp", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 10.0, -128.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1D5u, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 0, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Start\nPaused", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 120.0, -128.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1D7u, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 0, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); v22 = 0; v23 = 0; v24 = nullptr; std::string::__init(&v22, "Dont\nOverride", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 120.0, -163.0); cocos2d::CCPoint::operator+(&v19, v17); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1D4u, &v22, (const cocos2d::CCPoint *)&v19, 0, 0, 0, 1.0); if ( (v22 & 1) != 0 ) operator delete(v24); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source