// // SetupTimerTriggerPopup::init from 0x1003a0cb0 to 0x1003a1474 (1988 bytes) // // 1 xrefs: // > SetupTimerTriggerPopup::create @ 0x1003a0c6e // // 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 SetupTimerTriggerPopup::init( SetupTimerTriggerPopup *a1, TimerTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 __int128 v5; // [rsp+40h] [rbp-170h] BYREF void *v6; // [rsp+50h] [rbp-160h] char v7; // [rsp+58h] [rbp-158h] BYREF char v8[15]; // [rsp+59h] [rbp-157h] BYREF void *v9; // [rsp+68h] [rbp-148h] char v10; // [rsp+70h] [rbp-140h] BYREF char v11[15]; // [rsp+71h] [rbp-13Fh] BYREF void *v12; // [rsp+80h] [rbp-130h] __int128 v13; // [rsp+88h] [rbp-128h] BYREF void *v14; // [rsp+98h] [rbp-118h] char v15; // [rsp+A0h] [rbp-110h] BYREF _BYTE v16[23]; // [rsp+A1h] [rbp-10Fh] BYREF char v17; // [rsp+B8h] [rbp-F8h] BYREF _BYTE v18[23]; // [rsp+B9h] [rbp-F7h] BYREF char v19; // [rsp+D0h] [rbp-E0h] BYREF _BYTE v20[23]; // [rsp+D1h] [rbp-DFh] BYREF float v21[2]; // [rsp+E8h] [rbp-C8h] BYREF char v22; // [rsp+F0h] [rbp-C0h] BYREF _BYTE v23[23]; // [rsp+F1h] [rbp-BFh] BYREF char v24; // [rsp+108h] [rbp-A8h] BYREF char v25[15]; // [rsp+109h] [rbp-A7h] BYREF void *v26; // [rsp+118h] [rbp-98h] char v27; // [rsp+120h] [rbp-90h] BYREF char v28[15]; // [rsp+121h] [rbp-8Fh] BYREF void *v29; // [rsp+130h] [rbp-80h] char v30; // [rsp+138h] [rbp-78h] BYREF _BYTE v31[23]; // [rsp+139h] [rbp-77h] BYREF __int128 v32; // [rsp+150h] [rbp-60h] BYREF void *v33; // [rsp+160h] [rbp-50h] __int128 v34; // [rsp+168h] [rbp-48h] BYREF void *v35; // [rsp+178h] [rbp-38h] unsigned __int64 v36; // [rsp+180h] [rbp-30h] BYREF double v37; // [rsp+188h] [rbp-28h] BYREF unsigned __int64 v38[4]; // [rsp+190h] [rbp-20h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 400.0, 280.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); v22 = 24; strcpy(v23, "Time Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v22); if ( (v22 & 1) != 0 ) operator delete(*(void **)&v23[15]); v7 = 4; strcpy(v8, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v7); if ( (v7 & 1) != 0 ) operator delete(v9); v10 = 8; strcpy(v11, "Help"); v14 = operator new(0x120u); *(_QWORD *)&v13 = 289; *((_QWORD *)&v13 + 1) = 281; strcpy( (char *)v14, "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."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v10, &v13, (__m128)0x3F800000u); if ( (v13 & 1) != 0 ) operator delete(v14); if ( (v10 & 1) != 0 ) operator delete(v12); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v21); sub_10028CBE0((float *)&v36, v21[0] * 0.5, (float)(0.5 * v21[1]) + 85.0); v15 = 18; strcpy(v16, "StartTime"); sub_10028CBE0((float *)v38, -85.0, 0.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 467, (__int64)&v15, (float *)&v37, 0, Float, 0.80000001, 0.0, 100.0, 10, 0, 0, 0, 0, 2, 0); if ( (v15 & 1) != 0 ) operator delete(*(void **)&v16[15]); v17 = 16; strcpy(v18, "StopTime"); sub_10028CBE0((float *)v38, 85.0, 0.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 473, (__int64)&v17, (float *)&v37, 0, Float, 0.80000001, 0.0, 100.0, 10, 0, 0, 0, 0, 2, 0); if ( (v17 & 1) != 0 ) operator delete(*(void **)&v18[15]); LOWORD(v5) = 0; sub_10028CBE0((float *)v38, 175.0, 0.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createToggleValueControl((int)a1, 474, &v5, 1.0, (__int64)&v37, 0, 0, 0); if ( (v5 & 1) != 0 ) operator delete(v6); v24 = 12; strcpy(v25, "ItemID"); sub_10028CBE0((float *)v38, -85.0, -75.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 80, (__int64)&v24, (float *)&v37, 1, Uint, 0.80000001, 0.0, 9999.0, 6, 1, 0, 0, 0, 2, 0); if ( (v24 & 1) != 0 ) operator delete(v26); v27 = 14; strcpy(v28, "TimeMod"); sub_10028CBE0((float *)v38, 85.0, -60.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 470, (__int64)&v27, (float *)&v37, 0, Float, 0.80000001, 0.0099999998, 2.0, 10, 0, 0, 0, 0, 2, 0); if ( (v27 & 1) != 0 ) operator delete(v29); v19 = 16; strcpy(v20, "TargetID"); sub_10028CBE0((float *)v38, -85.0, -135.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 51, (__int64)&v19, (float *)&v37, 1, Uint, 0.80000001, 0.0, 9999.0, 6, 1, 0, 0, 0, 2, 0); if ( (v19 & 1) != 0 ) operator delete(*(void **)&v20[15]); v30 = 30; strcpy(v31, "Ignore\nTimeWarp"); sub_10028CBE0((float *)v38, 10.0, -128.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createToggleValueControl((int)a1, 469, (__int128 *)&v30, 1.0, (__int64)&v37, 0, 0, 0); if ( (v30 & 1) != 0 ) operator delete(*(void **)&v31[15]); LOBYTE(v32) = 24; strcpy((char *)&v32 + 1, "Start\nPaused"); sub_10028CBE0((float *)v38, 120.0, -128.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createToggleValueControl((int)a1, 471, &v32, 1.0, (__int64)&v37, 0, 0, 0); if ( (v32 & 1) != 0 ) operator delete(v33); LOBYTE(v34) = 26; strcpy((char *)&v34 + 1, "Dont\nOverride"); sub_10028CBE0((float *)v38, 120.0, -163.0); sub_10028CCE0(&v37, &v36, v38); SetupTriggerPopup::createToggleValueControl((int)a1, 468, &v34, 1.0, (__int64)&v37, 0, 0, 0); if ( (v34 & 1) != 0 ) operator delete(v35); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source