// // SetupTimerEventTriggerPopup::init from 0xbb1d6c to 0xbb21ec (1152 bytes) // // 2 xrefs: // > SetupTimerEventTriggerPopup::create @ 0xbb2420 // > @ 0x100750 // // 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 SetupTimerEventTriggerPopup::init( SetupTimerEventTriggerPopup *this, TimerTriggerGameObject *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 int v14; // [xsp+8h] [xbp-28h] __int64 v15; // [xsp+A8h] [xbp+78h] BYREF _BYTE v16[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v17[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v18; // [xsp+C0h] [xbp+90h] BYREF __int64 v19[2]; // [xsp+C8h] [xbp+98h] BYREF void *v20; // [xsp+D8h] [xbp+A8h] __int64 v21; // [xsp+E0h] [xbp+B0h] BYREF __int64 v22; // [xsp+E8h] [xbp+B8h] void *v23; // [xsp+F0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 280.0, 1u, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Time Event Trigger", 0x12u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v21); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v21, v7, v8, v9, v10, v11); if ( (v21 & 1) != 0 ) operator delete(v23); v19[0] = 0; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "Help", 4u); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init( &v21, "Activates objects using TargetID when a specific TargetTime is reached for a timer given by ItemID.", 0x7Bu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v19, (char *)&v21, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); if ( (v19[0] & 1) != 0 ) operator delete(v20); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize(&v15, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, *(float *)&v15 * 0.5, (float)(*((float *)&v15 + 1) * 0.5) + 85.0); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "TimerID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -85.0, -15.0); cocos2d::CCPoint::operator+(&v18, v16); IDNameInput::create(this, (char *)this + 544, 4, 80, &v21, &v18, 6, 0, 0.8, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "TargetID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 85.0, -15.0); cocos2d::CCPoint::operator+(&v18, v16); LOBYTE(v14) = 0; IDNameInput::create(this, (char *)this + 544, 1, 51, &v21, &v18, 6, 0, 0.8, 0, v14); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "TargetTime", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -85.0, -60.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 473, (char *)&v21, (__int64)&v18, 0, 1, 10, 0, 0.8, 0.0, 100.0, 0, 0, 0, 2, 0); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Multi\nActivate", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 85.0, -60.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1DBu, &v21, (const cocos2d::CCPoint *)&v18, 0, 0, 0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source