// // SetupSFXPopup::init from 0xa40234 to 0xa41748 (5396 bytes) // // 2 xrefs: // > SetupSFXPopup::create @ 0xa41944 // > @ 0x92868 // // 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 SetupSFXPopup::init(SetupSFXPopup *a1, SFXTriggerGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w27 char *v6; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 char *v12; // x0 char *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 char *v18; // x0 float v19; // s3 float v20; // s4 char *v21; // x0 float v22; // s3 float v23; // s4 char *v24; // x0 char *v25; // x0 char *v26; // x0 char *v27; // x0 char *v28; // x0 long double v29; // q0 char *v30; // x0 float v31; // s3 float v32; // s4 char *v33; // x0 char *v34; // x0 float v35; // s3 float v36; // s4 char *v37; // x0 char *v38; // x0 char *v39; // x0 float v40; // s3 float v41; // s4 char *v42; // x0 long double v43; // q0 char *v44; // x0 long double v45; // q0 char *v46; // x0 float v47; // s3 float v48; // s4 char *v49; // x0 float v50; // s3 float v51; // s4 char *v52; // x0 float v53; // s3 float v54; // s4 char *v55; // x0 char *v56; // x0 cocos2d::CCSprite *v57; // x23 CCMenuItemSpriteExtra *v58; // x23 cocos2d::CCMenu *m_buttonMenu; // x25 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 float v61; // s0 unsigned int *v62; // x1 int v63; // w2 unsigned int *v64; // x1 int v65; // w2 unsigned int *v66; // x1 int v67; // w2 unsigned int *v68; // x1 int v69; // w2 unsigned int *v70; // x1 int v71; // w2 unsigned int *v72; // x1 int v73; // w2 unsigned int *v74; // x1 int v75; // w2 unsigned int *v76; // x1 int v77; // w2 unsigned int *v78; // x1 int v79; // w2 unsigned int *v80; // x1 int v81; // w2 unsigned int *v82; // x1 int v83; // w2 unsigned int *v84; // x1 int v85; // w2 unsigned int *v86; // x1 int v87; // w2 unsigned int *v88; // x1 int v89; // w2 unsigned int *v90; // x1 int v91; // w2 unsigned int *v92; // x1 int v93; // w2 unsigned int *v94; // x1 int v95; // w2 unsigned int *v96; // x1 int v97; // w2 unsigned int *v98; // x1 int v99; // w2 unsigned int *v100; // x1 int v101; // w2 unsigned int *v102; // x1 int v103; // w2 unsigned int *v104; // x1 int v105; // w2 unsigned int *v106; // x1 int v107; // w2 unsigned int *v108; // x1 int v109; // w2 _QWORD v110[23]; // [xsp+30h] [xbp+0h] BYREF char v111; // [xsp+E8h] [xbp+B8h] BYREF float v112; // [xsp+F8h] [xbp+C8h] float v113; // [xsp+FCh] [xbp+CCh] cocos2d::CCPoint v114; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCPoint v115; // [xsp+108h] [xbp+D8h] BYREF cocos2d::CCPoint v116; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCPoint v117; // [xsp+118h] [xbp+E8h] BYREF char *v118; // [xsp+120h] [xbp+F0h] BYREF cocos2d::CCPoint v119; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v120; // 0:x2.16 cocos2d::CCPoint v121; // 0:s0.4,4:s1.4 cocos2d::CCPoint v122; // 0:s0.4,4:s1.4 cocos2d::CCPoint v123; // 0:s0.4,4:s1.4 cocos2d::CCPoint v124; // 0:s0.4,4:s1.4 cocos2d::CCPoint v125; // 0:s0.4,4:s1.4 cocos2d::CCPoint v126; // 0:s0.4,4:s1.4 cocos2d::CCPoint v127; // 0:s0.4,4:s1.4 cocos2d::CCPoint v128; // 0:s0.4,4:s1.4 cocos2d::CCPoint v129; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v110 + 240, "SFX Trigger"); SetupTriggerPopup::addTitle((__int64)a1); v6 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v62 = (unsigned int *)(v118 - 8); do v63 = __ldaxr(v62); while ( __stlxr(v63 - 1, v62) ); } else { v63 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v63 - 1; } if ( v63 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v110 + 240, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v118, v7, v8, v9, v10, v11); v12 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v64 = (unsigned int *)(v118 - 8); do v65 = __ldaxr(v64); while ( __stlxr(v65 - 1, v64) ); } else { v65 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v65 - 1; } if ( v65 <= 0 ) operator delete(v12); } sub_D153B8((int)&v117, "Help"); sub_D153B8( (unsigned int)v110 + 240, "Lets you start a specified sound effect (browser top right).\n" "Unique ID is used to refer to a specific sound effect in the level while SFXGroup refers to multip" "le.\n" "Start, End, FadeIn, and FadeOut are in milliseconds.\n" "Ignore Volume Test does not ignore sound effects regardless of whether any volume setting is 0.\n" "Page 4 lets you change the volume depending on proximity."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v72 = (unsigned int *)(v118 - 8); do v73 = __ldaxr(v72); while ( __stlxr(v73 - 1, v72) ); } else { v73 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v73 - 1; } if ( v73 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v117 - 24LL); if ( (__int64 *)(*(_QWORD *)&v117 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v80 = (unsigned int *)(*(_QWORD *)&v117 - 8LL); do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(*(_QWORD *)&v117 - 8LL); *(_DWORD *)(*(_QWORD *)&v117 - 8LL) = v81 - 1; } if ( v81 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); a1->m_disableSliderDelegate = (unsigned __int8)&dword_0 + 1; v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v114, v112 * 0.5, v113 * 0.5); cocos2d::CCPoint::CCPoint(&v115, v112 * 0.5, (float)(v113 * 0.5) + 10.0); sub_D153B8((unsigned int)v110 + 240, "Speed:"); cocos2d::CCPoint::CCPoint(&v116, -91.0, -0.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v121.x = 0.65; v121.y = -12.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x194u, v121, 12.0, v16, v17, (std::string)&v118, &v117, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v18 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v68 = (unsigned int *)(v118 - 8); do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v69 - 1; } if ( v69 <= 0 ) operator delete(v18); } sub_D153B8((unsigned int)v110 + 240, "Pitch:"); cocos2d::CCPoint::CCPoint(&v116, 91.0, -0.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v122.x = 0.65; v122.y = -12.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x195u, v122, 12.0, v19, v20, (std::string)&v118, &v117, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v21 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v84 = (unsigned int *)(v118 - 8); do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v85 - 1; } if ( v85 <= 0 ) operator delete(v21); } sub_D153B8((unsigned int)v110 + 240, "Volume:"); cocos2d::CCPoint::CCPoint(&v116, -91.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v123.x = 0.65; v123.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x196u, v123, 2.0, v22, v23, (std::string)&v118, &v117, (InputValueType)0, Float, 6, 0, 0, 0, 1, 2, 0); v24 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v76 = (unsigned int *)(v118 - 8); do v77 = __ldaxr(v76); while ( __stlxr(v77 - 1, v76) ); } else { v77 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v77 - 1; } if ( v77 <= 0 ) operator delete(v24); } SetupTriggerPopup::toggleLimitValue(a1, 404, 1); SetupTriggerPopup::toggleLimitValue(a1, 405, 1); SetupTriggerPopup::toggleLimitValue(a1, 406, 1); sub_D153B8((unsigned int)v110 + 240, "Reverb"); cocos2d::CCPoint::CCPoint(&v116, 21.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); SetupTriggerPopup::createToggleValueControl(a1, 407, 1.0, (__int64)&v118, &v117, 0, 0, 0); v25 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v88 = (unsigned int *)(v118 - 8); do v89 = __ldaxr(v88); while ( __stlxr(v89 - 1, v88) ); } else { v89 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v89 - 1; } if ( v89 <= 0 ) operator delete(v25); } sub_D153B8((unsigned int)v110 + 240, "FFT"); cocos2d::CCPoint::CCPoint(&v116, 127.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); SetupTriggerPopup::createToggleValueControl(a1, 412, 1.0, (__int64)&v118, &v117, 0, 0, 0); v26 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v66 = (unsigned int *)(v118 - 8); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v67 - 1; } if ( v67 <= 0 ) operator delete(v26); } sub_D153B8((unsigned int)v110 + 240, "Loop"); cocos2d::CCPoint::CCPoint(&v116, 21.0, -78.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); SetupTriggerPopup::createToggleValueControl(a1, 413, 1.0, (__int64)&v118, &v117, 0, 0, 0); v27 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v94 = (unsigned int *)(v118 - 8); do v95 = __ldaxr(v94); while ( __stlxr(v95 - 1, v94) ); } else { v95 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v95 - 1; } if ( v95 <= 0 ) operator delete(v27); } sub_D153B8((unsigned int)v110 + 240, "Pre\nload"); cocos2d::CCPoint::CCPoint(&v116, 127.0, -78.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); SetupTriggerPopup::createToggleValueControl(a1, 433, 1.0, (__int64)&v118, &v117, 0, 0, 0); v28 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v82 = (unsigned int *)(v118 - 8); do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v83 - 1; } if ( v83 <= 0 ) operator delete(v28); } v110[21] = &v111; cocos2d::CCPoint::CCPoint(&v116, 94.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); sub_D153B8((int)&v118, "GJ_plus3Btn_001.png"); LODWORD(v29) = 1058642330; SetupTriggerPopup::createPlusButton(a1, 2, &v117, (const char **)&v118, 0, 0, v29); v30 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v102 = (unsigned int *)(v118 - 8); do v103 = __ldaxr(v102); while ( __stlxr(v103 - 1, v102) ); } else { v103 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v103 - 1; } if ( v103 <= 0 ) operator delete(v30); } SetupAudioTriggerPopup::addTimeControls(a1, 1, 10.0); sub_D153B8((unsigned int)v110 + 240, "Unique ID:"); cocos2d::CCPoint::CCPoint(&v116, -50.0, 60.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v124.x = 0.65; v124.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1A0u, v124, 100.0, v31, v32, (std::string)&v118, &v117, Float, Uint, 10, 1u, 2, 0, 0, 2, 0); v33 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v74 = (unsigned int *)(v118 - 8); do v75 = __ldaxr(v74); while ( __stlxr(v75 - 1, v74) ); } else { v75 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v75 - 1; } if ( v75 <= 0 ) operator delete(v33); } sub_D153B8((unsigned int)v110 + 240, "IsUnique"); cocos2d::CCPoint::CCPoint(&v116, 50.0, 60.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createToggleValueControl(a1, 415, 1.0, (__int64)&v118, &v117, 0, 2, 0); v34 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v98 = (unsigned int *)(v118 - 8); do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v99 - 1; } if ( v99 <= 0 ) operator delete(v34); } sub_D153B8((unsigned int)v110 + 240, "SFXGroup:"); cocos2d::CCPoint::CCPoint(&v116, -50.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v125.x = 0.65; v125.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1C7u, v125, 1000.0, v35, v36, (std::string)&v118, &v117, Float, Int, 6, 1u, 2, 0, 0, 2, 0); v37 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v90 = (unsigned int *)(v118 - 8); do v91 = __ldaxr(v90); while ( __stlxr(v91 - 1, v90) ); } else { v91 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v91 - 1; } if ( v91 <= 0 ) operator delete(v37); } sub_D153B8((unsigned int)v110 + 240, "Override"); cocos2d::CCPoint::CCPoint(&v116, 50.0, 10.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createToggleValueControl(a1, 420, 1.0, (__int64)&v118, &v117, 0, 2, 0); v38 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v106 = (unsigned int *)(v118 - 8); do v107 = __ldaxr(v106); while ( __stlxr(v107 - 1, v106) ); } else { v107 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v107 - 1; } if ( v107 <= 0 ) operator delete(v38); } sub_D153B8((unsigned int)v110 + 240, "Ignore\nVolume\nTest"); cocos2d::CCPoint::CCPoint(&v116, 50.0, -40.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createToggleValueControl(a1, 489, 1.0, (__int64)&v118, &v117, 0, 2, 0); v39 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(v118 - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v71 - 1; } if ( v71 <= 0 ) operator delete(v39); } sub_D153B8((unsigned int)v110 + 240, "MinInterval:"); cocos2d::CCPoint::CCPoint(&v116, -50.0, -40.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v126.x = 0.65; v126.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1B2u, v126, 1.0, v40, v41, (std::string)&v118, &v117, (InputValueType)0, Float, 6, 0, 2, 0, 0, 2, 0); v42 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v96 = (unsigned int *)(v118 - 8); do v97 = __ldaxr(v96); while ( __stlxr(v97 - 1, v96) ); } else { v97 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v97 - 1; } if ( v97 <= 0 ) operator delete(v42); } cocos2d::CCPoint::CCPoint(&v116, 10.0, 83.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); sub_D153B8((int)&v118, &byte_F288A0); LODWORD(v43) = 1061997773; SetupTriggerPopup::createPlusButton(a1, 0, &v117, (const char **)&v118, 2, 0, v43); v44 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v86 = (unsigned int *)(v118 - 8); do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v87 - 1; } if ( v87 <= 0 ) operator delete(v44); } cocos2d::CCPoint::CCPoint(&v116, 10.0, 23.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); sub_D153B8((int)&v118, &byte_F288A0); LODWORD(v45) = 1061997773; SetupTriggerPopup::createPlusButton(a1, 1, &v117, (const char **)&v118, 2, 0, v45); v46 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)(v118 - 8); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v105 - 1; } if ( v105 <= 0 ) operator delete(v46); } SetupAudioTriggerPopup::addProxVolControls(a1, 3); sub_D153B8((unsigned int)v110 + 240, "Speed +-"); cocos2d::CCPoint::CCPoint(&v116, -91.0, -0.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v127.x = 0.65; v127.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x254u, v127, 12.0, v47, v48, (std::string)&v118, &v117, (InputValueType)0, Int, 6, 0, 4, 0, 1, 2, 0); v49 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v78 = (unsigned int *)(v118 - 8); do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v79 - 1; } if ( v79 <= 0 ) operator delete(v49); } sub_D153B8((unsigned int)v110 + 240, "Pitch +-"); cocos2d::CCPoint::CCPoint(&v116, 91.0, -0.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v128.x = 0.65; v128.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x255u, v128, 12.0, v50, v51, (std::string)&v118, &v117, (InputValueType)0, Int, 6, 0, 4, 0, 1, 2, 0); v52 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v100 = (unsigned int *)(v118 - 8); do v101 = __ldaxr(v100); while ( __stlxr(v101 - 1, v100) ); } else { v101 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v101 - 1; } if ( v101 <= 0 ) operator delete(v52); } sub_D153B8((unsigned int)v110 + 240, aVolume_0); cocos2d::CCPoint::CCPoint(&v116, -91.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); v129.x = 0.65; v129.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x256u, v129, 1.0, v53, v54, (std::string)&v118, &v117, (InputValueType)0, Float, 6, 0, 4, 0, 1, 2, 0); v55 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v92 = (unsigned int *)(v118 - 8); do v93 = __ldaxr(v92); while ( __stlxr(v93 - 1, v92) ); } else { v93 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v93 - 1; } if ( v93 <= 0 ) operator delete(v55); } SetupTriggerPopup::toggleLimitValue(a1, 596, 1); SetupTriggerPopup::toggleLimitValue(a1, 597, 1); SetupTriggerPopup::toggleLimitValue(a1, 598, 1); sub_D153B8((unsigned int)v110 + 240, "Pitch\nSteps"); cocos2d::CCPoint::CCPoint(&v116, 21.0, -39.0); cocos2d::CCPoint::operator+(&v117, &v115, &v116); SetupTriggerPopup::createToggleValueControl(a1, 599, 1.0, (__int64)&v118, &v117, 0, 4, 0); v56 = v118 - 24; if ( v118 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v108 = (unsigned int *)(v118 - 8); do v109 = __ldaxr(v108); while ( __stlxr(v109 - 1, v108) ); } else { v109 = *((_DWORD *)v118 - 2); *((_DWORD *)v118 - 2) = v109 - 1; } if ( v109 <= 0 ) operator delete(v56); } v57 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); v57->setScale(v57, 0.55); v120.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v120.adj = (size_t)SetupSFXPopup::onBrowseSFX; v58 = CCMenuItemSpriteExtra::create(v57, nullptr, v120); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v58); m_buttonMenu = a1->m_buttonMenu; setPosition = v58->setPosition; cocos2d::CCPoint::CCPoint(&v116, (float)(a1->m_width * 0.5) + -22.0, (float)(a1->m_height * 0.5) + -22.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v119 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v117); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))setPosition)(v58, &v118, v119.x, v119.y); a1->m_sfxID = (int)a1->getValue(a1, 392); SetupSFXPopup::createSFXWidget(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); v61 = a1->getValue(a1, 427); SetupTriggerPopup::goToPage(a1, (int)v61, 0); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source