// // SetupAreaTransformTriggerPopup::init from 0xa0c6fc to 0xa0d1c4 (2760 bytes) // // 2 xrefs: // > SetupAreaTransformTriggerPopup::create @ 0xa0d380 // > @ 0x37380 // // 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 SetupAreaTransformTriggerPopup::init( SetupAreaTransformTriggerPopup *a1, EnterEffectObject *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 float v22; // s3 float v23; // s4 cocos2d::CCPoint *v24; // x0 float v25; // s3 float v26; // s4 cocos2d::CCPoint *v27; // x0 float v28; // s3 float v29; // s4 cocos2d::CCPoint *v30; // x0 float v31; // s3 float v32; // s4 cocos2d::CCPoint *v33; // x0 float v34; // s3 float v35; // s4 cocos2d::CCPoint *v36; // x0 float v37; // s3 float v38; // s4 cocos2d::CCPoint *v39; // x20 unsigned int *p_m_caption; // x1 int m_data; // w2 unsigned int *v42; // x1 int v43; // w2 unsigned int *v44; // x1 int v45; // w2 unsigned int *v46; // x1 int v47; // w2 unsigned int *v48; // x1 int v49; // w2 unsigned int *v50; // x1 int v51; // w2 unsigned int *v52; // x1 int v53; // w2 unsigned int *v54; // x1 int v55; // w2 unsigned int *v56; // x1 int v57; // w2 unsigned int *v58; // x1 int v59; // w2 unsigned int *v60; // x1 int v61; // w2 unsigned int *v62; // x22 int v63; // w0 _QWORD v64[2]; // [xsp+30h] [xbp+0h] BYREF float v65; // [xsp+D0h] [xbp+A0h] float v66; // [xsp+D4h] [xbp+A4h] cocos2d::CCPoint v67; // [xsp+D8h] [xbp+A8h] BYREF cocos2d::CCPoint v68; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v69; // [xsp+E8h] [xbp+B8h] BYREF ButtonSprite *v70; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCPoint v71; // 0:s0.4,4:s1.4 cocos2d::CCPoint v72; // 0:s0.4,4:s1.4 cocos2d::CCPoint v73; // 0:s0.4,4:s1.4 cocos2d::CCPoint v74; // 0:s0.4,4:s1.4 cocos2d::CCPoint v75; // 0:s0.4,4:s1.4 cocos2d::CCPoint v76; // 0:s0.4,4:s1.4 cocos2d::CCPoint v77; // 0:s0.4,4:s1.4 cocos2d::CCPoint v78; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( v4 ) { a1->determineStartValues(a1); sub_D153B8((unsigned int)v64 + 192, "Area Transform Trigger"); SetupTriggerPopup::addTitle((__int64)a1); p_m_textOffset = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_caption = (unsigned int *)&v70[-1].m_caption; do m_data = __ldaxr(p_m_caption); while ( __stlxr(m_data - 1, p_m_caption) ); } else { m_data = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = m_data - 1; } if ( m_data <= 0 ) operator delete(p_m_textOffset); } sub_D153B8((unsigned int)v64 + 192, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, &v70, v7, v8, v9, v10, v11); v12 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v42 = (unsigned int *)&v70[-1].m_caption; do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); } else { v43 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v43 - 1; } if ( v43 <= 0 ) operator delete(v12); } sub_D153B8((int)&v69, "Help"); sub_D153B8( (int)&v70, "Scales objects using Target Group ID within an area around Center Group ID. The area can be specif" "ied by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area scale depending on how close they are to the center.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v46 = (unsigned int *)&v70[-1].m_caption; do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v47 - 1; } if ( v47 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v69 - 24LL); if ( (__int64 *)(*(_QWORD *)&v69 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)(*(_QWORD *)&v69 - 8LL); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *(_DWORD *)(*(_QWORD *)&v69 - 8LL); *(_DWORD *)(*(_QWORD *)&v69 - 8LL) = v51 - 1; } if ( v51 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v67, v65 * 0.5, (float)(v66 * 0.5) + 95.0); sub_D153B8((int)&v70, "Length"); cocos2d::CCPoint::CCPoint(&v68, -75.0, 0.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v71.y = 0.0; v71.x = 0.65; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDEu, v71, 100.0, v16, v17, (std::string)&v70, &v69, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v18 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v44 = (unsigned int *)&v70[-1].m_caption; do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v45 - 1; } if ( v45 <= 0 ) operator delete(v18); } sub_D153B8((int)&v70, "+-"); cocos2d::CCPoint::CCPoint(&v68, 75.0, 0.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v72.x = 0.65; v72.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDFu, v72, 100.0, v19, v20, (std::string)&v70, &v69, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v21 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v56 = (unsigned int *)&v70[-1].m_caption; do v57 = __ldaxr(v56); while ( __stlxr(v57 - 1, v56) ); } else { v57 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v57 - 1; } if ( v57 <= 0 ) operator delete(v21); } sub_D153B8((int)&v70, "Offset"); cocos2d::CCPoint::CCPoint(&v68, -75.0, -25.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v73.x = 0.65; v73.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDCu, v73, 100.0, v22, v23, (std::string)&v70, &v69, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v24 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v52 = (unsigned int *)&v70[-1].m_caption; do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v53 - 1; } if ( v53 <= 0 ) operator delete(v24); } sub_D153B8((int)&v70, "+-"); cocos2d::CCPoint::CCPoint(&v68, 75.0, -25.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v74.x = 0.65; v74.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDDu, v74, 100.0, v25, v26, (std::string)&v70, &v69, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v27 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v60 = (unsigned int *)&v70[-1].m_caption; do v61 = __ldaxr(v60); while ( __stlxr(v61 - 1, v60) ); } else { v61 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v61 - 1; } if ( v61 <= 0 ) operator delete(v27); } sub_D153B8((int)&v70, "ScaleX"); cocos2d::CCPoint::CCPoint(&v68, -75.0, -50.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v75.x = 0.65; v75.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xE9u, v75, 4.0, v28, v29, (std::string)&v70, &v69, (InputValueType)0, Float, 6, 0, 0, 0, 1, 2, 0); v30 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v48 = (unsigned int *)&v70[-1].m_caption; do v49 = __ldaxr(v48); while ( __stlxr(v49 - 1, v48) ); } else { v49 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v49 - 1; } if ( v49 <= 0 ) operator delete(v30); } sub_D153B8((int)&v70, "+-"); cocos2d::CCPoint::CCPoint(&v68, 75.0, -50.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v76.x = 0.65; v76.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xEAu, v76, 4.0, v31, v32, (std::string)&v70, &v69, (InputValueType)0, Float, 6, 0, 0, 0, 1, 2, 0); v33 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v58 = (unsigned int *)&v70[-1].m_caption; do v59 = __ldaxr(v58); while ( __stlxr(v59 - 1, v58) ); } else { v59 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v59 - 1; } if ( v59 <= 0 ) operator delete(v33); } sub_D153B8((int)&v70, "ScaleY"); cocos2d::CCPoint::CCPoint(&v68, -75.0, -75.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v77.x = 0.65; v77.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xEBu, v77, 4.0, v34, v35, (std::string)&v70, &v69, (InputValueType)0, Float, 6, 0, 0, 0, 1, 2, 0); v36 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v54 = (unsigned int *)&v70[-1].m_caption; do v55 = __ldaxr(v54); while ( __stlxr(v55 - 1, v54) ); } else { v55 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v55 - 1; } if ( v55 <= 0 ) operator delete(v36); } sub_D153B8((int)&v70, "+-"); cocos2d::CCPoint::CCPoint(&v68, 75.0, -75.0); cocos2d::CCPoint::operator+(&v69, &v67, &v68); v78.x = 0.65; v78.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xECu, v78, 4.0, v37, v38, (std::string)&v70, &v69, (InputValueType)0, Float, 6, 0, 0, 0, 1, 2, 0); v39 = &v70[-1].m_textOffset; if ( &v70[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 ) { if ( &pthread_create ) { v62 = (unsigned int *)&v70[-1].m_caption; do v63 = __ldaxr(v62); while ( __stlxr(v63 - 1, v62) ); } else { v63 = (int)v70[-1].m_caption.m_data.m_data; LODWORD(v70[-1].m_caption.m_data.m_data) = v63 - 1; } if ( v63 <= 0 ) operator delete(v39); } SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3008); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source