// // SetupTimerControlTriggerPopup::init from 0x1003a1f80 to 0x1003a2335 (949 bytes) // // 1 xrefs: // > SetupTimerControlTriggerPopup::create @ 0x1003a1f3b // // 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 __fastcall SetupTimerControlTriggerPopup::init( SetupTimerControlTriggerPopup *a1, TimerTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r14 int v5; // r12d char v6; // [rsp+40h] [rbp-F0h] BYREF char v7[15]; // [rsp+41h] [rbp-EFh] BYREF void *v8; // [rsp+50h] [rbp-E0h] char v9; // [rsp+58h] [rbp-D8h] BYREF char v10[15]; // [rsp+59h] [rbp-D7h] BYREF void *v11; // [rsp+68h] [rbp-C8h] __int128 v12; // [rsp+70h] [rbp-C0h] BYREF void *v13; // [rsp+80h] [rbp-B0h] __int128 v14; // [rsp+88h] [rbp-A8h] BYREF void *v15; // [rsp+98h] [rbp-98h] __int128 v16; // [rsp+A0h] [rbp-90h] BYREF void *v17; // [rsp+B0h] [rbp-80h] float v18[2]; // [rsp+B8h] [rbp-78h] BYREF void *v19[3]; // [rsp+C0h] [rbp-70h] BYREF char v20; // [rsp+D8h] [rbp-58h] BYREF char v21[15]; // [rsp+D9h] [rbp-57h] BYREF void *v22; // [rsp+E8h] [rbp-48h] unsigned __int64 v23; // [rsp+F4h] [rbp-3Ch] BYREF float v24; // [rsp+FCh] [rbp-34h] double v25; // [rsp+100h] [rbp-30h] BYREF unsigned __int64 v26[5]; // [rsp+108h] [rbp-28h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 300.0, 240.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); strcpy((char *)v19, "(Time Control Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v19); if ( ((__int64)v19[0] & 1) != 0 ) operator delete(v19[2]); v6 = 4; strcpy(v7, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v6); if ( (v6 & 1) != 0 ) operator delete(v8); v9 = 8; strcpy(v10, "Help"); v13 = operator new(0x30u); *(_QWORD *)&v12 = 49; *((_QWORD *)&v12 + 1) = 40; strcpy((char *)v13, "Starts or stops a timer given by ItemID."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v9, &v12, (__m128)0x3F800000u); if ( (v12 & 1) != 0 ) operator delete(v13); if ( (v9 & 1) != 0 ) operator delete(v11); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v18); sub_10028CBE0((float *)&v23, v18[0] * 0.5, 0.5 * v18[1]); v20 = 12; strcpy(v21, "ItemID"); sub_10028CBE0((float *)v26, 0.0, 50.0); sub_10028CCE0(&v25, &v23, v26); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 80, (__int64)&v20, (float *)&v25, 1, Uint, 0.80000001, 0.0, 100.0, 6, 1, 0, 0, 0, 2, 0); if ( (v20 & 1) != 0 ) operator delete(v22); v24 = ((float (__fastcall *)(SetupTimerControlTriggerPopup *, __int64))a1->getValue)(a1, 472); strcpy((char *)&v14, "\nStart"); sub_10028CBE0((float *)v26, -60.0, -20.0); sub_10028CCE0(&v25, &v23, v26); v5 = (int)v24; SetupTriggerPopup::createCustomToggleValueControl((__int64)a1, 0, (int)v24 == 0, 1, &v14, (__int64)&v25, 1, 0, 0); if ( (v14 & 1) != 0 ) operator delete(v15); LOBYTE(v16) = 8; strcpy((char *)&v16 + 1, "Stop"); sub_10028CBE0((float *)v26, 60.0, -20.0); sub_10028CCE0(&v25, &v23, v26); SetupTriggerPopup::createCustomToggleValueControl((__int64)a1, 1, v5 == 1, 1, &v16, (__int64)&v25, 1, 0, 0); if ( (v16 & 1) != 0 ) operator delete(v17); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source