// // CreateParticlePopup::init from 0xb013a0 to 0xb04e78 (15064 bytes) // // 2 xrefs: // > CreateParticlePopup::create @ 0xb05180 // > @ 0x100c48 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:01:23 +0000 // __int64 __fastcall CreateParticlePopup::init(__int64 a1, cocos2d::CCObject *a2, cocos2d::CCObject *a3, __int64 a4) { __int64 v7; // x0 __int64 v8; // x0 __int64 v9; // x1 __int64 v10; // x1 _BYTE *v11; // x0 cocos2d::CCDirector *v12; // x0 int v13; // w19 cocos2d::CCArray *WinSize; // x0 cocos2d::CCObject *v15; // x0 cocos2d::CCArray *v16; // x0 cocos2d::CCObject *v17; // x0 cocos2d::CCArray *v18; // x0 cocos2d::CCObject *v19; // x0 cocos2d::CCArray *v20; // x0 cocos2d::CCObject *v21; // x0 cocos2d::CCDictionary *v22; // x0 cocos2d::CCObject *v23; // x0 cocos2d::CCDictionary *v24; // x0 cocos2d::CCObject *v25; // x0 cocos2d::CCObject *v26; // x0 int v27; // w23 cocos2d::CCArray *v28; // x0 cocos2d::CCObject *v29; // x0 cocos2d::CCArray *v30; // x0 cocos2d::CCObject *v31; // x0 cocos2d::CCNode *v32; // x0 cocos2d::CCObject *v33; // x19 cocos2d::CCMenu *v34; // x0 cocos2d::CCObject *v35; // x24 cocos2d::CCArray *v36; // x0 cocos2d::CCArray *v37; // x19 cocos2d::CCObject *v38; // x0 __int64 v39; // x23 void (__fastcall *v40)(__int64, __int64 *); // x24 void (__fastcall *v41)(__int64, __int64 *); // x24 const char *v42; // x2 __int64 v43; // x23 void (__fastcall *v44)(__int64, __int64 *); // x24 __int64 v45; // x1 __int64 v46; // x23 __int64 v47; // x0 cocos2d::CCObject *v48; // x0 void (__fastcall *v49)(__int64, __int64 *); // x24 __int16 *v50; // x0 cocos2d::CCParticleSystemQuad *v51; // x1 __int64 v52; // x0 __int64 v53; // x23 void (__fastcall *v54)(__int64, __int64 *); // x24 __int64 v55; // x23 __int64 (__fastcall *v56)(__int64, __int64 *); // x24 GameManager *v57; // x0 GameManager *v58; // x0 const char *v59; // x2 __int64 v60; // x0 __int64 v61; // x23 void (__fastcall *v62)(__int64, __int64 *); // x24 __int64 v63; // x23 void (__fastcall *v64)(__int64, __int64 *); // x24 __int64 v65; // x25 const char *v66; // x6 __int64 v67; // x0 const char *v68; // x6 cocos2d::CCMenu *v69; // x25 const char *v70; // x5 __int64 v71; // x0 cocos2d::CCMenuItem *v72; // x23 const char *v73; // x6 __int64 v74; // x0 __int64 v75; // x24 __int64 v76; // x0 __int64 v77; // x25 void (__fastcall *v78)(__int64, __int64 *); // x26 void (__fastcall *v79)(__int64, __int64 *); // x25 void (__fastcall *v80)(cocos2d::CCMenuItem *, __int64 *); // x24 unsigned int v81; // w28 int v82; // w27 cocos2d::CCString *i; // x0 ButtonSprite *CString; // x0 const char *v85; // x6 __int64 v86; // x22 __int64 v87; // x25 cocos2d::CCNode *v88; // x22 void (__fastcall *v89)(__int64, __int64 *); // x26 const char *v90; // x6 float v91; // s8 const char *v92; // x1 __int64 v93; // x26 cocos2d::CCObject *v94; // x26 void (__fastcall *v95)(cocos2d::CCObject *, __int64 *); // x28 const char *v96; // x1 cocos2d::CCSprite *v97; // x26 cocos2d::CCObject *v98; // x23 void (__fastcall *v99)(cocos2d::CCObject *, __int64 *); // x25 const char *v100; // x2 __int64 v101; // x0 __int64 v102; // x21 void (__fastcall *v103)(__int64, __int64 *); // x22 __int64 v104; // x0 __int64 v105; // x0 int v106; // w1 cocos2d::CCObject *PageButton; // x0 unsigned __int8 v108; // w1 __int64 v110; // x25 unsigned int v111; // w23 __int64 v112; // x25 void (__fastcall *v113)(__int64, __int64 *); // x26 const char *v114; // x1 __int64 v115; // x0 __int64 v116; // x25 void (__fastcall *v117)(__int64, __int64 *); // x26 __int64 v118; // x24 __int64 (__fastcall *v119)(__int64, __int64); // x25 __int64 v120; // x0 cocos2d::CCArray *v121; // x0 cocos2d::CCObject *v122; // x0 ButtonSprite *v123; // x0 const char *v124; // x5 __int64 v125; // x24 cocos2d::CCObject *v126; // x24 cocos2d::CCNode *v127; // x26 void (__fastcall *v128)(cocos2d::CCObject *, __int64 *); // x25 unsigned __int8 v129; // w26 cocos2d::CCNode *PageMenu; // x25 __int64 Page; // x24 cocos2d::CCArray *PageContainer; // x0 CCMenuItemToggler *ToggleButton; // x0 char v134; // w1 unsigned __int8 v135; // w26 cocos2d::CCNode *v136; // x25 __int64 v137; // x24 cocos2d::CCArray *v138; // x0 CCMenuItemToggler *v139; // x0 char v140; // w1 unsigned __int8 v141; // w27 cocos2d::CCNode *v142; // x26 __int64 v143; // x25 cocos2d::CCArray *v144; // x0 CCMenuItemToggler *v145; // x0 char v146; // w1 unsigned __int8 v147; // w27 cocos2d::CCNode *v148; // x25 cocos2d::CCArray *v149; // x0 CCMenuItemToggler *v150; // x0 char v151; // w1 unsigned __int8 v152; // w27 cocos2d::CCNode *v153; // x26 __int64 v154; // x25 cocos2d::CCArray *v155; // x0 CCMenuItemToggler *v156; // x0 char v157; // w1 GameManager *v158; // x0 GameManager *v159; // x0 unsigned __int8 GameVariable; // w26 cocos2d::CCNode *v161; // x25 __int64 v162; // x23 cocos2d::CCArray *v163; // x0 CCMenuItemToggler *v164; // x27 cocos2d::CCObject *v165; // x25 cocos2d::CCArray *v166; // x0 CCMenuItemToggler *v167; // x0 __int64 (__fastcall *v168)(CCMenuItemToggler *); // x1 void (__fastcall *v169)(cocos2d::CCObject *, __int64 *); // x27 const char *v170; // x1 __int64 v171; // x0 cocos2d::CCObject *v172; // x25 __int64 v173; // x0 cocos2d::CCArray *v174; // x0 void (__fastcall *v175)(cocos2d::CCObject *, __int64 *); // x27 const char *v176; // x1 __int64 v177; // x0 cocos2d::CCObject *v178; // x25 __int64 v179; // x0 cocos2d::CCArray *v180; // x0 void (__fastcall *v181)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCNode *v182; // x27 const char *v183; // x6 __int64 v184; // x25 cocos2d::CCObject *v185; // x25 __int64 v186; // x0 cocos2d::CCArray *v187; // x0 void (__fastcall *v188)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCNode *v189; // x27 cocos2d::CCNode *v190; // x26 __int64 v191; // x25 cocos2d::CCArray *v192; // x0 unsigned __int8 v193; // w27 cocos2d::CCNode *v194; // x26 __int64 v195; // x25 cocos2d::CCArray *v196; // x0 unsigned __int8 v197; // w27 cocos2d::CCNode *v198; // x26 __int64 v199; // x25 cocos2d::CCArray *v200; // x0 unsigned __int8 v201; // w27 cocos2d::CCNode *v202; // x26 __int64 v203; // x25 cocos2d::CCArray *v204; // x0 unsigned __int8 v205; // w27 cocos2d::CCNode *v206; // x26 __int64 v207; // x25 cocos2d::CCArray *v208; // x0 unsigned __int8 v209; // w27 cocos2d::CCNode *v210; // x26 __int64 v211; // x25 cocos2d::CCArray *v212; // x0 unsigned __int8 v213; // w27 cocos2d::CCNode *v214; // x26 __int64 v215; // x25 cocos2d::CCArray *v216; // x0 unsigned __int8 v217; // w27 cocos2d::CCNode *v218; // x26 __int64 v219; // x25 cocos2d::CCArray *v220; // x0 unsigned __int8 v221; // w27 cocos2d::CCNode *v222; // x26 __int64 v223; // x25 cocos2d::CCArray *v224; // x0 unsigned __int8 v225; // w27 cocos2d::CCNode *v226; // x26 __int64 v227; // x25 cocos2d::CCArray *v228; // x0 CCMenuItemToggler *v229; // x3 unsigned __int8 v230; // w27 cocos2d::CCNode *v231; // x26 __int64 v232; // x25 cocos2d::CCArray *v233; // x0 CCMenuItemToggler *v234; // x3 unsigned __int8 v235; // w27 cocos2d::CCNode *v236; // x26 __int64 v237; // x25 cocos2d::CCArray *v238; // x0 unsigned __int8 v239; // w27 cocos2d::CCNode *v240; // x26 __int64 v241; // x25 cocos2d::CCArray *v242; // x0 unsigned __int8 v243; // w26 cocos2d::CCNode *v244; // x25 __int64 v245; // x27 cocos2d::CCArray *v246; // x0 const char *v247; // x1 __int64 v248; // x0 unsigned int v249; // w28 __int64 v250; // x0 float *v251; // x0 float v252; // s15 float v253; // s15 float *v254; // x0 float v255; // s14 float v256; // s0 cocos2d::CCNode *v257; // x22 cocos2d::CCArray *v258; // x25 cocos2d::CCObject **v259; // x0 int v260; // w1 cocos2d::CCObject *v261; // x27 void (__fastcall *v262)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCString *v263; // x0 cocos2d::CCSprite *v264; // x0 const char *v265; // x1 float *v266; // x27 void (__fastcall *v267)(float *, __int64 *); // x26 __int64 v268; // x0 unsigned int v269; // w23 cocos2d::CCArray *v270; // x0 cocos2d::CCObject *v271; // x0 __int64 v272; // x0 _BYTE *v273; // x19 __int64 v274; // x24 cocos2d::CCArray *v275; // x25 __int64 v276; // x1 cocos2d::CCObject *v277; // x0 __int64 v278; // x1 __int64 v279; // x0 __int64 v280; // x1 unsigned __int8 v281; // [xsp+EFh] [xbp+BFh] cocos2d::CCNode *v282; // [xsp+110h] [xbp+E0h] cocos2d::CCNode *v283; // [xsp+110h] [xbp+E0h] cocos2d::CCNode *v284; // [xsp+110h] [xbp+E0h] __int64 v286; // [xsp+120h] [xbp+F0h] __int64 v287; // [xsp+120h] [xbp+F0h] float v288; // [xsp+120h] [xbp+F0h] __int64 v289; // [xsp+138h] [xbp+108h] BYREF _BYTE v290[8]; // [xsp+140h] [xbp+110h] BYREF _BYTE v291[8]; // [xsp+148h] [xbp+118h] BYREF _BYTE v292[8]; // [xsp+150h] [xbp+120h] BYREF _BYTE v293[8]; // [xsp+158h] [xbp+128h] BYREF _BYTE v294[8]; // [xsp+160h] [xbp+130h] BYREF _BYTE v295[8]; // [xsp+168h] [xbp+138h] BYREF float v296; // [xsp+170h] [xbp+140h] BYREF float v297; // [xsp+174h] [xbp+144h] cocos2d::CCObject *v298; // [xsp+178h] [xbp+148h] BYREF __int64 v299; // [xsp+180h] [xbp+150h] BYREF __int64 v300[2]; // [xsp+188h] [xbp+158h] BYREF __int64 v301[2]; // [xsp+198h] [xbp+168h] BYREF void *v302; // [xsp+1A8h] [xbp+178h] __int64 v303; // [xsp+1B0h] [xbp+180h] BYREF __int64 v304; // [xsp+1B8h] [xbp+188h] void *v305; // [xsp+1C0h] [xbp+190h] v281 = FLAlertLayer::init((FLAlertLayer *)a1, 150); if ( !v281 ) return v281; v7 = 1; *(_BYTE *)(a1 + 1000) = 0; *(_BYTE *)(a1 + 704) = 1; *(_BYTE *)(a1 + 596) = 1; *(_BYTE *)(a1 + 1001) = 0; *(_BYTE *)(a1 + 1002) = 0; *(_BYTE *)(a1 + 1003) = 0; if ( a2 ) { *(_QWORD *)(a1 + 680) = a2; cocos2d::CCObject::retain(a2); v303 = 0; v8 = *(_QWORD *)(a1 + 680); v304 = 0; v305 = nullptr; if ( (*(_BYTE *)(v8 + 1448) & 1) != 0 ) { std::string::__init(&v303, *(void **)(v8 + 1464), *(_QWORD *)(v8 + 1456)); } else { v9 = *(_QWORD *)(v8 + 1456); v303 = *(_QWORD *)(v8 + 1448); v304 = v9; v305 = *(void **)(v8 + 1464); } if ( (*(_BYTE *)a4 & 1) != 0 ) { **(_BYTE **)(a4 + 16) = 0; *(_QWORD *)(a4 + 8) = 0; } else { *(_BYTE *)(a4 + 1) = 0; *(_BYTE *)a4 = 0; } std::string::reserve((__int64 *)a4, 0); *(_QWORD *)(a4 + 16) = v305; v10 = v304; *(_QWORD *)a4 = v303; *(_QWORD *)(a4 + 8) = v10; v11 = *(_BYTE **)(a1 + 680); *(_BYTE *)(a1 + 1000) = v11[809]; *(_BYTE *)(a1 + 1001) = v11[1417]; *(_BYTE *)(a1 + 1002) = v11[1440]; v7 = (unsigned __int8)v11[1776]; *(_BYTE *)(a1 + 1003) = v7; } else if ( a3 ) { *(_QWORD *)(a1 + 688) = a3; v269 = 0; v270 = (cocos2d::CCArray *)cocos2d::CCObject::retain(a3); v271 = (cocos2d::CCObject *)cocos2d::CCArray::create(v270); *(_QWORD *)(a1 + 696) = v271; cocos2d::CCObject::retain(v271); while ( 1 ) { v7 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); if ( v269 >= (unsigned int)v7 ) break; v272 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v269); v303 = 0; v304 = 0; v273 = (_BYTE *)v272; v305 = nullptr; v274 = v272 + 1448; v275 = *(cocos2d::CCArray **)(a1 + 696); if ( (*(_BYTE *)(v272 + 1448) & 1) != 0 ) { std::string::__init(&v303, *(void **)(v272 + 1464), *(_QWORD *)(v272 + 1456)); } else { v276 = *(_QWORD *)(v272 + 1456); v303 = *(_QWORD *)v274; v304 = v276; v305 = *(void **)(v272 + 1464); } v277 = (cocos2d::CCObject *)GameToolbox::particleFromString((__int64)&v303, 0, 0); cocos2d::CCArray::addObject(v275, v277); if ( (v303 & 1) != 0 ) operator delete(v305); if ( !v269 ) { v303 = 0; v304 = 0; v305 = nullptr; if ( (v273[1448] & 1) != 0 ) { std::string::__init(&v303, *(void **)(v274 + 16), *(_QWORD *)(v274 + 8)); } else { v278 = *(_QWORD *)(v274 + 8); v303 = *(_QWORD *)v274; v304 = v278; v305 = *(void **)(v274 + 16); } if ( (*(_BYTE *)a4 & 1) != 0 ) { **(_BYTE **)(a4 + 16) = 0; *(_QWORD *)(a4 + 8) = 0; } else { *(_BYTE *)(a4 + 1) = 0; *(_BYTE *)a4 = 0; } std::string::reserve((__int64 *)a4, 0); v279 = v303; v280 = v304; *(_QWORD *)(a4 + 16) = v305; *(_QWORD *)a4 = v279; *(_QWORD *)(a4 + 8) = v280; *(_BYTE *)(a1 + 1000) = v273[809]; *(_BYTE *)(a1 + 1001) = v273[1417]; *(_BYTE *)(a1 + 1002) = v273[1440]; *(_BYTE *)(a1 + 1003) = v273[1776]; } ++v269; } } v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v7); v13 = 5; WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v289, v12); v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *(_QWORD *)(a1 + 744) = v15; v16 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v15); v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v16); *(_QWORD *)(a1 + 752) = v17; v18 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v17); v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(v18); *(_QWORD *)(a1 + 960) = v19; v20 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v19); v21 = (cocos2d::CCObject *)cocos2d::CCArray::create(v20); *(_QWORD *)(a1 + 968) = v21; v22 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v21); do { v23 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v22); v24 = (cocos2d::CCDictionary *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 744), v23); v25 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v24); v22 = (cocos2d::CCDictionary *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 752), v25); --v13; } while ( v13 ); v26 = (cocos2d::CCObject *)cocos2d::CCArray::create(v22); *(_QWORD *)(a1 + 760) = v26; v27 = 4; v28 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v26); v29 = (cocos2d::CCObject *)cocos2d::CCArray::create(v28); *(_QWORD *)(a1 + 776) = v29; v30 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v29); v31 = (cocos2d::CCObject *)cocos2d::CCArray::create(v30); *(_QWORD *)(a1 + 784) = v31; v32 = (cocos2d::CCNode *)cocos2d::CCObject::retain(v31); do { v33 = (cocos2d::CCObject *)cocos2d::CCNode::create(v32); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v33); v34 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 760), v33); v35 = (cocos2d::CCObject *)cocos2d::CCMenu::create(v34); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v33 + 456LL))(v33, v35); v36 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 776), v35); v37 = *(cocos2d::CCArray **)(a1 + 784); v38 = (cocos2d::CCObject *)cocos2d::CCArray::create(v36); v32 = (cocos2d::CCNode *)cocos2d::CCArray::addObject(v37, v38); --v27; } while ( v27 ); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v300, 0.0, 0.0, 80.0, 80.0); v39 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v300); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v300, 460.0, 300.0); v40(v39, v300); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v39, 4294967294LL); v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, *(float *)&v289 * 0.5, *((float *)&v289 + 1) * 0.5); v41(v39, v300); v43 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Create Particle Effect", "goldFont.fnt", v42); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v43); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, 0.6); v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v300, *(float *)&v289 * 0.5, (float)((float)(*((float *)&v289 + 1) * 0.5) + 150.0) - 13.0); v44(v43, v300); *(_QWORD *)(a1 + 712) = 0; v45 = *(_BYTE *)a4 >> 1; if ( (*(_BYTE *)a4 & 1) != 0 ) v45 = *(_QWORD *)(a4 + 8); if ( !v45 ) std::string::assign( (__int64 *)a4, "30a-1a1a0.3a30a90a90a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a1a0a1a0a1a0a1a1a0a0a1a0a1a0a1a0a1a0a0a0a0a0a0a0a0a0a0a0a0a2" "a1a0a0a0a0a0a0a0a0a0a0"); v46 = GameToolbox::particleFromString(a4, 0, 0); v47 = *(_QWORD *)(a1 + 688); *(_QWORD *)(a1 + 712) = v46; if ( v47 ) { v48 = (cocos2d::CCObject *)GameToolbox::particleFromString(a4, 0, 0); *(_QWORD *)(a1 + 720) = v48; cocos2d::CCObject::retain(v48); v46 = *(_QWORD *)(a1 + 712); } v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 60.0, 90.0); v49(v46, v300); v50 = *(__int16 **)(a1 + 712); v51 = (cocos2d::CCParticleSystemQuad *)(unsigned int)v50[416]; *(_DWORD *)(a1 + 992) = (_DWORD)v51; v52 = ParticlePreviewLayer::create((ParticlePreviewLayer *)v50, v51); *(_QWORD *)(a1 + 792) = v52; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v52); v53 = *(_QWORD *)(a1 + 792); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v300, (float)((float)(*(float *)&v289 * 0.5) + -230.0) + 10.0, (float)((float)(*((float *)&v289 + 1) * 0.5) + -150.0) + 10.0); v54(v53, v300); v55 = *(_QWORD *)(a1 + 792); v56 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 0.0, 0.0); v57 = (GameManager *)v56(v55, v300); v58 = (GameManager *)GameManager::sharedState(v57); *(_BYTE *)(a1 + 976) = GameManager::getGameVariable(v58, "0178"); *(float *)(a1 + 980) = 1.0; v60 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "chatFont.fnt", v59); *(_QWORD *)(a1 + 984) = v60; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 968LL))(v60, 2); v61 = *(_QWORD *)(a1 + 984); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 1.0, 0.0); v62(v61, v300); v63 = *(_QWORD *)(a1 + 984); v64 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v63 + 184LL); v65 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 192LL))(*(_QWORD *)(a1 + 792)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 116.0, 2.0); cocos2d::CCPoint::operator+(v300, v65); v64(v63, v300); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 984) + 160LL))(*(_QWORD *)(a1 + 984), 0.6); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 984), 11); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 984) + 344LL))( *(_QWORD *)(a1 + 984), *(unsigned __int8 *)(a1 + 976)); v67 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 0, 0.6, "goldFont.fnt", "GJ_button_01.png", v66, 25.0); v69 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v67, 0, a1, (__int64)CreateParticlePopup::onClose, 0); if ( *(_QWORD *)(a1 + 680) ) v70 = "GJ_button_04.png"; else v70 = "GJ_button_05.png"; v71 = ButtonSprite::create((ButtonSprite *)"C", (const char *)&qword_28, 0, 0, 0.6, "goldFont.fnt", v70, v68, 25.0); v72 = (cocos2d::CCMenuItem *)CCMenuItemSpriteExtra::create( v71, 0, a1, (__int64)CreateParticlePopup::onCopySettings, 0); v74 = ButtonSprite::create( (ButtonSprite *)"P", (const char *)&qword_28, 0, 0, 0.6, "goldFont.fnt", "GJ_button_04.png", v73, 25.0); v75 = CCMenuItemSpriteExtra::create(v74, 0, a1, (__int64)CreateParticlePopup::onPasteSettings, 0); v76 = cocos2d::CCMenu::create(v69, v72, v75, 0); *(_QWORD *)(a1 + 552) = v76; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v76, 10); v77 = *(_QWORD *)(a1 + 552); v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v300, (float)((float)(*(float *)&v289 * 0.5) + 230.0) - 30.0, (float)((float)(*((float *)&v289 + 1) * 0.5) + 150.0) - 24.0); v78(v77, v300); v79 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v75 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, -45.0, 0.0); v79(v75, v300); v80 = *(void (__fastcall **)(cocos2d::CCMenuItem *, __int64 *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, -80.0, 0.0); v80(v72, v300); if ( !*(_QWORD *)(a1 + 680) ) (*(void (__fastcall **)(cocos2d::CCMenuItem *, _QWORD))(*(_QWORD *)v72 + 1056LL))(v72, 0); v81 = 1; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v290, (float)((float)(*(float *)&v289 * 0.5) + -230.0) + 23.0, (float)(*((float *)&v289 + 1) * 0.5) + 55.0); v82 = 2; for ( i = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (_BYTE *)&dword_0 + 1); ; i = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v81) ) { CString = (ButtonSprite *)cocos2d::CCString::getCString(i); v86 = ButtonSprite::create( CString, (const char *)&dword_14, 0, 1, 0.8, "goldFont.fnt", "GJ_button_04.png", v85, 25.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v86 + 160LL))(v86, 0.6); v87 = CCMenuItemSpriteExtra::create(v86, 0, a1, (__int64)CreateParticlePopup::onMode, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v87 + 72LL))(v87, v81); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v87); v88 = *(cocos2d::CCNode **)(a1 + 552); v89 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, (float)(int)(v81 - 1) * 24.0, 0.0); cocos2d::CCPoint::operator+(&v299, v290); cocos2d::CCNode::convertToNodeSpace(v300, v88, (const cocos2d::CCPoint *)&v299); v89(v87, v300); if ( v81 == 1 ) { *(_QWORD *)(a1 + 800) = v87; goto LABEL_26; } if ( v81 != 2 ) break; *(_QWORD *)(a1 + 808) = v87; LABEL_26: ++v81; ++v82; } *(_QWORD *)(a1 + 816) = v87; if ( v82 != 4 ) goto LABEL_26; v110 = ButtonSprite::create( (ButtonSprite *)"C", (const char *)&dword_14, 0, 1, 0.8, "goldFont.fnt", "GJ_button_05.png", v90, 25.0); v111 = 1; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v110 + 160LL))(v110, 0.6); v112 = CCMenuItemSpriteExtra::create(v110, 0, a1, (__int64)CreateParticlePopup::centerAlignParticle, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v112); v113 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v112 + 184LL); v282 = *(cocos2d::CCNode **)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 72.0, 0.0); cocos2d::CCPoint::operator+(&v299, v290); cocos2d::CCNode::convertToNodeSpace(v300, v282, (const cocos2d::CCPoint *)&v299); v113(v112, v300); v115 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v114); *(_QWORD *)(a1 + 936) = v115; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v115 + 160LL))(v115, 0.5); v116 = CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 936), 0, a1, (__int64)CreateParticlePopup::onSelectColor, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v116); v283 = *(cocos2d::CCNode **)(a1 + 552); v117 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v116 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 96.0, 0.0); cocos2d::CCPoint::operator+(&v299, v290); cocos2d::CCNode::convertToNodeSpace(v300, v283, (const cocos2d::CCPoint *)&v299); v117(v116, v300); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v116 + 72LL))(v116, 0); v118 = *(_QWORD *)(a1 + 936); v119 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 960LL); v120 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 1200LL))(*(_QWORD *)(a1 + 792)); v121 = (cocos2d::CCArray *)v119(v118, v120); v122 = (cocos2d::CCObject *)cocos2d::CCArray::create(v121); *(_QWORD *)(a1 + 768) = v122; cocos2d::CCObject::retain(v122); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v291, (float)(*(float *)&v289 * 0.5) + -75.0, (float)((float)(*((float *)&v289 + 1) * 0.5) + 150.0) - 35.0); do { v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, &byte_11B8890, 0); switch ( v111 ) { case 3u: std::string::assign(&v303, "Extra"); break; case 4u: std::string::assign(&v303, "Texture"); break; case 2u: std::string::assign(&v303, "Visual"); break; default: std::string::assign(&v303, "Motion"); break; } if ( (v303 & 1) != 0 ) v123 = (ButtonSprite *)v305; else v123 = (ButtonSprite *)((char *)&v303 + 1); v124 = "GJ_button_01.png"; if ( v111 != 1 ) v124 = "GJ_button_04.png"; v125 = ButtonSprite::create( v123, (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", v124, "GJ_button_04.png", 25.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v125 + 160LL))(v125, 0.7); v126 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v125, 0, a1, (__int64)CreateParticlePopup::onPage, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v126 + 72LL))(v126, v111); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v126); v127 = *(cocos2d::CCNode **)(a1 + 552); v128 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v126 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, (float)(int)(v111 - 1) * 50.0, 0.0); cocos2d::CCPoint::operator+(&v299, v291); cocos2d::CCNode::convertToNodeSpace(v300, v127, (const cocos2d::CCPoint *)&v299); v128(v126, v300); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 768), v126); if ( (v303 & 1) != 0 ) operator delete(v305); ++v111; } while ( v111 != 5 ); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v292, (float)((float)(*(float *)&v289 * 0.5) + -230.0) + 20.0, (float)((float)(*((float *)&v289 + 1) * 0.5) + 150.0) - 20.0); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Free", 4u); v129 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1560LL))(*(_QWORD *)(a1 + 712)) == 0; PageMenu = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -0.0); cocos2d::CCPoint::operator+(&v299, v292); Page = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); PageContainer = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); ToggleButton = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onPosType, 0, v129, PageMenu, (const cocos2d::CCPoint *)&v299, a1, Page, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, PageContainer); v134 = v303; *(_QWORD *)(a1 + 832) = ToggleButton; if ( (v134 & 1) != 0 ) { operator delete(v305); ToggleButton = *(CCMenuItemToggler **)(a1 + 832); } (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, 0); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Relative", 8u); v135 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1560LL))(*(_QWORD *)(a1 + 712)) == 1; v136 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -24.0); cocos2d::CCPoint::operator+(&v299, v292); v137 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v138 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); v139 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onPosType, 0, v135, v136, (const cocos2d::CCPoint *)&v299, a1, v137, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v138); v140 = v303; *(_QWORD *)(a1 + 840) = v139; if ( (v140 & 1) != 0 ) { operator delete(v305); v139 = *(CCMenuItemToggler **)(a1 + 840); } (*(void (__fastcall **)(CCMenuItemToggler *, __int64))(*(_QWORD *)v139 + 72LL))(v139, 1); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Grouped", 7u); v141 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1560LL))(*(_QWORD *)(a1 + 712)) == 2; v142 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -48.0); cocos2d::CCPoint::operator+(&v299, v292); v143 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v144 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); v145 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onPosType, 0, v141, v142, (const cocos2d::CCPoint *)&v299, a1, v143, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v144); v146 = v303; *(_QWORD *)(a1 + 848) = v145; if ( (v146 & 1) != 0 ) { operator delete(v305); v145 = *(CCMenuItemToggler **)(a1 + 848); } (*(void (__fastcall **)(CCMenuItemToggler *, __int64))(*(_QWORD *)v145 + 72LL))(v145, 2); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Gravity", 7u); v147 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1592LL))(*(_QWORD *)(a1 + 712)) == 0; v148 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -0.0); cocos2d::CCPoint::operator+(&v299, v292); v286 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v149 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 1); v150 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onEmitterMode, 0, v147, v148, (const cocos2d::CCPoint *)&v299, a1, v286, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v149); v151 = v303; *(_QWORD *)(a1 + 872) = v150; if ( (v151 & 1) != 0 ) { operator delete(v305); v150 = *(CCMenuItemToggler **)(a1 + 872); } (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(*(_QWORD *)v150 + 72LL))(v150, 0); *(_BYTE *)(*(_QWORD *)(a1 + 872) + 393LL) = 1; v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Radius", 6u); v152 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1592LL))(*(_QWORD *)(a1 + 712)) == 1; v153 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -24.0); cocos2d::CCPoint::operator+(&v299, v292); v154 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v155 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 1); v156 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onEmitterMode, 0, v152, v153, (const cocos2d::CCPoint *)&v299, a1, v154, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v155); v157 = v303; *(_QWORD *)(a1 + 880) = v156; if ( (v157 & 1) != 0 ) { operator delete(v305); v156 = *(CCMenuItemToggler **)(a1 + 880); } (*(void (__fastcall **)(CCMenuItemToggler *, __int64))(*(_QWORD *)v156 + 72LL))(v156, 1); *(_BYTE *)(*(_QWORD *)(a1 + 880) + 393LL) = 1; v303 = 0; v304 = 0; v305 = nullptr; v158 = (GameManager *)std::string::__init(&v303, "Perf\nLog", 8u); v159 = (GameManager *)GameManager::sharedState(v158); GameVariable = GameManager::getGameVariable(v159, "0178"); v161 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -0.0); cocos2d::CCPoint::operator+(&v299, v292); v162 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v163 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4); v164 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onTogglePerfLog, 0, GameVariable, v161, (const cocos2d::CCPoint *)&v299, a1, v162, 0.6, 0.35, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v163); if ( (v303 & 1) != 0 ) operator delete(v305); v301[0] = 0; v301[1] = 0; v302 = nullptr; std::string::__init(v301, "Performance Log", 0xFu); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init( &v303, "1: Active / Max Particles\n2: Draw cost.\nTry to keep the draw cost low.", 0x5Eu); v165 = (cocos2d::CCObject *)InfoAlertButton::create((char *)v301, (char *)&v303, 0.6); if ( (v303 & 1) != 0 ) operator delete(v305); if ( (v301[0] & 1) != 0 ) operator delete(v302); v166 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4); cocos2d::CCArray::addObject(v166, v165); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v165); v167 = v164; v168 = *(__int64 (__fastcall **)(CCMenuItemToggler *))(*(_QWORD *)v164 + 192LL); v169 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v165 + 184LL); v287 = v168(v167); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 60.0, 0.0); cocos2d::CCPoint::operator+(v300, v287); v169(v165, v300); v171 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v170); *(_QWORD *)(a1 + 944) = v171; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v171 + 160LL))(v171, 0.7); v172 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( *(_QWORD *)(a1 + 944), 0, a1, (__int64)CreateParticlePopup::onSelectColor, 0); v173 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v173 + 456LL))(v173, v172); v174 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2); cocos2d::CCArray::addObject(v174, v172); v175 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v172 + 184LL); v284 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); LODWORD(v287) = 0.5; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v299, (float)((float)(*(float *)&v289 * *(float *)&v287) + -230.0) + 20.0, (float)((float)(*((float *)&v289 + 1) * *(float *)&v287) + 150.0) - 20.0); cocos2d::CCNode::convertToNodeSpace(v300, v284, (const cocos2d::CCPoint *)&v299); v175(v172, v300); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v172 + 72LL))(v172, 1); CreateParticlePopup::updateColorSprite((CreateParticlePopup *)a1, 1); v177 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v176); *(_QWORD *)(a1 + 952) = v177; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v177 + 160LL))(v177, 0.7); v178 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( *(_QWORD *)(a1 + 952), 0, a1, (__int64)CreateParticlePopup::onSelectColor, 0); v179 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v179 + 456LL))(v179, v178); v180 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2); cocos2d::CCArray::addObject(v180, v178); v181 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v178 + 184LL); v182 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v299, (float)((float)((float)(*(float *)&v289 * *(float *)&v287) + -230.0) + 20.0) + 32.0, (float)((float)(*((float *)&v289 + 1) * *(float *)&v287) + 150.0) - 20.0); cocos2d::CCNode::convertToNodeSpace(v300, v182, (const cocos2d::CCPoint *)&v299); v181(v178, v300); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v178 + 72LL))(v178, 2); CreateParticlePopup::updateColorSprite((CreateParticlePopup *)a1, 2); v184 = ButtonSprite::create( (ButtonSprite *)"<>", (const char *)&word_12, 0, 1, 0.8, "goldFont.fnt", "GJ_button_05.png", v183, 32.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v184 + 160LL))(v184, 0.7); v185 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v184, 0, a1, (__int64)CreateParticlePopup::onDuplicateColor, 0); v186 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v186 + 456LL))(v186, v185); v187 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2); cocos2d::CCArray::addObject(v187, v185); v188 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v185 + 184LL); v189 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v299, (float)((float)((float)((float)(*(float *)&v289 * *(float *)&v287) + -230.0) + 20.0) + 32.0) + 32.0, (float)((float)(*((float *)&v289 + 1) * *(float *)&v287) + 150.0) - 20.0); cocos2d::CCNode::convertToNodeSpace(v300, v189, (const cocos2d::CCPoint *)&v299); v188(v185, v300); CreateParticlePopup::getPageInputNodes((cocos2d::CCArray **)a1, 0); CreateParticlePopup::getPageSliders((cocos2d::CCArray **)a1, 0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v293, (float)(*(float *)&v289 * *(float *)&v287) + -110.0, (float)((float)(*((float *)&v289 + 1) * *(float *)&v287) + 150.0) - 40.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -24.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 1u, 1u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -48.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 2u, 1u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -72.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 3u, 1u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -72.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 4u, 1u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -96.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 5u, 1u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 6u, 1u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 7u, 1u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -144.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 8u, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -144.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 9u, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -168.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xAu, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -168.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xBu, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -192.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xCu, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -192.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xDu, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -216.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xEu, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -216.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0xFu, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -240.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x10u, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -240.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x11u, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 960)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -144.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x32u, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -144.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x33u, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -168.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x34u, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -168.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x35u, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -192.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x36u, 1u, 0, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -192.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider( (cocos2d::CCArray **)a1, 0x37u, 1u, 1u, (__int64)v300, *(cocos2d::CCArray **)(a1 + 968)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -20.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x12u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -20.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x13u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -40.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x14u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -40.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x15u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -60.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x16u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -60.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x17u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -80.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x18u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -80.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x19u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -100.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Au, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -100.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Bu, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Cu, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Du, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -140.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Eu, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -140.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Fu, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -160.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x20u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -160.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x21u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -180.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x22u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -180.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x23u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -200.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x24u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -200.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x25u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -220.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x26u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -220.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x27u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -240.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x28u, 2u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -240.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x29u, 2u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -20.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Au, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -20.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Bu, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -40.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Cu, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -40.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Du, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -60.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Eu, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -60.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Fu, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -80.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x45u, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -80.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x46u, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -100.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x47u, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -100.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x48u, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 0.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x30u, 3u, 0, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, 145.0, -120.0); cocos2d::CCPoint::operator+(v300, v293); CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x31u, 3u, 1u, (__int64)v300, nullptr); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v294, (float)(*(float *)&v289 * 0.5) + -70.0, (float)(*((float *)&v289 + 1) * 0.5) + -10.0); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Additive", 8u); LOBYTE(v189) = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1272LL))(*(_QWORD *)(a1 + 712)); v190 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -24.0); cocos2d::CCPoint::operator+(&v299, v294); v191 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v192 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onToggleBlending, 0, (unsigned __int8)v189, v190, (const cocos2d::CCPoint *)&v299, a1, v191, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v192); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Start Size\n= End", 0x10u); v193 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 545LL); v194 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -48.0); cocos2d::CCPoint::operator+(&v299, v294); v195 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v196 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onToggleStartSizeEqualToEnd, 0, v193, v194, (const cocos2d::CCPoint *)&v299, a1, v195, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v196); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Start Spin\n= End", 0x10u); v197 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 544LL); v198 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -72.0); cocos2d::CCPoint::operator+(&v299, v294); v199 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v200 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onToggleStartSpinEqualToEnd, 0, v197, v198, (const cocos2d::CCPoint *)&v299, a1, v199, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v200); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Start Rad\n= End", 0xFu); v201 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 546LL); v202 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -96.0); cocos2d::CCPoint::operator+(&v299, v294); v203 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v204 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onToggleStartRadiusEqualToEnd, 0, v201, v202, (const cocos2d::CCPoint *)&v299, a1, v203, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v204); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Start rot\nis dir", 0x10u); v205 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1152LL))(*(_QWORD *)(a1 + 712)); v206 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 0.0, -120.0); cocos2d::CCPoint::operator+(&v299, v294); v207 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v208 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onToggleStartRotationIsDir, 0, v205, v206, (const cocos2d::CCPoint *)&v299, a1, v207, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v208); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Dynamic\nrotation", 0x10u); v209 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 547LL); v210 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 110.0, -72.0); cocos2d::CCPoint::operator+(&v299, v294); v211 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v212 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onDynamicRotation, 0, v209, v210, (const cocos2d::CCPoint *)&v299, a1, v211, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v212); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Animate\non Trigger", 0x12u); v213 = *(_BYTE *)(a1 + 1001); v214 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 110.0, -96.0); cocos2d::CCPoint::operator+(&v299, v294); v215 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v216 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onAnimateOnTrigger, 0, v213, v214, (const cocos2d::CCPoint *)&v299, a1, v215, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v216); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Animate\nActive Only", 0x13u); v217 = *(_BYTE *)(a1 + 1002); v218 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 110.0, -120.0); cocos2d::CCPoint::operator+(&v299, v294); v219 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v220 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onAnimateActiveOnly, 0, v217, v218, (const cocos2d::CCPoint *)&v299, a1, v219, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v220); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Quick\nStart", 0xBu); v221 = *(_BYTE *)(a1 + 1003); v222 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 220.0, -96.0); cocos2d::CCPoint::operator+(&v299, v294); v223 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v224 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onQuickStart, 0, v221, v222, (const cocos2d::CCPoint *)&v299, a1, v223, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v224); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Use\nobj color", 0xDu); v225 = *(_BYTE *)(a1 + 1000); v226 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 110.0, -24.0); cocos2d::CCPoint::operator+(&v299, v294); v227 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v228 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); v229 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onDynamicColor, 0, v225, v226, (const cocos2d::CCPoint *)&v299, a1, v227, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v228); *(_QWORD *)(a1 + 856) = v229; if ( (v303 & 1) != 0 ) { operator delete(v305); v229 = *(CCMenuItemToggler **)(a1 + 856); } *((_BYTE *)v229 + 393) = 1; v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Uniform\nobj color", 0x11u); v230 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 740LL); v231 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 110.0, -48.0); cocos2d::CCPoint::operator+(&v299, v294); v232 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v233 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); v234 = GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onUniformColor, 0, v230, v231, (const cocos2d::CCPoint *)&v299, a1, v232, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v233); *(_QWORD *)(a1 + 864) = v234; if ( (v303 & 1) != 0 ) { operator delete(v305); v234 = *(CCMenuItemToggler **)(a1 + 864); } *((_BYTE *)v234 + 393) = 1; v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "Order\nSensitive", 0xFu); v235 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 548LL); v236 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 220.0, -24.0); cocos2d::CCPoint::operator+(&v299, v294); v237 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v238 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onOrderSensitive, 0, v235, v236, (const cocos2d::CCPoint *)&v299, a1, v237, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v238); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "StartRGB\nVar Sync", 0x11u); v239 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 549LL); v240 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 220.0, -48.0); cocos2d::CCPoint::operator+(&v299, v294); v241 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v242 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onStartRGBVarSync, 0, v239, v240, (const cocos2d::CCPoint *)&v299, a1, v241, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v242); if ( (v303 & 1) != 0 ) operator delete(v305); v303 = 0; v304 = 0; v305 = nullptr; std::string::__init(&v303, "EndRGB\nVar Sync", 0xFu); v243 = *(_BYTE *)(*(_QWORD *)(a1 + 712) + 550LL); v244 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v298, 220.0, -72.0); cocos2d::CCPoint::operator+(&v299, v294); v245 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, 8.0, 0.0); v246 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3); GameToolbox::createToggleButton( (__int64)&v303, (const char *)CreateParticlePopup::onEndRGBVarSync, 0, v243, v244, (const cocos2d::CCPoint *)&v299, a1, v245, 0.6, 0.28, 0.0, (float *)v300, "bigFont.fnt", 0, 0, v246); if ( (v303 & 1) != 0 ) operator delete(v305); v248 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_select_001.png", v247); *(_QWORD *)(a1 + 888) = v248; v249 = 0; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v248 + 160LL))(v248, 0.9); v250 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v250 + 464LL))(v250, *(_QWORD *)(a1 + 888), 100); v251 = *(float **)(a1 + 888); v252 = v251[108]; v253 = v252 * (*(float (__fastcall **)(float *))(*(_QWORD *)v251 + 168LL))(v251); v254 = *(float **)(a1 + 888); v255 = v254[109]; v256 = (*(float (__fastcall **)(float *))(*(_QWORD *)v254 + 168LL))(v254); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v295, v253, v255 * v256); v257 = (cocos2d::CCNode *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1); v258 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v296, (float)(*(float *)&v289 * 0.5) + -56.0, (float)(*((float *)&v289 + 1) * 0.5) + 75.0); do { v263 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"particle_%02d_001.png", (const char *)v249); v264 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v263); v266 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v264, v265); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v266 + 160LL))(v266, 19.0 / v266[109]); v298 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v266, 0, a1, (__int64)CreateParticlePopup::onSelectParticleTexture, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v298 + 320LL))(v298, v295); v267 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v266 + 184LL); v288 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v298 + 328LL))(v298) * 0.5; v268 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v298 + 328LL))(v298); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, v288, *(float *)(v268 + 4) * 0.5); v267(v266, v300); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v298 + 72LL))(v298, v249); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCObject *))(*(_QWORD *)v257 + 456LL))(v257, v298); cocos2d::CCArray::addObject(v258, v298); v259 = *(cocos2d::CCObject ***)(a1 + 904); if ( *(cocos2d::CCObject ***)(a1 + 912) == v259 ) { std::vector::__push_back_slow_path(a1 + 896, &v298); } else { if ( v259 ) { *v259 = v298; v259 = *(cocos2d::CCObject ***)(a1 + 904); } *(_QWORD *)(a1 + 904) = v259 + 1; } v260 = (int)v249++ % 88; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, (float)(v260 % 11) * 24.0, (float)(v260 / 11) * -24.0); cocos2d::CCPoint::operator+(&v299, &v296); v261 = v298; v262 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v298 + 184LL); cocos2d::CCNode::convertToNodeSpace(v300, v257, (const cocos2d::CCPoint *)&v299); v262(v261, v300); } while ( v249 != 362 ); v91 = v297 - 84.0; v92 = (const char *)(unsigned int)(*(_DWORD *)(a1 + 992) / 88); *(_DWORD *)(a1 + 928) = (_DWORD)v92; v93 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v92); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v93 + 160LL))(v93, 0.7); v94 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v93, 0, a1, (__int64)CreateParticlePopup::onTexturePage, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v94 + 72LL))(v94, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCObject *))(*(_QWORD *)v257 + 456LL))(v257, v94); cocos2d::CCArray::addObject(v258, v94); v95 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v94 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, v296 - 26.0, v91); cocos2d::CCNode::convertToNodeSpace(v300, v257, (const cocos2d::CCPoint *)&v299); v95(v94, v300); v97 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v96); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v97 + 160LL))(v97, 0.7); cocos2d::CCSprite::setFlipX(v97, 1); v98 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v97, 0, a1, (__int64)CreateParticlePopup::onTexturePage, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v98 + 72LL))(v98, 1); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCObject *))(*(_QWORD *)v257 + 456LL))(v257, v98); cocos2d::CCArray::addObject(v258, v98); v99 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v98 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v299, (float)(v296 + 240.0) + 26.0, v91); cocos2d::CCNode::convertToNodeSpace(v300, v257, (const cocos2d::CCPoint *)&v299); v99(v98, v300); v101 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1/1", "goldFont.fnt", v100); *(_QWORD *)(a1 + 920) = v101; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v101 + 160LL))(v101, 0.5); v102 = *(_QWORD *)(a1 + 920); v103 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v102 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v300, v296 + 120.0, (float)(v297 - 168.0) - 37.0); v103(v102, v300); v104 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v104 + 456LL))(v104, *(_QWORD *)(a1 + 920)); v105 = *(_QWORD *)(a1 + 680); if ( v105 ) v106 = *(_DWORD *)(v105 + 1772); else v106 = *(_DWORD *)(a1 + 996); if ( v106 <= 0 ) v106 = 1; *(_DWORD *)(a1 + 996) = v106; PageButton = (cocos2d::CCObject *)CreateParticlePopup::getPageButton((cocos2d::CCArray **)a1, v106); CreateParticlePopup::onPage((CreateParticlePopup *)a1, PageButton); v108 = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1592LL))(*(_QWORD *)(a1 + 712)) == 0; CreateParticlePopup::toggleGravityMode((cocos2d::CCArray **)a1, v108); cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)a1); *(_BYTE *)(a1 + 704) = 0; return v281; }