// // SetupItemEditTriggerPopup::init from 0xa4a4d4 to 0xa4b9a8 (5332 bytes) // // 2 xrefs: // > SetupItemEditTriggerPopup::create @ 0xa4bb8c // > @ 0xbb1d0 // // 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 SetupItemEditTriggerPopup::init(SetupItemEditTriggerPopup *a1, ItemTriggerGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCLabelBMFont *v5; // x24 void *v6; // x0 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v8; // x26 __int64 v9; // x2 __int64 v10; // x3 __int64 v11; // x4 __int64 v12; // x5 const char *v13; // x6 void *v14; // x0 void *v15; // x0 void *v16; // x0 cocos2d::CCDirector *v17; // x0 float v18; // s3 float v19; // s4 void *v20; // x0 int v21; // w24 void *v22; // x0 void *v23; // x0 void *v24; // x0 void *v25; // x0 void *v26; // x0 float v27; // s3 float v28; // s4 void *v29; // x0 int v30; // w27 void *v31; // x0 void *v32; // x0 void *v33; // x0 void *v34; // x0 void *v35; // x0 float v36; // s3 float v37; // s4 void *v38; // x0 float v39; // s3 float v40; // s4 void *v41; // x0 int v42; // w24 void *v43; // x0 void *v44; // x0 void *v45; // x0 int v46; // w27 bool v47; // w4 __int64 v48; // x5 const char *v49; // x6 cocos2d::CCMenu *m_buttonMenu; // x26 void (__fastcall *v51)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCNode *v52; // x0 float v53; // s0 unsigned int v54; // w21 cocos2d::CCNode *v55; // x24 cocos2d::CCComponentContainer *m_pComponentContainer; // x28 void (__fastcall *visit)(cocos2d::CCComponentContainer *__hidden, float); // x26 __int64 v58; // x0 CCMenuItemSpriteExtra *v59; // x24 CCMenuItemSpriteExtra_vtbl *v60; // x3 cocos2d::CCNode *v61; // x21 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x24 cocos2d::CCLabelBMFont *v63; // x0 cocos2d::CCLabelBMFont *m_formulaLabel; // x21 void (__fastcall *v65)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 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 _QWORD v108[2]; // [xsp+30h] [xbp+0h] BYREF cocos2d::CCMenu *v109; // [xsp+D8h] [xbp+A8h] bool v110; // [xsp+E7h] [xbp+B7h] cocos2d::CCPoint *v111; // [xsp+E8h] [xbp+B8h] float v112; // [xsp+F0h] [xbp+C0h] float v113; // [xsp+F4h] [xbp+C4h] cocos2d::CCPoint v114; // [xsp+F8h] [xbp+C8h] BYREF cocos2d::CCPoint v115; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCPoint v116; // [xsp+108h] [xbp+D8h] BYREF cocos2d::CCPoint v117; // [xsp+110h] [xbp+E0h] BYREF cocos2d::CCRect v118; // [xsp+118h] [xbp+E8h] 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::CCRect v125; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v110 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 300.0, 1); if ( v110 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v108 + 232, "Item Edit Trigger"); v5 = SetupTriggerPopup::addTitle((__int64)a1); v6 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v66 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v67 - 1; } if ( v67 <= 0 ) operator delete(v6); } setPosition = v5->setPosition; v8 = (__int64)v5->getPosition(v5); cocos2d::CCPoint::CCPoint(&v117, -85.0, 0.0); cocos2d::CCPoint::operator+(&v118, v8, &v117); setPosition(v5, &v118.origin); sub_D153B8((unsigned int)v108 + 232, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v118, v9, v10, v11, v12, v13); v14 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v68 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v69 - 1; } if ( v69 <= 0 ) operator delete(v14); } sub_D153B8((int)&v117, "Help"); sub_D153B8( (unsigned int)v108 + 232, "Edits Target ItemID using operations on ItemID1 and ItemID2.\n" "Use Item, Timer, Points, Time, or Att to specify type.\n" "The first operator button sets the interaction with target.\n" "The second sets interaction between the two initial IDs.\n" "The third sets how Mod interacts with the equation.\n" "Button 4/5 are used to force the values positive or negative.\n" "Click the NA button to switch to different rounding functions."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v15 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v76 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v77 = __ldaxr(v76); while ( __stlxr(v77 - 1, v76) ); } else { v77 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v77 - 1; } if ( v77 <= 0 ) operator delete(v15); } v16 = (void *)(*(_QWORD *)&v117 - 24LL); if ( (__int64 *)(*(_QWORD *)&v117 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v72 = (unsigned int *)(*(_QWORD *)&v117 - 8LL); do v73 = __ldaxr(v72); while ( __stlxr(v73 - 1, v72) ); } else { v73 = *(_DWORD *)(*(_QWORD *)&v117 - 8LL); *(_DWORD *)(*(_QWORD *)&v117 - 8LL) = v73 - 1; } if ( v73 <= 0 ) operator delete(v16); } SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v17 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v17); cocos2d::CCPoint::CCPoint(&v114, v112 * 0.5, (float)(v113 * 0.5) + 58.0); sub_D153B8((unsigned int)v108 + 232, "ItemID1"); cocos2d::CCPoint::CCPoint(&v116, -100.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v121.y = 0.0; v121.x = 0.8; SetupTriggerPopup::createValueControlAdvanced( a1, 0x50u, v121, 9999.0, v18, v19, (std::string)&v118, &v117, Float, Int, 10, 1u, 0, 0, 1, 0, 0); v20 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v80 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v81 - 1; } if ( v81 <= 0 ) operator delete(v20); } v21 = (int)a1->getValue(a1, 476); sub_D153B8((unsigned int)v108 + 232, "Item"); cocos2d::CCPoint::CCPoint(&v116, 20.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 1, v21 == 1, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v22 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v71 - 1; } if ( v71 <= 0 ) operator delete(v22); } sub_D153B8((unsigned int)v108 + 232, "Timer"); cocos2d::CCPoint::CCPoint(&v116, 62.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 2, v21 == 2, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v23 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v92 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v93 = __ldaxr(v92); while ( __stlxr(v93 - 1, v92) ); } else { v93 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v93 - 1; } if ( v93 <= 0 ) operator delete(v23); } sub_D153B8((unsigned int)v108 + 232, "Points"); cocos2d::CCPoint::CCPoint(&v116, 104.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 3, v21 == 3, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v24 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v84 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v85 - 1; } if ( v85 <= 0 ) operator delete(v24); } sub_D153B8((unsigned int)v108 + 232, "Time"); cocos2d::CCPoint::CCPoint(&v116, 146.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 4, v21 == 4, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v25 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v100 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v101 = __ldaxr(v100); while ( __stlxr(v101 - 1, v100) ); } else { v101 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v101 - 1; } if ( v101 <= 0 ) operator delete(v25); } sub_D153B8((unsigned int)v108 + 232, "Att"); cocos2d::CCPoint::CCPoint(&v116, 188.0, 45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 5, v21 == 5, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v26 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v78 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v79 - 1; } if ( v79 <= 0 ) operator delete(v26); } sub_D153B8((unsigned int)v108 + 232, "ItemID2"); cocos2d::CCPoint::CCPoint(&v116, -100.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v122.x = 0.8; v122.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x5Fu, v122, 9999.0, v27, v28, (std::string)&v118, &v117, Float, Int, 10, 1u, 0, 0, 1, 0, 0); v29 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v96 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v97 = __ldaxr(v96); while ( __stlxr(v97 - 1, v96) ); } else { v97 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v97 - 1; } if ( v97 <= 0 ) operator delete(v29); } v30 = (int)a1->getValue(a1, 477); sub_D153B8((unsigned int)v108 + 232, "Item"); cocos2d::CCPoint::CCPoint(&v116, 20.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 101, v30 == 1, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v31 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v88 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v89 = __ldaxr(v88); while ( __stlxr(v89 - 1, v88) ); } else { v89 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v89 - 1; } if ( v89 <= 0 ) operator delete(v31); } sub_D153B8((unsigned int)v108 + 232, "Timer"); cocos2d::CCPoint::CCPoint(&v116, 62.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 102, v30 == 2, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v32 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v104 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v105 = __ldaxr(v104); while ( __stlxr(v105 - 1, v104) ); } else { v105 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v105 - 1; } if ( v105 <= 0 ) operator delete(v32); } sub_D153B8((unsigned int)v108 + 232, "Points"); cocos2d::CCPoint::CCPoint(&v116, 104.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 103, v30 == 3, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v33 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v74 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v75 = __ldaxr(v74); while ( __stlxr(v75 - 1, v74) ); } else { v75 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v75 - 1; } if ( v75 <= 0 ) operator delete(v33); } sub_D153B8((unsigned int)v108 + 232, "Time"); cocos2d::CCPoint::CCPoint(&v116, 146.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 104, v30 == 4, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v34 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v94 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v95 = __ldaxr(v94); while ( __stlxr(v95 - 1, v94) ); } else { v95 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v95 - 1; } if ( v95 <= 0 ) operator delete(v34); } sub_D153B8((unsigned int)v108 + 232, "Att"); cocos2d::CCPoint::CCPoint(&v116, 188.0, 0.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 105, v30 == 5, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v35 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v86 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v87 - 1; } if ( v87 <= 0 ) operator delete(v35); } sub_D153B8((unsigned int)v108 + 232, "Mod:"); cocos2d::CCPoint::CCPoint(&v116, -100.0, -45.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v123.x = 0.8; v123.y = -2.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x1DFu, v123, 2.0, v36, v37, (std::string)&v118, &v117, (InputValueType)0, Float, 10, 0, 0, 0, 1, 3, 0); v38 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v102 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v103 = __ldaxr(v102); while ( __stlxr(v103 - 1, v102) ); } else { v103 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v103 - 1; } if ( v103 <= 0 ) operator delete(v38); } sub_D153B8((unsigned int)v108 + 232, "Target\nItemID"); cocos2d::CCPoint::CCPoint(&v116, -100.0, -90.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); v124.x = 0.8; v124.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x33u, v124, 9999.0, v39, v40, (std::string)&v118, &v117, Float, Int, 10, 1u, 0, 0, 1, 0, 0); v41 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v82 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v83 - 1; } if ( v83 <= 0 ) operator delete(v41); } v42 = (int)a1->getValue(a1, 478); sub_D153B8((unsigned int)v108 + 232, "Item"); cocos2d::CCPoint::CCPoint(&v116, 20.0, -90.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 1001, v42 == 1, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v43 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v98 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v99 = __ldaxr(v98); while ( __stlxr(v99 - 1, v98) ); } else { v99 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v99 - 1; } if ( v99 <= 0 ) operator delete(v43); } sub_D153B8((unsigned int)v108 + 232, "Timer"); cocos2d::CCPoint::CCPoint(&v116, 62.0, -90.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 1002, v42 == 2, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v44 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v90 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v91 = __ldaxr(v90); while ( __stlxr(v91 - 1, v90) ); } else { v91 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v91 - 1; } if ( v91 <= 0 ) operator delete(v44); } sub_D153B8((unsigned int)v108 + 232, "Points"); cocos2d::CCPoint::CCPoint(&v116, 104.0, -90.0); cocos2d::CCPoint::operator+(&v117, &v114, &v116); SetupTriggerPopup::createCustomToggleValueControl(a1, 1003, v42 == 3, 1u, (unsigned int)v108 + 232, &v117, 1u, 0, 0); v45 = (void *)(*(_QWORD *)&v118.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v118.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v106 = (unsigned int *)(*(_QWORD *)&v118.origin - 8LL); do v107 = __ldaxr(v106); while ( __stlxr(v107 - 1, v106) ); } else { v107 = *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v118.origin - 8LL) = v107 - 1; } if ( v107 <= 0 ) operator delete(v45); } v46 = 0; cocos2d::CCPoint::CCPoint(&v115, 2.0, 2.0); v111 = &v114; do { switch ( v46 ) { case 1: v54 = 481; break; case 2: v54 = 482; break; case 3: v54 = 578; break; case 4: v54 = 579; break; case 5: v54 = 485; break; case 6: v54 = 486; break; default: v54 = 480; break; } v55 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"+", &byte_9[6], (int)&byte_9[6], 1, 1.0, v47, v48, v49); v55->setScale(v55, 0.8); ((void (__fastcall *)(cocos2d::CCComponentContainer *, float))v55[1].m_pComponentContainer->__vftable[2].remove)( v55[1].m_pComponentContainer, 1.1); m_pComponentContainer = v55[1].m_pComponentContainer; visit = m_pComponentContainer->__vftable[2].visit; v58 = ((__int64 (__fastcall *)(cocos2d::CCComponentContainer *))m_pComponentContainer->__vftable[3].~CCComponentContainer)(m_pComponentContainer); cocos2d::CCPoint::operator+(&v118, v58, &v115); ((void (__fastcall *)(cocos2d::CCComponentContainer *, cocos2d::CCRect *))visit)(m_pComponentContainer, &v118); v120.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v120.adj = (size_t)SetupItemEditTriggerPopup::onOpButton; v59 = CCMenuItemSpriteExtra::create(v55, nullptr, v120); v59->setTag(v59, v54); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v59); if ( v46 <= 4 ) { m_buttonMenu = a1->m_buttonMenu; v51 = v59->setPosition; cocos2d::CCPoint::CCPoint(&v116, (float)((float)v46 * 42.0) + 20.0, -45.0); cocos2d::CCPoint::operator+(&v117, v111, &v116); v52 = m_buttonMenu; } else { v60 = v59->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v109 = a1->m_buttonMenu; v51 = v60->setPosition; cocos2d::CCPoint::CCPoint(&v116, (float)((float)(v46 - 2) * 42.0) + 20.0, -90.0); cocos2d::CCPoint::operator+(&v117, v111, &v116); v52 = v109; } ++v46; v119 = cocos2d::CCNode::convertToNodeSpace(v52, &v117); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v51)(v59, &v118, v119.x, v119.y); v53 = a1->getValue(a1, v54); SetupItemEditTriggerPopup::updateOpButton(a1, v59, (int)v53, v54); } while ( v46 != 7 ); cocos2d::CCPoint::CCPoint(&v116, v112 * 0.5, (float)(v113 * 0.5) + -82.0); cocos2d::CCRect::CCRect(&v118, 0.0, 0.0, 80.0, 80.0); v61 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v118, v125); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v61->__vftable[1].~CCNode_0)(v61, 50); ((void (__fastcall *)(cocos2d::CCNode *, void *))v61->__vftable[1].getTag)(v61, &unk_F112A0); setContentSize = v61->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v118, 1520.0, 140.0); setContentSize(v61, (const cocos2d::CCSize *)&v118); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v61, 1); v61->setPosition(v61, &v116); v61->setScale(v61, 0.25); v63 = cocos2d::CCLabelBMFont::create(); a1->m_formulaLabel = v63; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v63, 2); m_formulaLabel = a1->m_formulaLabel; v65 = m_formulaLabel->setPosition; cocos2d::CCPoint::CCPoint(&v117, 0.0, 1.0); cocos2d::CCPoint::operator+(&v118, &v116, &v117); v65(m_formulaLabel, &v118.origin); SetupItemEditTriggerPopup::updateFormulaLabel(a1); SetupTriggerPopup::postSetup(a1); } return v110; }
GD Web Decomp Icon

GD Web Decomp

Raw Source