// // SetupTimerControlTriggerPopup::init from 0x140462e10 to 0x1404631ef (991 bytes) // // 3 xrefs: // > SetupTimerControlTriggerPopup::create @ 0x140462dce // > @ 0x1406daec8 // > @ 0x1406daed4 // // 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 // // Hidden C++ exception states: #wind=3 bool SetupTimerControlTriggerPopup::init( SetupTimerControlTriggerPopup *a1, TimerTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al double v5; // xmm0_8 __int64 v6; // rcx cocos2d::CCDirector *v7; // rax int v8; // ebx int v9; // r8d int v10; // r9d int v11; // r8d int v12; // r9d char v13; // [rsp+80h] [rbp-21h] float v14; // [rsp+88h] [rbp-19h] _QWORD v15[2]; // [rsp+90h] [rbp-11h] BYREF __int128 *v16; // [rsp+A0h] [rbp-1h] __int128 v17; // [rsp+A8h] [rbp+7h] BYREF __int64 v18; // [rsp+B8h] [rbp+17h] __int64 v19; // [rsp+C0h] [rbp+1Fh] __int128 v20; // [rsp+C8h] [rbp+27h] BYREF __int64 v21; // [rsp+D8h] [rbp+37h] __int64 v22; // [rsp+E0h] [rbp+3Fh] char v23; // [rsp+120h] [rbp+7Fh] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 300.0, 240.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v17 = 0; v18 = 0; v19 = 15; *(_QWORD *)&v17 = sub_14003AA10(0x20u); v18 = 20; v19 = 31; strcpy((char *)v17, "Time Control Trigger"); SetupTriggerPopup::addTitle(a1, &v17); v17 = 0; v18 = 2; v19 = 15; strcpy((char *)&v17, "OK"); SetupTriggerPopup::addCloseButton(a1, &v17); v15[0] = &v17; v17 = 0; v18 = 0; v19 = 15; *(_QWORD *)&v17 = sub_14003AA10(0x30u); v18 = 40; v19 = 47; strcpy((char *)v17, "Starts or stops a timer given by ItemID."); v20 = 0; v21 = 4; v22 = 15; strcpy((char *)&v20, "Help"); v5 = SetupTriggerPopup::addHelpButton(a1, &v20, &v17); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7); cocos2d::CCPoint::CCPoint(*(float *)&v5, v14 * 0.5); v15[1] = &v17; v17 = 0; v18 = 6; v19 = 15; strcpy((char *)&v17, "ItemID"); cocos2d::CCPoint::CCPoint(0.0, 0.0); cocos2d::CCPoint::operator+(&v23, v15); v13 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 80, (unsigned int)&v17, (unsigned int)v15, 1061997773, 1, 3, 6, 1, 0, 1120403456, 0, 0, 0, 2, v13); v8 = (int)a1->getValue(a1, 472); v16 = &v17; v17 = 0; v18 = 5; v19 = 15; strcpy((char *)&v17, "Start"); cocos2d::CCPoint::CCPoint(0.0, -60.0); cocos2d::CCPoint::operator+(&v23, v15); LOBYTE(v9) = v8 == 0; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 0, v9, v10, (__int64)&v17, (__int64)v15, 1, 0, 0); v16 = &v20; v20 = 0; v21 = 4; v22 = 15; strcpy((char *)&v20, "Stop"); cocos2d::CCPoint::CCPoint(0.0, 60.0); cocos2d::CCPoint::operator+(&v23, v15); LOBYTE(v11) = v8 == 1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, v11, v12, (__int64)&v20, (__int64)v15, 1, 0, 0); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source