//
// CreateParticlePopup::init from 0x667328 to 0x669efe (11222 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::create @ 0x66a110
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:44 +0000
//
cocos2d::CCDirector *__fastcall CreateParticlePopup::init(
int a1,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3,
unsigned __int8 *a4)
{
cocos2d::CCDirector *v8; // r0
int v9; // r0
int v10; // r1
ButtonSprite *v11; // r2
_BYTE *v12; // r3
cocos2d::CCArray *v13; // r0
cocos2d::CCObject *v14; // r0
_BYTE *v15; // r0
cocos2d::CCArray *v16; // r11
int v17; // r10
_BYTE *v18; // r8
cocos2d::CCObject *v19; // r0
_BYTE *v20; // r3
bool v21; // nf
int v22; // r0
int v23; // r1
ButtonSprite *v24; // r2
int v25; // r5
cocos2d::CCArray *WinSize; // r0
cocos2d::CCObject *v27; // r0
cocos2d::CCArray *v28; // r0
cocos2d::CCObject *v29; // r0
cocos2d::CCArray *v30; // r0
cocos2d::CCObject *v31; // r0
cocos2d::CCArray *v32; // r0
cocos2d::CCObject *v33; // r0
cocos2d::CCDictionary *v34; // r0
cocos2d::CCObject *v35; // r0
cocos2d::CCDictionary *v36; // r0
cocos2d::CCObject *v37; // r0
cocos2d::CCObject *v38; // r0
int v39; // r9
cocos2d::CCArray *v40; // r0
cocos2d::CCObject *v41; // r0
cocos2d::CCArray *v42; // r0
cocos2d::CCObject *v43; // r0
cocos2d::CCNode *v44; // r0
cocos2d::CCObject *v45; // r5
cocos2d::CCMenu *v46; // r0
cocos2d::CCObject *v47; // r8
cocos2d::CCArray *v48; // r0
cocos2d::CCArray *v49; // r5
cocos2d::CCObject *v50; // r0
int v51; // r8
void (__fastcall *v52)(int, _DWORD *); // r10
void (__fastcall *v53)(int, _DWORD *); // r10
const char *v54; // r2
int v55; // r10
void (__fastcall *v56)(int, _DWORD *); // r8
int v57; // r3
int v58; // r3
int v59; // r0
int v60; // r3
cocos2d::CCObject *v61; // r0
int v62; // r6
void (__fastcall *v63)(int, _DWORD *); // r8
__int16 *v64; // r0
cocos2d::CCParticleSystemQuad *v65; // r1
cocos2d::CCLayerColor *v66; // r0
int v67; // r6
void (__fastcall *v68)(int, _DWORD *); // r8
int v69; // r6
int (__fastcall *v70)(int, _DWORD *); // r8
GameManager *v71; // r0
GameManager *v72; // r0
char GameVariable; // r0
const char *v74; // r2
int v75; // r0
int v76; // r6
void (__fastcall *v77)(int, _DWORD *); // r9
int v78; // r6
void (__fastcall *v79)(int, _DWORD *); // r9
int v80; // r10
ButtonSprite *v81; // r0
cocos2d::CCMenu *v82; // r10
char *v83; // r3
ButtonSprite *v84; // r0
cocos2d::CCMenuItem *v85; // r8
ButtonSprite *v86; // r0
int v87; // r11
int v88; // r0
int v89; // r9
void (__fastcall *v90)(int, _DWORD *); // r6
void (__fastcall *v91)(int, _DWORD *); // r6
void (__fastcall *v92)(cocos2d::CCMenuItem *, _DWORD *); // r6
const char *v93; // r6
cocos2d::CCString *v94; // r0
ButtonSprite *CString; // r0
ButtonSprite *v96; // r7
int v97; // r7
void (__fastcall *v98)(int, _DWORD *); // r11
int v99; // r5
ButtonSprite *v100; // r6
int v101; // r11
const cocos2d::CCPoint *v102; // r10
void (__fastcall *v103)(int, _DWORD *); // r9
const char *v104; // r1
int v105; // r0
int v106; // r0
int v107; // r11
const cocos2d::CCPoint *v108; // r10
void (__fastcall *v109)(int, _DWORD *); // r9
int v110; // r6
int (__fastcall *v111)(int, int); // r7
int v112; // r0
cocos2d::CCArray *v113; // r0
cocos2d::CCObject *v114; // r0
char *v115; // r1
ButtonSprite *v116; // r0
char *v117; // r3
ButtonSprite *v118; // r7
cocos2d::CCObject *v119; // r7
int *v120; // r0
int v121; // r2
unsigned int v122; // r8
const cocos2d::CCPoint *PageMenu; // r10
int Page; // r9
cocos2d::CCArray *PageContainer; // r0
int v126; // r0
_BOOL4 v127; // r10
const cocos2d::CCPoint *v128; // r8
int v129; // r5
cocos2d::CCArray *v130; // r0
int v131; // r0
_BOOL4 v132; // r9
const cocos2d::CCPoint *v133; // r6
int v134; // r10
int *v135; // r0
int v136; // r3
unsigned int v137; // r9
const cocos2d::CCPoint *v138; // r10
int v139; // r6
cocos2d::CCArray *v140; // r0
int v141; // r0
_BOOL4 v142; // r9
const cocos2d::CCPoint *v143; // r11
int v144; // r10
cocos2d::CCArray *v145; // r0
GameManager *v146; // r0
GameManager *v147; // r0
int v148; // r10
const cocos2d::CCPoint *v149; // r11
int v150; // r7
cocos2d::CCArray *v151; // r0
cocos2d::CCNodeRGBA *ToggleButton; // r11
cocos2d::CCObject *v153; // r10
cocos2d::CCArray *v154; // r0
void (__fastcall *v155)(cocos2d::CCObject *, _DWORD *); // r7
int v156; // r8
const char *v157; // r1
int v158; // r0
int v159; // r0
cocos2d::CCObject *v160; // r9
int v161; // r0
cocos2d::CCArray *v162; // r0
int v163; // r2
const char *v164; // r1
int v165; // r0
int v166; // r0
cocos2d::CCObject *v167; // r10
int v168; // r0
cocos2d::CCArray *v169; // r0
void (__fastcall *v170)(cocos2d::CCObject *, _DWORD *); // r11
const cocos2d::CCPoint *v171; // r9
int v172; // r2
ButtonSprite *v173; // r11
cocos2d::CCObject *v174; // r11
int v175; // r0
cocos2d::CCArray *v176; // r0
const cocos2d::CCPoint *v177; // r9
int v178; // r0
int v179; // r7
const cocos2d::CCPoint *v180; // r11
int v181; // r10
cocos2d::CCArray *v182; // r0
int v183; // r11
const cocos2d::CCPoint *v184; // r7
int v185; // r10
cocos2d::CCArray *v186; // r0
int v187; // r9
const cocos2d::CCPoint *v188; // r11
int v189; // r10
cocos2d::CCArray *v190; // r0
int v191; // r10
const cocos2d::CCPoint *v192; // r9
int v193; // r7
cocos2d::CCArray *v194; // r0
int v195; // r0
int v196; // r10
const cocos2d::CCPoint *v197; // r9
int v198; // r7
cocos2d::CCArray *v199; // r0
int v200; // r10
const cocos2d::CCPoint *v201; // r9
int v202; // r8
cocos2d::CCArray *v203; // r0
int v204; // r9
const cocos2d::CCPoint *v205; // r8
int v206; // r10
cocos2d::CCArray *v207; // r0
int v208; // r9
const cocos2d::CCPoint *v209; // r11
int v210; // r10
cocos2d::CCArray *v211; // r0
int v212; // r10
const cocos2d::CCPoint *v213; // r9
int v214; // r6
cocos2d::CCArray *v215; // r0
int v216; // r10
const cocos2d::CCPoint *v217; // r9
int v218; // r7
cocos2d::CCArray *v219; // r0
int v220; // r10
const cocos2d::CCPoint *v221; // r9
int v222; // r5
cocos2d::CCArray *v223; // r0
int v224; // r9
const cocos2d::CCPoint *v225; // r5
int v226; // r8
cocos2d::CCArray *v227; // r0
int v228; // r9
const cocos2d::CCPoint *v229; // r11
int v230; // r10
cocos2d::CCArray *v231; // r0
int v232; // r10
const cocos2d::CCPoint *v233; // r9
int v234; // r8
cocos2d::CCArray *v235; // r0
const char *v236; // r8
const char *v237; // r1
int v238; // r0
int v239; // r0
float *v240; // r0
float v241; // s17
float v242; // s15
float *v243; // r0
float v244; // s16
float v245; // r0
const cocos2d::CCPoint *v246; // r5
cocos2d::CCString *v247; // r0
cocos2d::CCSprite *v248; // r0
const char *v249; // r1
float *v250; // r7
void (__fastcall *v251)(float *, _DWORD *); // r9
float v252; // s17
int v253; // r0
cocos2d::CCObject **v254; // r3
int v255; // r1
const char *v256; // r1
float v257; // s15
float v258; // s16
int v259; // r10
cocos2d::CCObject *v260; // r10
const char *v261; // r1
cocos2d::CCSprite *v262; // r9
cocos2d::CCObject *v263; // r9
void (__fastcall *v264)(cocos2d::CCObject *, cocos2d::CCObject **); // r10
const char *v265; // r2
int v266; // r0
int v267; // r5
void (__fastcall *v268)(int, cocos2d::CCObject **); // r8
int v269; // r0
int v270; // r3
int v271; // r1
cocos2d::CCObject *PageButton; // r0
int v273; // r0
float v275; // [sp+10h] [bp-1D4h]
float v276; // [sp+10h] [bp-1D4h]
float v277; // [sp+10h] [bp-1D4h]
float v278; // [sp+10h] [bp-1D4h]
float v279; // [sp+10h] [bp-1D4h]
float v280; // [sp+10h] [bp-1D4h]
cocos2d::CCArray *v281; // [sp+2Ch] [bp-1B8h]
void (__fastcall *v282)(cocos2d::CCObject *, _DWORD *); // [sp+34h] [bp-1B0h]
cocos2d::CCArray *v283; // [sp+38h] [bp-1ACh]
cocos2d::CCArray *v284; // [sp+38h] [bp-1ACh]
cocos2d::CCArray *v285; // [sp+38h] [bp-1ACh]
cocos2d::CCPoint *v286; // [sp+3Ch] [bp-1A8h]
cocos2d::CCPoint *v287; // [sp+3Ch] [bp-1A8h]
cocos2d::CCDirector *v288; // [sp+40h] [bp-1A4h]
cocos2d::CCPoint *v289; // [sp+44h] [bp-1A0h]
cocos2d::CCPoint *v290; // [sp+44h] [bp-1A0h]
cocos2d::CCPoint *v291; // [sp+48h] [bp-19Ch]
cocos2d::CCPoint *v292; // [sp+48h] [bp-19Ch]
float v293; // [sp+64h] [bp-180h] BYREF
float v294; // [sp+68h] [bp-17Ch]
_BYTE v295[8]; // [sp+6Ch] [bp-178h] BYREF
_BYTE v296[8]; // [sp+74h] [bp-170h] BYREF
_BYTE v297[8]; // [sp+7Ch] [bp-168h] BYREF
_BYTE v298[8]; // [sp+84h] [bp-160h] BYREF
_BYTE v299[8]; // [sp+8Ch] [bp-158h] BYREF
_BYTE v300[8]; // [sp+94h] [bp-150h] BYREF
float v301; // [sp+9Ch] [bp-148h] BYREF
float v302; // [sp+A0h] [bp-144h]
char v303[8]; // [sp+A4h] [bp-140h] BYREF
cocos2d::CCObject *v304[16]; // [sp+ACh] [bp-138h] BYREF
int (__fastcall *v305)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+ECh] [bp-F8h]
int v306; // [sp+F0h] [bp-F4h]
int (__fastcall *v307)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+F4h] [bp-F0h]
int v308; // [sp+F8h] [bp-ECh]
int (__fastcall *v309)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+FCh] [bp-E8h]
int v310; // [sp+100h] [bp-E4h]
bool (__fastcall *v311)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+104h] [bp-E0h]
int v312; // [sp+108h] [bp-DCh]
bool (__fastcall *v313)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+10Ch] [bp-D8h]
int v314; // [sp+110h] [bp-D4h]
int (__fastcall *v315)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+114h] [bp-D0h]
int v316; // [sp+118h] [bp-CCh]
int (__fastcall *v317)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+11Ch] [bp-C8h]
int v318; // [sp+120h] [bp-C4h]
int (__fastcall *v319)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+124h] [bp-C0h]
int v320; // [sp+128h] [bp-BCh]
int (__fastcall *v321)(CreateParticlePopup *, cocos2d::CCObject *, int); // [sp+12Ch] [bp-B8h]
int v322; // [sp+130h] [bp-B4h]
unsigned int (__fastcall *v323)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+134h] [bp-B0h]
int v324; // [sp+138h] [bp-ACh]
unsigned int (__fastcall *v325)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+13Ch] [bp-A8h]
int v326; // [sp+140h] [bp-A4h]
unsigned int (__fastcall *v327)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+144h] [bp-A0h]
int v328; // [sp+148h] [bp-9Ch]
unsigned int (__fastcall *v329)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+14Ch] [bp-98h]
int v330; // [sp+150h] [bp-94h]
unsigned int (__fastcall *v331)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+154h] [bp-90h]
int v332; // [sp+158h] [bp-8Ch]
unsigned int (__fastcall *v333)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+15Ch] [bp-88h]
int v334; // [sp+160h] [bp-84h]
unsigned int (__fastcall *v335)(unsigned int, cocos2d::CCObject *); // [sp+164h] [bp-80h]
int v336; // [sp+168h] [bp-7Ch]
unsigned int (__fastcall *v337)(unsigned int, cocos2d::CCObject *); // [sp+16Ch] [bp-78h]
int v338; // [sp+170h] [bp-74h]
unsigned int (__fastcall *v339)(unsigned int, cocos2d::CCObject *); // [sp+174h] [bp-70h]
int v340; // [sp+178h] [bp-6Ch]
int (__fastcall *v341)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+17Ch] [bp-68h]
int v342; // [sp+180h] [bp-64h]
int (__fastcall *v343)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+184h] [bp-60h]
int v344; // [sp+188h] [bp-5Ch]
unsigned int (__fastcall *v345)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+18Ch] [bp-58h]
int v346; // [sp+190h] [bp-54h]
unsigned int (__fastcall *v347)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+194h] [bp-50h]
int v348; // [sp+198h] [bp-4Ch]
unsigned int (__fastcall *v349)(CreateParticlePopup *, cocos2d::CCObject *); // [sp+19Ch] [bp-48h]
int v350; // [sp+1A0h] [bp-44h]
_DWORD v351[2]; // [sp+1A4h] [bp-40h] BYREF
_DWORD v352[2]; // [sp+1ACh] [bp-38h] BYREF
int v353[3]; // [sp+1B4h] [bp-30h] BYREF
int v354; // [sp+1C0h] [bp-24h] BYREF
int v355; // [sp+1C4h] [bp-20h]
ButtonSprite *v356; // [sp+1C8h] [bp-1Ch]
_DWORD v357[4]; // [sp+1CCh] [bp-18h] BYREF
v8 = FLAlertLayer::init((FLAlertLayer *)a1, 150);
v288 = v8;
if ( v8 )
{
*(_BYTE *)(a1 + 704) = 0;
*(_BYTE *)(a1 + 540) = 1;
*(_BYTE *)(a1 + 468) = 1;
*(_BYTE *)(a1 + 705) = 0;
*(_BYTE *)(a1 + 706) = 0;
*(_BYTE *)(a1 + 707) = 0;
if ( a2 )
{
*(_DWORD *)(a1 + 528) = a2;
cocos2d::CCObject::retain(a2);
std::string::basic_string(&v354, *(_DWORD *)(a1 + 528) + 1268);
if ( (*a4 & 1) != 0 )
{
**((_BYTE **)a4 + 2) = 0;
*((_DWORD *)a4 + 1) = 0;
}
else
{
a4[1] = 0;
*a4 = 0;
}
std::string::reserve((int *)a4, 0);
v9 = v354;
v10 = v355;
v11 = v356;
v354 = 0;
v355 = 0;
v356 = nullptr;
*(_DWORD *)a4 = v9;
*((_DWORD *)a4 + 1) = v10;
*((_DWORD *)a4 + 2) = v11;
v8 = (cocos2d::CCDirector *)std::string::~string((int)&v354);
v12 = *(_BYTE **)(a1 + 528);
*(_BYTE *)(a1 + 704) = v12[677];
*(_BYTE *)(a1 + 705) = v12[1237];
*(_BYTE *)(a1 + 706) = v12[1260];
*(_BYTE *)(a1 + 707) = v12[1568];
}
else if ( a3 )
{
*(_DWORD *)(a1 + 532) = a3;
v13 = (cocos2d::CCArray *)cocos2d::CCObject::retain(a3);
v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13);
*(_DWORD *)(a1 + 536) = v14;
cocos2d::CCObject::retain(v14);
while ( 1 )
{
v8 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 532));
if ( a2 >= v8 )
break;
v15 = (_BYTE *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 532), (unsigned int)a2);
v16 = *(cocos2d::CCArray **)(a1 + 536);
v17 = (int)(v15 + 1268);
v18 = v15;
std::string::basic_string(&v354, (int)(v15 + 1268));
v19 = (cocos2d::CCObject *)GameToolbox::particleFromString((unsigned __int8 *)&v354, 0, 0);
cocos2d::CCArray::addObject(v16, v19);
std::string::~string((int)&v354);
if ( !a2 )
{
std::string::basic_string(&v354, v17);
v20 = (_BYTE *)*a4;
v21 = ((unsigned __int8)v20 & 1) != 0;
if ( ((unsigned __int8)v20 & 1) != 0 )
v20 = *((_BYTE **)a4 + 2);
else
a4[1] = 0;
if ( v21 )
{
*v20 = 0;
*((_DWORD *)a4 + 1) = 0;
}
else
{
*a4 = 0;
}
std::string::reserve((int *)a4, 0);
v22 = v354;
v23 = v355;
v24 = v356;
v354 = 0;
v355 = 0;
v356 = nullptr;
*(_DWORD *)a4 = v22;
*((_DWORD *)a4 + 1) = v23;
*((_DWORD *)a4 + 2) = v24;
std::string::~string((int)&v354);
*(_BYTE *)(a1 + 704) = v18[677];
*(_BYTE *)(a1 + 705) = v18[1237];
*(_BYTE *)(a1 + 706) = v18[1260];
*(_BYTE *)(a1 + 707) = v18[1568];
}
a2 = (cocos2d::CCObject *)((char *)a2 + 1);
}
}
cocos2d::CCDirector::sharedDirector(v8);
v25 = 5;
WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v293);
v27 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize);
*(_DWORD *)(a1 + 564) = v27;
v28 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v27);
v29 = (cocos2d::CCObject *)cocos2d::CCArray::create(v28);
*(_DWORD *)(a1 + 568) = v29;
v30 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v29);
v31 = (cocos2d::CCObject *)cocos2d::CCArray::create(v30);
*(_DWORD *)(a1 + 676) = v31;
v32 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v31);
v33 = (cocos2d::CCObject *)cocos2d::CCArray::create(v32);
*(_DWORD *)(a1 + 680) = v33;
v34 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v33);
do
{
v35 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v34);
v36 = (cocos2d::CCDictionary *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 564), v35);
v37 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v36);
v34 = (cocos2d::CCDictionary *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 568), v37);
--v25;
}
while ( v25 );
v38 = (cocos2d::CCObject *)cocos2d::CCArray::create(v34);
v39 = 4;
*(_DWORD *)(a1 + 572) = v38;
v40 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v38);
v41 = (cocos2d::CCObject *)cocos2d::CCArray::create(v40);
*(_DWORD *)(a1 + 580) = v41;
v42 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v41);
v43 = (cocos2d::CCObject *)cocos2d::CCArray::create(v42);
*(_DWORD *)(a1 + 584) = v43;
v44 = (cocos2d::CCNode *)cocos2d::CCObject::retain(v43);
do
{
v45 = (cocos2d::CCObject *)cocos2d::CCNode::create(v44);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v45);
v46 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 572), v45);
v47 = (cocos2d::CCObject *)cocos2d::CCMenu::create(v46);
(*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_DWORD *)v45 + 228))(v45, v47);
v48 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 580), v47);
v49 = *(cocos2d::CCArray **)(a1 + 584);
v50 = (cocos2d::CCObject *)cocos2d::CCArray::create(v48);
v44 = (cocos2d::CCNode *)cocos2d::CCArray::addObject(v49, v50);
--v39;
}
while ( v39 );
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v357, 0.0, 0.0, 80.0, 80.0);
v51 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v357);
v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v357, 460.0, 300.0);
v52(v51, v357);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v51, -2);
v53 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, v293 * 0.5, v294 * 0.5);
v53(v51, v357);
v55 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Create Particle Effect", "goldFont.fnt", v54);
(*(void (__fastcall **)(int, int))(*(_DWORD *)a1 + 228))(a1, v55);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v55 + 80))(v55, 1058642330);
v56 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v55 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, v293 * 0.5, (float)((float)(v294 * 0.5) + 150.0) - 13.0);
v56(v55, v357);
*(_DWORD *)(a1 + 544) = 0;
v57 = *a4;
if ( (v57 & 1) != 0 )
v58 = *((_DWORD *)a4 + 1);
else
v58 = v57 >> 1;
if ( !v58 )
std::string::assign(
(int *)a4,
"30a-1a1a0.3a30a90a90a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a1a0a1a0a1a0a1a1a0a0a1a0a1a0a1a0a1a0a0a0a0a0a0a0a0a0a0a0a0"
"a2a1a0a0a0a0a0a0a0a0a0a0");
v59 = GameToolbox::particleFromString(a4, 0, 0);
v60 = *(_DWORD *)(a1 + 532);
*(_DWORD *)(a1 + 544) = v59;
if ( v60 )
{
v61 = (cocos2d::CCObject *)GameToolbox::particleFromString(a4, 0, 0);
*(_DWORD *)(a1 + 548) = v61;
cocos2d::CCObject::retain(v61);
}
v62 = *(_DWORD *)(a1 + 544);
v63 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 60.0, 90.0);
v63(v62, v357);
v64 = *(__int16 **)(a1 + 544);
*(_DWORD *)(a1 + 696) = v64[370];
v66 = ParticlePreviewLayer::create((ParticlePreviewLayer *)v64, v65);
*(_DWORD *)(a1 + 588) = v66;
(*(void (__fastcall **)(_DWORD, cocos2d::CCLayerColor *))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
v66);
v67 = *(_DWORD *)(a1 + 588);
v68 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v67 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v357,
(float)((float)(v293 * 0.5) - 230.0) + 10.0,
(float)((float)(v294 * 0.5) - 150.0) + 10.0);
v68(v67, v357);
v69 = *(_DWORD *)(a1 + 588);
v70 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v69 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 0.0, 0.0);
v71 = (GameManager *)v70(v69, v357);
v72 = (GameManager *)GameManager::sharedState(v71);
GameVariable = GameManager::getGameVariable(v72, "0178");
*(_DWORD *)(a1 + 688) = 1065353216;
*(_BYTE *)(a1 + 684) = GameVariable;
v75 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "chatFont.fnt", v74);
*(_DWORD *)(a1 + 692) = v75;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v75 + 484))(v75, 2);
v76 = *(_DWORD *)(a1 + 692);
v77 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v76 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 1.0, 0.0);
v77(v76, v357);
v78 = *(_DWORD *)(a1 + 692);
v79 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 92);
v80 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 588) + 96))(*(_DWORD *)(a1 + 588));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 116.0, 2.0);
cocos2d::CCPoint::operator+(v357, v80, v352);
v79(v78, v357);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 692) + 80))(*(_DWORD *)(a1 + 692), 1058642330);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 692),
11);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 692) + 172))(
*(_DWORD *)(a1 + 692),
*(unsigned __int8 *)(a1 + 684));
v81 = ButtonSprite::create(
(ButtonSprite *)"OK",
(const char *)&word_28,
0,
0.6,
0,
"goldFont.fnt",
"GJ_button_01.png",
(const char *)0x41C80000,
v275);
v304[3] = nullptr;
v304[2] = (cocos2d::CCObject *)CreateParticlePopup::onClose;
v82 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v81, 0, a1, (int)CreateParticlePopup::onClose, 0);
if ( *(_DWORD *)(a1 + 528) )
v83 = "GJ_button_04.png";
else
v83 = "GJ_button_05.png";
v84 = ButtonSprite::create(
(ButtonSprite *)"C",
(const char *)&word_28,
0,
0.6,
0,
"goldFont.fnt",
v83,
COERCE_CONST_CHAR_(25.0),
v276);
v304[5] = nullptr;
v304[4] = (cocos2d::CCObject *)CreateParticlePopup::onCopySettings;
v85 = (cocos2d::CCMenuItem *)CCMenuItemSpriteExtra::create(
(int)v84,
0,
a1,
(int)CreateParticlePopup::onCopySettings,
0);
v86 = ButtonSprite::create(
(ButtonSprite *)"P",
(const char *)&word_28,
0,
0.6,
0,
"goldFont.fnt",
"GJ_button_04.png",
COERCE_CONST_CHAR_(25.0),
v277);
v304[7] = nullptr;
v304[6] = (cocos2d::CCObject *)CreateParticlePopup::onPasteSettings;
v87 = CCMenuItemSpriteExtra::create((int)v86, 0, a1, (int)CreateParticlePopup::onPasteSettings, 0);
v88 = cocos2d::CCMenu::create(v82, v85, v87, 0);
*(_DWORD *)(a1 + 444) = v88;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v88, 10);
v89 = *(_DWORD *)(a1 + 444);
v90 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v89 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v357,
(float)((float)(v293 * 0.5) + 230.0) - 30.0,
(float)((float)(v294 * 0.5) + 150.0) - 24.0);
v90(v89, v357);
v91 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v87 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, -45.0, 0.0);
v91(v87, v357);
v92 = *(void (__fastcall **)(cocos2d::CCMenuItem *, _DWORD *))(*(_DWORD *)v85 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, -80.0, 0.0);
v92(v85, v357);
if ( !*(_DWORD *)(a1 + 528) )
(*(void (__fastcall **)(cocos2d::CCMenuItem *))(*(_DWORD *)v85 + 528))(v85);
v93 = (_BYTE *)(&dword_0 + 1);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v295,
(float)((float)(v293 * 0.5) - 230.0) + 23.0,
(float)(v294 * 0.5) + 55.0);
do
{
v94 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v93);
CString = (ButtonSprite *)cocos2d::CCString::getCString(v94);
v96 = ButtonSprite::create(
CString,
(const char *)&dword_14,
0,
0.8,
1,
"goldFont.fnt",
"GJ_button_04.png",
COERCE_CONST_CHAR_(25.0),
v278);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v96 + 80))(v96, 1058642330);
v304[9] = nullptr;
v304[8] = (cocos2d::CCObject *)CreateParticlePopup::onMode;
v97 = CCMenuItemSpriteExtra::create((int)v96, 0, a1, (int)CreateParticlePopup::onMode, 0);
(*(void (__fastcall **)(int, const char *))(*(_DWORD *)v97 + 36))(v97, v93);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v97);
v98 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v97 + 92);
v289 = *(cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, (float)(int)(v93 - 1) * 24.0, 0.0);
cocos2d::CCPoint::operator+(v352, v295, v351);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v289);
v98(v97, v357);
if ( v93 == (_BYTE *)&dword_0 + 1 )
{
*(_DWORD *)(a1 + 592) = v97;
}
else if ( v93 == (_BYTE *)&dword_0 + 2 )
{
*(_DWORD *)(a1 + 596) = v97;
}
else
{
*(_DWORD *)(a1 + 600) = v97;
}
++v93;
}
while ( v93 != byte_4 );
v99 = 1;
v100 = ButtonSprite::create(
(ButtonSprite *)"C",
(const char *)&dword_14,
0,
0.8,
1,
"goldFont.fnt",
"GJ_button_05.png",
(const char *)0x41C80000,
v278);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v100 + 80))(v100, 1058642330);
v304[11] = nullptr;
v304[10] = (cocos2d::CCObject *)CreateParticlePopup::centerAlignParticle;
v101 = CCMenuItemSpriteExtra::create((int)v100, 0, a1, (int)CreateParticlePopup::centerAlignParticle, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v101);
v102 = *(const cocos2d::CCPoint **)(a1 + 444);
v103 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v101 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 72.0, 0.0);
cocos2d::CCPoint::operator+(v352, v295, v351);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v102);
v103(v101, v357);
v105 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v104);
*(_DWORD *)(a1 + 664) = v105;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v105 + 80))(v105, 1056964608);
v106 = *(_DWORD *)(a1 + 664);
v304[13] = nullptr;
v304[12] = (cocos2d::CCObject *)CreateParticlePopup::onSelectColor;
v107 = CCMenuItemSpriteExtra::create(v106, 0, a1, (int)CreateParticlePopup::onSelectColor, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v107);
v108 = *(const cocos2d::CCPoint **)(a1 + 444);
v109 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v107 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 96.0, 0.0);
cocos2d::CCPoint::operator+(v352, v295, v351);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v108);
v109(v107, v357);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v107 + 36))(v107, 0);
v110 = *(_DWORD *)(a1 + 664);
v111 = *(int (__fastcall **)(int, int))(*(_DWORD *)v110 + 480);
v112 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 588) + 600))(*(_DWORD *)(a1 + 588));
v113 = (cocos2d::CCArray *)v111(v110, v112);
v114 = (cocos2d::CCObject *)cocos2d::CCArray::create(v113);
*(_DWORD *)(a1 + 576) = v114;
cocos2d::CCObject::retain(v114);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v296,
(float)(v293 * 0.5) - 75.0,
(float)((float)(v294 * 0.5) + 150.0) - 35.0);
do
{
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, &unk_B6B226, 0);
switch ( v99 )
{
case 3:
v115 = "Extra";
break;
case 4:
v115 = "Texture";
break;
case 2:
v115 = "Visual";
break;
default:
v115 = "Motion";
break;
}
std::string::assign(&v354, v115);
if ( (v354 & 1) != 0 )
v116 = v356;
else
v116 = (ButtonSprite *)((char *)&v354 + 1);
if ( v99 == 1 )
v117 = "GJ_button_01.png";
else
v117 = "GJ_button_04.png";
v118 = ButtonSprite::create(
v116,
(const char *)&word_28,
0,
0.8,
1,
"goldFont.fnt",
v117,
(const char *)0x41C80000,
v279);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v118 + 80))(v118, 1060320051);
v304[15] = nullptr;
v304[14] = (cocos2d::CCObject *)CreateParticlePopup::onPage;
v119 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v118, 0, a1, (int)CreateParticlePopup::onPage, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v119 + 36))(v119, v99);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v119);
v290 = *(cocos2d::CCPoint **)(*(_DWORD *)v119 + 92);
v291 = *(cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, (float)(v99 - 1) * 50.0, 0.0);
cocos2d::CCPoint::operator+(v352, v296, v351);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v291);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v290)(v119, v357);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 576), v119);
++v99;
std::string::~string((int)&v354);
}
while ( v99 != 5 );
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v297,
(float)((float)(v293 * 0.5) - 230.0) + 20.0,
(float)((float)(v294 * 0.5) + 150.0) - 20.0);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Free", 4u);
v120 = *(int **)(a1 + 544);
v121 = *v120;
v306 = 0;
v305 = CreateParticlePopup::onPosType;
v122 = __clz((*(int (__fastcall **)(int *))(v121 + 780))(v120));
PageMenu = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -0.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
Page = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
PageContainer = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
*(_DWORD *)(a1 + 612) = GameToolbox::createToggleButton(
(int)&v354,
(int)v305,
v306,
v122 >> 5,
PageMenu,
(int)v352,
a1,
Page,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
PageContainer);
std::string::~string((int)&v354);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 612) + 36))(*(_DWORD *)(a1 + 612), 0);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Relative", 8u);
v126 = *(_DWORD *)(a1 + 544);
v307 = CreateParticlePopup::onPosType;
v308 = 0;
v127 = (*(int (__fastcall **)(int))(*(_DWORD *)v126 + 780))(v126) == 1;
v128 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -24.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
v129 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v130 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
*(_DWORD *)(a1 + 616) = GameToolbox::createToggleButton(
(int)&v354,
(int)v307,
v308,
v127,
v128,
(int)v352,
a1,
v129,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v130);
std::string::~string((int)&v354);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 616) + 36))(*(_DWORD *)(a1 + 616), 1);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Grouped", 7u);
v131 = *(_DWORD *)(a1 + 544);
v309 = CreateParticlePopup::onPosType;
v310 = 0;
v132 = (*(int (__fastcall **)(int))(*(_DWORD *)v131 + 780))(v131) == 2;
v133 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -48.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
v134 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v281 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
*(_DWORD *)(a1 + 620) = GameToolbox::createToggleButton(
(int)&v354,
(int)v309,
v310,
v132,
v133,
(int)v352,
a1,
v134,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v281);
std::string::~string((int)&v354);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 620) + 36))(*(_DWORD *)(a1 + 620), 2);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Gravity", 7u);
v135 = *(int **)(a1 + 544);
v136 = *v135;
v312 = 0;
v311 = CreateParticlePopup::onEmitterMode;
v137 = __clz((*(int (__fastcall **)(int *))(v136 + 796))(v135));
v138 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -0.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
v139 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v140 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 1);
*(_DWORD *)(a1 + 632) = GameToolbox::createToggleButton(
(int)&v354,
(int)v311,
v312,
v137 >> 5,
v138,
(int)v352,
a1,
v139,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v140);
std::string::~string((int)&v354);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 632) + 36))(*(_DWORD *)(a1 + 632), 0);
*(_BYTE *)(*(_DWORD *)(a1 + 632) + 309) = 1;
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Radius", 6u);
v141 = *(_DWORD *)(a1 + 544);
v313 = CreateParticlePopup::onEmitterMode;
v314 = 0;
v142 = (*(int (__fastcall **)(int))(*(_DWORD *)v141 + 796))(v141) == 1;
v143 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -24.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
v144 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v145 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 1);
*(_DWORD *)(a1 + 636) = GameToolbox::createToggleButton(
(int)&v354,
(int)v313,
v314,
v142,
v143,
(int)v352,
a1,
v144,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v145);
std::string::~string((int)&v354);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 636) + 36))(*(_DWORD *)(a1 + 636), 1);
*(_BYTE *)(*(_DWORD *)(a1 + 636) + 309) = 1;
v354 = 0;
v355 = 0;
v356 = nullptr;
v146 = (GameManager *)std::string::__init(&v354, "Perf\nLog", 8u);
v316 = 0;
v315 = CreateParticlePopup::onTogglePerfLog;
v147 = (GameManager *)GameManager::sharedState(v146);
v148 = GameManager::getGameVariable(v147, "0178");
v149 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -0.0);
cocos2d::CCPoint::operator+(v352, v297, v351);
v150 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v151 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4);
ToggleButton = GameToolbox::createToggleButton(
(int)&v354,
(int)v315,
v316,
v148,
v149,
(int)v352,
a1,
v150,
0.6,
0.35,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v151);
std::string::~string((int)&v354);
memset(v353, 0, sizeof(v353));
std::string::__init(v353, "Performance Log", 0xFu);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(
&v354,
"1: Active / Max Particles\n2: Draw cost.\nTry to keep the draw cost low.",
0x5Eu);
v153 = (cocos2d::CCObject *)InfoAlertButton::create((char *)v353, (int)&v354, 1058642330);
std::string::~string((int)&v354);
std::string::~string((int)v353);
v154 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4);
cocos2d::CCArray::addObject(v154, v153);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v153);
v155 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v153 + 92);
v156 = (*(int (__fastcall **)(cocos2d::CCNodeRGBA *))(*(_DWORD *)ToggleButton + 96))(ToggleButton);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 60.0, 0.0);
cocos2d::CCPoint::operator+(v357, v156, v352);
v155(v153, v357);
v158 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v157);
*(_DWORD *)(a1 + 668) = v158;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v158 + 80))(v158, 1060320051);
v159 = *(_DWORD *)(a1 + 668);
v318 = 0;
v317 = CreateParticlePopup::onSelectColor;
v160 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v159, 0, a1, (int)CreateParticlePopup::onSelectColor, 0);
v161 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
(*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v161 + 228))(v161, v160);
v162 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2);
cocos2d::CCArray::addObject(v162, v160);
v286 = *(cocos2d::CCPoint **)(*(_DWORD *)v160 + 92);
v283 = (cocos2d::CCArray *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v352,
(float)((float)(v293 * 0.5) - 230.0) + 20.0,
(float)((float)(v294 * 0.5) + 150.0) - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v283);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v286)(v160, v357);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v160 + 36))(v160, 1);
CreateParticlePopup::updateColorSprite((CreateParticlePopup *)a1, 1, v163);
v165 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v164);
*(_DWORD *)(a1 + 672) = v165;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v165 + 80))(v165, 1060320051);
v166 = *(_DWORD *)(a1 + 672);
v319 = CreateParticlePopup::onSelectColor;
v320 = 0;
v167 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v166, 0, a1, (int)CreateParticlePopup::onSelectColor, 0);
v168 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
(*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v168 + 228))(v168, v167);
v169 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2);
cocos2d::CCArray::addObject(v169, v167);
v170 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v167 + 92);
v171 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v352,
(float)((float)((float)(v293 * 0.5) - 230.0) + 20.0) + 32.0,
(float)((float)(v294 * 0.5) + 150.0) - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v171);
v170(v167, v357);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v167 + 36))(v167, 2);
CreateParticlePopup::updateColorSprite((CreateParticlePopup *)a1, 2, v172);
v173 = ButtonSprite::create(
(ButtonSprite *)"<>",
(const char *)&word_12,
0,
0.8,
1,
"goldFont.fnt",
"GJ_button_05.png",
(const char *)0x42000000,
v280);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v173 + 80))(v173, 1060320051);
v322 = 0;
v321 = CreateParticlePopup::onDuplicateColor;
v174 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v173,
0,
a1,
(int)CreateParticlePopup::onDuplicateColor,
0);
v175 = CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
(*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v175 + 228))(v175, v174);
v176 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 2);
cocos2d::CCArray::addObject(v176, v174);
v284 = *(cocos2d::CCArray **)(*(_DWORD *)v174 + 92);
v177 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 2);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v352,
(float)((float)((float)((float)(v293 * 0.5) - 230.0) + 20.0) + 32.0) + 32.0,
(float)((float)(v294 * 0.5) + 150.0) - 20.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v177);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v284)(v174, v357);
CreateParticlePopup::getPageInputNodes((cocos2d::CCArray **)a1, 0);
CreateParticlePopup::getPageSliders((cocos2d::CCArray **)a1, 0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v298,
(float)(v293 * 0.5) - 110.0,
(float)((float)(v294 * 0.5) + 150.0) - 40.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -24.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 1u, 1u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -48.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 2u, 1u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -72.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 3u, 1u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -72.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 4u, 1u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -96.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 5u, 1u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 6u, 1u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 7u, 1u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -144.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
8u,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -144.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
9u,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -168.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xAu,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -168.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xBu,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -192.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xCu,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -192.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xDu,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -216.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xEu,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -216.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0xFu,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -240.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x10u,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -240.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x11u,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 676));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -144.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x32u,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -144.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x33u,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -168.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x34u,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -168.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x35u,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -192.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x36u,
1u,
0,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -192.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider(
(cocos2d::CCArray **)a1,
0x37u,
1u,
1,
COERCE_FLOAT(v357),
*(cocos2d::CCArray **)(a1 + 680));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -20.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x12u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -20.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x13u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -40.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x14u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -40.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x15u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -60.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x16u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -60.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x17u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -80.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x18u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -80.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x19u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -100.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Au, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -100.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Bu, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Cu, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Du, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -140.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Eu, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -140.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x1Fu, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -160.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x20u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -160.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x21u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -180.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x22u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -180.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x23u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -200.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x24u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -200.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x25u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -220.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x26u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -220.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x27u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -240.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x28u, 2u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -240.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x29u, 2u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -20.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Au, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -20.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Bu, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -40.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Cu, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -40.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Du, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -60.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Eu, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -60.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x2Fu, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -80.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x45u, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -80.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x46u, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -100.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x47u, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -100.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x48u, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 0.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x30u, 3u, 0, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v352, 145.0, -120.0);
cocos2d::CCPoint::operator+(v357, v298, v352);
CreateParticlePopup::createParticleSlider((cocos2d::CCArray **)a1, 0x31u, 3u, 1, COERCE_FLOAT(v357), nullptr);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v299, (float)(v293 * 0.5) - 70.0, (float)(v294 * 0.5) - 10.0);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Additive", 8u);
v178 = *(_DWORD *)(a1 + 544);
v324 = 0;
v323 = CreateParticlePopup::onToggleBlending;
v179 = (*(int (__fastcall **)(int))(*(_DWORD *)v178 + 636))(v178);
v180 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -24.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v181 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v182 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v323,
v324,
v179,
v180,
(int)v352,
a1,
v181,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v182);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Start Size\n= End", 0x10u);
v326 = 0;
v325 = CreateParticlePopup::onToggleStartSizeEqualToEnd;
v183 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 465);
v184 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -48.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v185 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v186 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v325,
v326,
v183,
v184,
(int)v352,
a1,
v185,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v186);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Start Spin\n= End", 0x10u);
v328 = 0;
v327 = CreateParticlePopup::onToggleStartSpinEqualToEnd;
v187 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 464);
v188 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -72.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v189 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v190 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v327,
v328,
v187,
v188,
(int)v352,
a1,
v189,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v190);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Start Rad\n= End", 0xFu);
v330 = 0;
v329 = CreateParticlePopup::onToggleStartRadiusEqualToEnd;
v191 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 466);
v192 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -96.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v193 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v194 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v329,
v330,
v191,
v192,
(int)v352,
a1,
v193,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v194);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Start rot\nis dir", 0x10u);
v195 = *(_DWORD *)(a1 + 544);
v332 = 0;
v331 = CreateParticlePopup::onToggleStartRotationIsDir;
v196 = (*(int (__fastcall **)(int))(*(_DWORD *)v195 + 576))(v195);
v197 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 0.0, -120.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v198 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v199 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v331,
v332,
v196,
v197,
(int)v352,
a1,
v198,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v199);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Dynamic\nrotation", 0x10u);
v334 = 0;
v333 = CreateParticlePopup::onDynamicRotation;
v200 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 467);
v201 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 110.0, -72.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v202 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v203 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v333,
v334,
v200,
v201,
(int)v352,
a1,
v202,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v203);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Animate\non Trigger", 0x12u);
v336 = 0;
v204 = *(unsigned __int8 *)(a1 + 705);
v335 = CreateParticlePopup::onAnimateOnTrigger;
v205 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 110.0, -96.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v206 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v207 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v335,
v336,
v204,
v205,
(int)v352,
a1,
v206,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v207);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Animate\nActive Only", 0x13u);
v208 = *(unsigned __int8 *)(a1 + 706);
v338 = 0;
v337 = CreateParticlePopup::onAnimateActiveOnly;
v209 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 110.0, -120.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v210 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v211 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v337,
v338,
v208,
v209,
(int)v352,
a1,
v210,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v211);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Quick\nStart", 0xBu);
v340 = 0;
v212 = *(unsigned __int8 *)(a1 + 707);
v339 = CreateParticlePopup::onQuickStart;
v213 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 220.0, -96.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v214 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v215 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v339,
v340,
v212,
v213,
(int)v352,
a1,
v214,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v215);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Use\nobj color", 0xDu);
v216 = *(unsigned __int8 *)(a1 + 704);
v342 = 0;
v341 = CreateParticlePopup::onDynamicColor;
v217 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 110.0, -24.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v218 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v219 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
*(_DWORD *)(a1 + 624) = GameToolbox::createToggleButton(
(int)&v354,
(int)v341,
v342,
v216,
v217,
(int)v352,
a1,
v218,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v219);
std::string::~string((int)&v354);
*(_BYTE *)(*(_DWORD *)(a1 + 624) + 309) = 1;
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Uniform\nobj color", 0x11u);
v344 = 0;
v343 = CreateParticlePopup::onUniformColor;
v220 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 656);
v221 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 110.0, -48.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v222 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v223 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
*(_DWORD *)(a1 + 628) = GameToolbox::createToggleButton(
(int)&v354,
(int)v343,
v344,
v220,
v221,
(int)v352,
a1,
v222,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v223);
std::string::~string((int)&v354);
*(_BYTE *)(*(_DWORD *)(a1 + 628) + 309) = 1;
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "Order\nSensitive", 0xFu);
v346 = 0;
v345 = CreateParticlePopup::onOrderSensitive;
v224 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 468);
v225 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 220.0, -24.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v226 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v227 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v345,
v346,
v224,
v225,
(int)v352,
a1,
v226,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v227);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "StartRGB\nVar Sync", 0x11u);
v348 = 0;
v347 = CreateParticlePopup::onStartRGBVarSync;
v228 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 469);
v229 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 220.0, -48.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v230 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v231 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v347,
v348,
v228,
v229,
(int)v352,
a1,
v230,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v231);
std::string::~string((int)&v354);
v354 = 0;
v355 = 0;
v356 = nullptr;
std::string::__init(&v354, "EndRGB\nVar Sync", 0xFu);
v350 = 0;
v349 = CreateParticlePopup::onEndRGBVarSync;
v232 = *(unsigned __int8 *)(*(_DWORD *)(a1 + 544) + 470);
v233 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v351, 220.0, -72.0);
cocos2d::CCPoint::operator+(v352, v299, v351);
v234 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, 8.0, 0.0);
v235 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 3);
GameToolbox::createToggleButton(
(int)&v354,
(int)v349,
v350,
v232,
v233,
(int)v352,
a1,
v234,
0.6,
0.28,
0.0,
(int)v357,
"bigFont.fnt",
0,
0,
v235);
std::string::~string((int)&v354);
v236 = nullptr;
v238 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_select_001.png", v237);
*(_DWORD *)(a1 + 640) = v238;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v238 + 80))(v238, 1063675494);
v239 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4);
(*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v239 + 232))(v239, *(_DWORD *)(a1 + 640), 100);
v240 = *(float **)(a1 + 640);
v241 = v240[86];
v242 = COERCE_FLOAT((*(int (__fastcall **)(float *))(*(_DWORD *)v240 + 84))(v240));
v243 = *(float **)(a1 + 640);
v244 = v243[87];
v245 = (*(float (__fastcall **)(float *))(*(_DWORD *)v243 + 84))(v243);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v300, v241 * v242, v244 * v245);
v246 = (const cocos2d::CCPoint *)CreateParticlePopup::getPageMenu((CreateParticlePopup *)a1, 4);
v285 = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)a1, 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v301, (float)(v293 * 0.5) - 56.0, (float)(v294 * 0.5) + 75.0);
do
{
v247 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"particle_%02d_001.png",
v236);
v248 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v247);
v250 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v248, v249);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v250 + 80))(v250, 19.0 / v250[87]);
v351[1] = 0;
v351[0] = CreateParticlePopup::onSelectParticleTexture;
v304[0] = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v250,
0,
a1,
(int)CreateParticlePopup::onSelectParticleTexture,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v304[0] + 160))(v304[0], v300);
v251 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v250 + 92);
v252 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v304[0] + 164))(v304[0]);
v253 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v304[0] + 164))(v304[0]);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, v252 * 0.5, *(float *)(v253 + 4) * 0.5);
v251(v250, v357);
(*(void (__fastcall **)(cocos2d::CCObject *, const char *))(*(_DWORD *)v304[0] + 36))(v304[0], v236);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v246 + 228))(v246, v304[0]);
cocos2d::CCArray::addObject(v285, v304[0]);
v254 = *(cocos2d::CCObject ***)(a1 + 648);
if ( v254 == *(cocos2d::CCObject ***)(a1 + 652) )
{
std::vector::__push_back_slow_path(a1 + 644, v304);
}
else
{
if ( v254 )
*v254 = v304[0];
*(_DWORD *)(a1 + 648) += 4;
}
v255 = (int)v236++ % 88;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v357, (float)(v255 % 11) * 24.0, (float)(v255 / 11) * -24.0);
cocos2d::CCPoint::operator+(v352, &v301, v357);
v292 = v304[0];
v287 = *(cocos2d::CCPoint **)(*(_DWORD *)v304[0] + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v246);
((void (__fastcall *)(cocos2d::CCPoint *, _DWORD *))v287)(v292, v357);
}
while ( v236 != (_BYTE *)&dword_168 + 2 );
v257 = v302;
v258 = v302 - 84.0;
*(_DWORD *)(a1 + 660) = *(_DWORD *)(a1 + 696) / 88;
v259 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v256);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v259 + 80))(v259, 1060320051);
v352[1] = 0;
v352[0] = CreateParticlePopup::onTexturePage;
v260 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v259, 0, a1, (int)CreateParticlePopup::onTexturePage, 0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v260 + 36))(v260, -1);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v246 + 228))(v246, v260);
cocos2d::CCArray::addObject(v285, v260);
v282 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v260 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v304, v301 - 26.0, v257 - 84.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v357, v246);
v282(v260, v357);
v262 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_03_001.png",
v261);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v262 + 80))(v262, 1060320051);
cocos2d::CCSprite::setFlipX(v262, 1);
v357[0] = CreateParticlePopup::onTexturePage;
v357[1] = 0;
v263 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v262,
0,
a1,
(int)CreateParticlePopup::onTexturePage,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v263 + 36))(v263, 1);
(*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCObject *))(*(_DWORD *)v246 + 228))(v246, v263);
cocos2d::CCArray::addObject(v285, v263);
v264 = *(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject **))(*(_DWORD *)v263 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v303, (float)(v301 + 240.0) + 26.0, v258);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v304, v246);
v264(v263, v304);
v266 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1/1", "goldFont.fnt", v265);
*(_DWORD *)(a1 + 656) = v266;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v266 + 80))(v266, 1056964608);
v267 = *(_DWORD *)(a1 + 656);
v268 = *(void (__fastcall **)(int, cocos2d::CCObject **))(*(_DWORD *)v267 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v304, v301 + 120.0, (float)(v302 - 168.0) - 37.0);
v268(v267, v304);
v269 = CreateParticlePopup::getPage((cocos2d::CCArray **)a1, 4);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v269 + 228))(v269, *(_DWORD *)(a1 + 656));
v270 = *(_DWORD *)(a1 + 528);
if ( v270 )
*(_DWORD *)(a1 + 700) = *(_DWORD *)(v270 + 1564);
v271 = *(_DWORD *)(a1 + 700);
if ( v271 < 1 )
v271 = 1;
*(_DWORD *)(a1 + 700) = v271;
PageButton = (cocos2d::CCObject *)CreateParticlePopup::getPageButton((cocos2d::CCArray **)a1, v271);
CreateParticlePopup::onPage((CreateParticlePopup *)a1, PageButton);
v273 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 544) + 796))(*(_DWORD *)(a1 + 544));
CreateParticlePopup::toggleGravityMode((cocos2d::CCArray **)a1, v273 == 0);
cocos2d::CCNode::scheduleUpdate((cocos2d::CCNode *)a1);
*(_BYTE *)(a1 + 540) = 0;
}
return v288;
}