// // SetupTimerTriggerPopup::init from 0xa7b5a8 to 0xa7c094 (2796 bytes) // // 2 xrefs: // > SetupTimerTriggerPopup::create @ 0xa7c260 // > @ 0x65f40 // // 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 SetupTimerTriggerPopup::init(SetupTimerTriggerPopup *a1, TimerTriggerGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w27 cocos2d::CCPoint *p_m_textOffset; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 cocos2d::CCPoint *v12; // x0 cocos2d::CCPoint *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 cocos2d::CCPoint *v18; // x0 float v19; // s3 float v20; // s4 cocos2d::CCPoint *v21; // x0 cocos2d::CCPoint *v22; // x0 float v23; // s3 float v24; // s4 cocos2d::CCPoint *v25; // x0 float v26; // s3 float v27; // s4 cocos2d::CCPoint *v28; // x0 float v29; // s3 float v30; // s4 cocos2d::CCPoint *v31; // x0 cocos2d::CCPoint *v32; // x0 cocos2d::CCPoint *v33; // x0 cocos2d::CCPoint *v34; // x19 unsigned int *p_m_caption; // x1 int m_data; // w2 unsigned int *v37; // x1 int v38; // w2 unsigned int *v39; // x1 int v40; // w2 unsigned int *v41; // x1 int v42; // w2 unsigned int *v43; // x1 int v44; // w2 unsigned int *v45; // x1 int v46; // w2 unsigned int *v47; // x1 int v48; // w2 unsigned int *v49; // x1 int v50; // w2 unsigned int *v51; // x1 int v52; // w2 unsigned int *v53; // x1 int v54; // w2 unsigned int *v55; // x1 int v56; // w2 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x21 int v60; // w0 _QWORD v61[2]; // [xsp+30h] [xbp+0h] BYREF float v62; // [xsp+C0h] [xbp+90h] float v63; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v64; // [xsp+C8h] [xbp+98h] BYREF cocos2d::CCPoint v65; // [xsp+D0h] [xbp+A0h] BYREF cocos2d::CCPoint v66; // [xsp+D8h] [xbp+A8h] BYREF ButtonSprite *v67; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v68; // 0:s0.4,4:s1.4 cocos2d::CCPoint v69; // 0:s0.4,4:s1.4 cocos2d::CCPoint v70; // 0:s0.4,4:s1.4 cocos2d::CCPoint v71; // 0:s0.4,4:s1.4 cocos2d::CCPoint v72; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 400.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v61 + 176, "Time Trigger"); SetupTriggerPopup::addTitle((__int64)a1); p_m_textOffset = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_caption = (unsigned int *)&v67[-1].m_caption; do m_data = __ldaxr(p_m_caption); while ( __stlxr(m_data - 1, p_m_caption) ); } else { m_data = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = m_data - 1; } if ( m_data <= 0 ) operator delete(p_m_textOffset); } sub_D153B8((unsigned int)v61 + 176, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, &v67, v7, v8, v9, v10, v11); v12 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v37 = (unsigned int *)&v67[-1].m_caption; do v38 = __ldaxr(v37); while ( __stlxr(v38 - 1, v37) ); } else { v38 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v38 - 1; } if ( v38 <= 0 ) operator delete(v12); } sub_D153B8((int)&v66, "Help"); sub_D153B8( (int)&v67, "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, 1.0); v13 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v45 = (unsigned int *)&v67[-1].m_caption; do v46 = __ldaxr(v45); while ( __stlxr(v46 - 1, v45) ); } else { v46 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v46 - 1; } if ( v46 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v66 - 24LL); if ( (__int64 *)(*(_QWORD *)&v66 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v41 = (unsigned int *)(*(_QWORD *)&v66 - 8LL); do v42 = __ldaxr(v41); while ( __stlxr(v42 - 1, v41) ); } else { v42 = *(_DWORD *)(*(_QWORD *)&v66 - 8LL); *(_DWORD *)(*(_QWORD *)&v66 - 8LL) = v42 - 1; } if ( v42 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v64, v62 * 0.5, (float)(v63 * 0.5) + 85.0); sub_D153B8((int)&v67, "StartTime"); cocos2d::CCPoint::CCPoint(&v65, -85.0, 0.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); v68.y = 0.0; v68.x = 0.8; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1D3u, v68, 100.0, v16, v17, (std::string)&v67, &v66, (InputValueType)0, Float, 10, 0, 0, 0, 0, 2, 0); v18 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v49 = (unsigned int *)&v67[-1].m_caption; do v50 = __ldaxr(v49); while ( __stlxr(v50 - 1, v49) ); } else { v50 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v50 - 1; } if ( v50 <= 0 ) operator delete(v18); } sub_D153B8((int)&v67, "StopTime"); cocos2d::CCPoint::CCPoint(&v65, 85.0, 0.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); v69.x = 0.8; v69.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1D9u, v69, 100.0, v19, v20, (std::string)&v67, &v66, (InputValueType)0, Float, 10, 0, 0, 0, 0, 2, 0); v21 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v39 = (unsigned int *)&v67[-1].m_caption; do v40 = __ldaxr(v39); while ( __stlxr(v40 - 1, v39) ); } else { v40 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v40 - 1; } if ( v40 <= 0 ) operator delete(v21); } sub_D153B8((int)&v67, &byte_F288A0); cocos2d::CCPoint::CCPoint(&v65, 175.0, 0.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); SetupTriggerPopup::createToggleValueControl(a1, 474, 1.0, (__int64)&v67, &v66, 0, 0, 0); v22 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v53 = (unsigned int *)&v67[-1].m_caption; do v54 = __ldaxr(v53); while ( __stlxr(v54 - 1, v53) ); } else { v54 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v54 - 1; } if ( v54 <= 0 ) operator delete(v22); } sub_D153B8((int)&v67, "ItemID"); cocos2d::CCPoint::CCPoint(&v65, -85.0, -75.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); v70.x = 0.8; v70.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x50u, v70, 9999.0, v23, v24, (std::string)&v67, &v66, Float, Uint, 6, 1u, 0, 0, 0, 2, 0); v25 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v47 = (unsigned int *)&v67[-1].m_caption; do v48 = __ldaxr(v47); while ( __stlxr(v48 - 1, v47) ); } else { v48 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v48 - 1; } if ( v48 <= 0 ) operator delete(v25); } sub_D153B8((int)&v67, "TimeMod"); cocos2d::CCPoint::CCPoint(&v65, 85.0, -60.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); v71.x = 0.8; v71.y = 0.01; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1D6u, v71, 2.0, v26, v27, (std::string)&v67, &v66, (InputValueType)0, Float, 10, 0, 0, 0, 0, 2, 0); v28 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)&v67[-1].m_caption; do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v58 - 1; } if ( v58 <= 0 ) operator delete(v28); } sub_D153B8((int)&v67, "TargetID"); cocos2d::CCPoint::CCPoint(&v65, -85.0, -135.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); v72.x = 0.8; v72.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v72, 9999.0, v29, v30, (std::string)&v67, &v66, Float, Uint, 6, 1u, 0, 0, 0, 2, 0); v31 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v43 = (unsigned int *)&v67[-1].m_caption; do v44 = __ldaxr(v43); while ( __stlxr(v44 - 1, v43) ); } else { v44 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v44 - 1; } if ( v44 <= 0 ) operator delete(v31); } sub_D153B8((int)&v67, "Ignore\nTimeWarp"); cocos2d::CCPoint::CCPoint(&v65, 10.0, -128.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); SetupTriggerPopup::createToggleValueControl(a1, 469, 1.0, (__int64)&v67, &v66, 0, 0, 0); v32 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)&v67[-1].m_caption; do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v56 - 1; } if ( v56 <= 0 ) operator delete(v32); } sub_D153B8((int)&v67, "Start\nPaused"); cocos2d::CCPoint::CCPoint(&v65, 120.0, -128.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); SetupTriggerPopup::createToggleValueControl(a1, 471, 1.0, (__int64)&v67, &v66, 0, 0, 0); v33 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v51 = (unsigned int *)&v67[-1].m_caption; do v52 = __ldaxr(v51); while ( __stlxr(v52 - 1, v51) ); } else { v52 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v52 - 1; } if ( v52 <= 0 ) operator delete(v33); } sub_D153B8((int)&v67, "Dont\nOverride"); cocos2d::CCPoint::CCPoint(&v65, 120.0, -163.0); cocos2d::CCPoint::operator+(&v66, &v64, &v65); SetupTriggerPopup::createToggleValueControl(a1, 468, 1.0, (__int64)&v67, &v66, 0, 0, 0); v34 = &v67[-1].m_textOffset; if ( &v67[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)&v67[-1].m_caption; do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = (int)v67[-1].m_caption.m_data.m_data; LODWORD(v67[-1].m_caption.m_data.m_data) = v60 - 1; } if ( v60 <= 0 ) operator delete(v34); } SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source