//
// CreateParticlePopup::init from 0x9c540c to 0x9c9308 (16124 bytes)
//
// 2 xrefs:
// > CreateParticlePopup::create @ 0x9c955c
// > ??> @ 0x9fe70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall CreateParticlePopup::init(
CreateParticlePopup *a1,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3,
__int64 *a4)
{
void *v7; // x0
ParticleGameObject *m_targetObject; // x0
bool m_particleUseObjectColor; // w3
bool m_animateOnTrigger; // w2
bool m_animateOnlyWhenActive; // w1
cocos2d::CCDirector *v12; // x0
int v13; // w22
cocos2d::CCArray *v14; // 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::CCDictionary *v23; // x0
cocos2d::CCArray *v24; // x0
cocos2d::CCObject *v25; // x0
int v26; // w23
cocos2d::CCArray *v27; // x0
cocos2d::CCObject *v28; // x0
cocos2d::CCArray *v29; // x0
cocos2d::CCObject *v30; // x0
cocos2d::CCNode *v31; // x22
cocos2d::CCMenu *v32; // x24
cocos2d::CCArray *v33; // x0
cocos2d::CCArray *m_pageObjectArrays; // x22
cocos2d::CCObject *v35; // x0
cocos2d::CCNode *v36; // x22
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x23
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCLabelBMFont *v39; // x22
void (__fastcall *v40)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
__int64 v41; // x0
cocos2d::CCParticleSystemQuad *m_particle; // x22
cocos2d::CCArray *m_targetObjects; // x0
cocos2d::CCParticleSystemQuad *v44; // x0
void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCParticleSystemQuad *v46; // x0
ParticlePreviewLayer *v47; // x0
cocos2d::CCLayer *m_mainLayer; // x2
ParticlePreviewLayer *m_previewLayer; // x22
void (__fastcall *v50)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
ParticlePreviewLayer *v51; // x22
void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
GameManager *v53; // x0
cocos2d::CCLabelBMFont *v54; // x0
cocos2d::CCLabelBMFont_vtbl *v55; // x2
cocos2d::CCLabelBMFont *m_perfLogLabel; // x22
void (__fastcall *v57)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x23
cocos2d::CCLabelBMFont *v58; // x22
void (__fastcall *v59)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
__int64 v60; // x24
const char *v61; // x6
cocos2d::CCNode *v62; // x0
const char *v63; // x6
CCMenuItemSpriteExtra *v64; // x24
const char *v65; // x5
cocos2d::CCNode *v66; // x0
CCMenuItemSpriteExtra *v67; // x22
const char *v68; // x6
cocos2d::CCNode *v69; // x0
CCMenuItemSpriteExtra *v70; // x23
__int64 v71; // x0
cocos2d::CCMenu *m_buttonMenu; // x24
void (__fastcall *v73)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
void (__fastcall *v74)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
void (__fastcall *v75)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23
unsigned int v76; // w28
int v77; // w27
cocos2d::CCString *i; // x0
ButtonSprite *CString; // x0
const char *v80; // x6
cocos2d::CCNode *v81; // x23
CCMenuItemSpriteExtra *v82; // x23
cocos2d::CCNode *v83; // x26
void (__fastcall *v84)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
const char *v85; // x6
ParticleGameObject *v86; // x0
int m_popupPage; // w1
CCMenuItemSpriteExtra *PageButton; // x0
bool v89; // w1
unsigned int v91; // w24
cocos2d::CCNode *v92; // x26
CCMenuItemSpriteExtra *v93; // x26
void (__fastcall *v94)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27
cocos2d::CCSprite *v95; // x0
cocos2d::CCSprite_vtbl *v96; // x1
CCMenuItemSpriteExtra *v97; // x26
void (__fastcall *v98)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27
cocos2d::CCSprite *m_particleColorSprite; // x25
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x26
__int64 v101; // x0
cocos2d::CCArray *v102; // x0
cocos2d::CCObject *v103; // x0
const char *v104; // x6
ButtonSprite *v105; // x0
const char *v106; // x5
cocos2d::CCNode *v107; // x25
CCMenuItemSpriteExtra *v108; // x25
cocos2d::CCNode *v109; // x27
void (__fastcall *v110)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCPoint *p_m_textOffset; // x0
bool v112; // w26
cocos2d::CCMenu *PageMenu; // x25
cocos2d::CCNode *Page; // x24
cocos2d::CCArray *PageContainer; // x0
CCMenuItemToggler *m_freeToggler; // x0
void *v117; // x2
bool v118; // w27
cocos2d::CCMenu *v119; // x25
cocos2d::CCNode *v120; // x24
cocos2d::CCArray *v121; // x0
CCMenuItemToggler *m_relativeToggler; // x0
void *v123; // x2
bool v124; // w26
cocos2d::CCMenu *v125; // x25
cocos2d::CCNode *v126; // x24
cocos2d::CCArray *v127; // x0
CCMenuItemToggler *m_groupedToggler; // x0
void *v129; // x2
bool v130; // w27
cocos2d::CCMenu *v131; // x26
cocos2d::CCNode *v132; // x24
cocos2d::CCArray *v133; // x0
CCMenuItemToggler *m_gravityToggler; // x0
void *v135; // x2
bool v136; // w27
cocos2d::CCMenu *v137; // x25
cocos2d::CCNode *v138; // x24
cocos2d::CCArray *v139; // x0
CCMenuItemToggler *m_radiusToggler; // x0
void *v141; // x2
GameManager *v142; // x0
bool GameVariable; // w27
cocos2d::CCMenu *v144; // x26
cocos2d::CCNode *v145; // x25
cocos2d::CCArray *v146; // x0
CCMenuItemToggler *v147; // x27
void *v148; // x0
cocos2d::CCObject *v149; // x25
void *v150; // x0
void *v151; // x0
cocos2d::CCArray *v152; // x0
CCMenuItemToggler *v153; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // x27
cocos2d::CCSprite *v156; // x0
cocos2d::CCSprite_vtbl *v157; // x1
CCMenuItemSpriteExtra *v158; // x25
cocos2d::CCMenu *v159; // x0
cocos2d::CCArray *v160; // x0
void (__fastcall *v161)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27
cocos2d::CCSprite *v162; // x0
cocos2d::CCSprite_vtbl *v163; // x1
CCMenuItemSpriteExtra *v164; // x25
cocos2d::CCMenu *v165; // x0
cocos2d::CCArray *v166; // x0
void (__fastcall *v167)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCMenu *v168; // x27
const char *v169; // x6
cocos2d::CCNode *v170; // x25
CCMenuItemSpriteExtra *v171; // x25
cocos2d::CCMenu *v172; // x0
cocos2d::CCArray *v173; // x0
void (__fastcall *v174)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCMenu *v175; // x27
bool v176; // w28
cocos2d::CCMenu *v177; // x27
cocos2d::CCNode *v178; // x26
cocos2d::CCArray *v179; // x0
void *v180; // x0
bool m_bStartSizeEqualToEnd; // w28
cocos2d::CCMenu *v182; // x27
cocos2d::CCNode *v183; // x26
cocos2d::CCArray *v184; // x0
void *v185; // x0
bool m_bStartSpinEqualToEnd; // w28
cocos2d::CCMenu *v187; // x27
cocos2d::CCNode *v188; // x26
cocos2d::CCArray *v189; // x0
void *v190; // x0
bool m_bStartRadiusEqualToEnd; // w28
cocos2d::CCMenu *v192; // x27
cocos2d::CCNode *v193; // x26
cocos2d::CCArray *v194; // x0
void *v195; // x0
bool v196; // w28
cocos2d::CCMenu *v197; // x27
cocos2d::CCNode *v198; // x26
cocos2d::CCArray *v199; // x0
void *v200; // x0
bool m_bDynamicRotationIsDir; // w28
cocos2d::CCMenu *v202; // x27
cocos2d::CCNode *v203; // x26
cocos2d::CCArray *v204; // x0
void *v205; // x0
bool v206; // w28
cocos2d::CCMenu *v207; // x27
cocos2d::CCNode *v208; // x26
cocos2d::CCArray *v209; // x0
void *v210; // x0
bool m_onlyAnimateActive; // w28
cocos2d::CCMenu *v212; // x27
cocos2d::CCNode *v213; // x26
cocos2d::CCArray *v214; // x0
void *v215; // x0
bool m_quickStart; // w28
cocos2d::CCMenu *v217; // x27
cocos2d::CCNode *v218; // x26
cocos2d::CCArray *v219; // x0
void *v220; // x0
bool m_useObjectColor; // w28
cocos2d::CCMenu *v222; // x27
cocos2d::CCNode *v223; // x26
cocos2d::CCArray *v224; // x0
CCMenuItemToggler *v225; // x0
CCMenuItemToggler *m_objColorToggler; // x3
void *v227; // x0
bool m_bUseUniformColorMode; // w28
cocos2d::CCMenu *v229; // x27
cocos2d::CCNode *v230; // x26
cocos2d::CCArray *v231; // x0
CCMenuItemToggler *v232; // x0
CCMenuItemToggler *m_uniformColorToggler; // x3
void *v234; // x0
bool m_bOrderSensitive; // w28
cocos2d::CCMenu *v236; // x27
cocos2d::CCNode *v237; // x26
cocos2d::CCArray *v238; // x0
void *v239; // x0
bool m_bStartRGBVarSync; // w28
cocos2d::CCMenu *v241; // x27
cocos2d::CCNode *v242; // x26
cocos2d::CCArray *v243; // x0
void *v244; // x0
bool m_bEndRGBVarSync; // w27
cocos2d::CCMenu *v246; // x26
cocos2d::CCNode *v247; // x28
cocos2d::CCArray *v248; // x0
void *v249; // x26
int v250; // w25
cocos2d::CCSprite *v251; // x0
cocos2d::CCSprite_vtbl *v252; // x1
cocos2d::CCNode *v253; // x0
float *m_selectSprite; // x0
float v255; // s14
float v256; // s14
float *v257; // x0
float v258; // s13
float v259; // s0
cocos2d::CCMenu *v260; // x24
cocos2d::CCString *v261; // x0
const char *v262; // x0
cocos2d::CCSprite *v263; // x27
CCMenuItemSpriteExtra *v264; // x28
void (__fastcall *v265)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26
__int64 v266; // x0
void (__fastcall *v267)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
unsigned int *p_m_caption; // x1
int m_data; // w2
unsigned int v270; // w21
cocos2d::CCObject *v271; // x0
_BYTE *v272; // x22
cocos2d::CCArray *m_particles; // x24
cocos2d::CCParticleSystemQuad *v274; // x0
void *v275; // x0
void *v276; // x0
char v277; // w3
char v278; // w2
char v279; // w1
unsigned int *v280; // x1
int v281; // w2
unsigned int *v282; // x1
int v283; // w2
unsigned int *v284; // x1
int v285; // w2
unsigned int *v286; // x1
int v287; // w2
unsigned int *v288; // x25
int v289; // w0
unsigned int *v290; // x1
int v291; // w2
unsigned int *v292; // x1
int v293; // w2
unsigned int *v294; // x1
int v295; // w2
unsigned int *v296; // x1
int v297; // w2
unsigned int *v298; // x1
int v299; // w2
unsigned int *v300; // x1
int v301; // w2
unsigned int *v302; // x1
int v303; // w2
unsigned int *v304; // x1
int v305; // w2
unsigned int *v306; // x1
int v307; // w2
unsigned int *v308; // x1
int v309; // w2
unsigned int *v310; // x1
int v311; // w2
unsigned int *v312; // x1
int v313; // w2
unsigned int *v314; // x1
int v315; // w2
unsigned int *v316; // x1
int v317; // w2
unsigned int *v318; // x1
int v319; // w0
unsigned int *v320; // x1
int v321; // w0
unsigned int *v322; // x1
int v323; // w0
unsigned int *v324; // x1
int v325; // w0
unsigned int *v326; // x1
int v327; // w0
unsigned int *v328; // x1
int v329; // w2
cocos2d::CCNode *v330; // [xsp+F0h] [xbp+C0h]
cocos2d::CCNode *v331; // [xsp+F0h] [xbp+C0h]
cocos2d::CCMenu *v332; // [xsp+F0h] [xbp+C0h]
__int64 v333; // [xsp+100h] [xbp+D0h]
unsigned __int8 v334; // [xsp+117h] [xbp+E7h]
cocos2d::CCArray *v335; // [xsp+118h] [xbp+E8h]
float v337; // [xsp+120h] [xbp+F0h]
float v338; // [xsp+140h] [xbp+110h]
float v339; // [xsp+144h] [xbp+114h]
cocos2d::CCPoint v340; // [xsp+148h] [xbp+118h] BYREF
cocos2d::CCPoint v341; // [xsp+150h] [xbp+120h] BYREF
cocos2d::CCPoint v342; // [xsp+158h] [xbp+128h] BYREF
cocos2d::CCPoint v343; // [xsp+160h] [xbp+130h] BYREF
cocos2d::CCPoint v344; // [xsp+168h] [xbp+138h] BYREF
ButtonSprite *v345; // [xsp+170h] [xbp+140h] BYREF
cocos2d::CCPoint v346; // [xsp+178h] [xbp+148h] BYREF
cocos2d::CCPoint v347; // [xsp+180h] [xbp+150h] BYREF
cocos2d::CCRect v348; // [xsp+188h] [xbp+158h] BYREF
cocos2d::CCPoint v349; // 0:kr08_8.8
cocos2d::CCPoint v350; // 0:kr10_8.8
cocos2d::CCPoint v351; // 0:kr18_8.8
cocos2d::CCPoint v352; // 0:kr20_8.8
cocos2d::CCPoint v353; // 0:kr28_8.8
cocos2d::CCPoint v354; // 0:kr30_8.8
cocos2d::CCPoint v355; // 0:kr38_8.8
cocos2d::CCPoint v356; // 0:kr40_8.8
cocos2d::SEL_MenuHandler v357; // 0:x2.16
cocos2d::SEL_MenuHandler v358; // 0:x2.16
cocos2d::SEL_MenuHandler v359; // 0:x2.16
cocos2d::SEL_MenuHandler v360; // 0:x2.16
cocos2d::SEL_MenuHandler v361; // 0:x2.16
cocos2d::SEL_MenuHandler v362; // 0:x2.16
cocos2d::SEL_MenuHandler v363; // 0:x2.16
cocos2d::SEL_MenuHandler v364; // 0:x2.16
cocos2d::SEL_MenuHandler v365; // 0:x2.16
cocos2d::SEL_MenuHandler v366; // 0:x2.16
cocos2d::SEL_MenuHandler v367; // 0:x2.16
cocos2d::CCPoint v368; // 0:s0.4,4:s1.4
cocos2d::CCPoint v369; // 0:s0.4,4:s1.4
cocos2d::CCPoint v370; // 0:s0.4,4:s1.4
cocos2d::CCPoint v371; // 0:s0.4,4:s1.4
cocos2d::CCPoint v372; // 0:s0.4,4:s1.4
cocos2d::CCPoint v373; // 0:s0.4,4:s1.4
cocos2d::CCPoint v374; // 0:s0.4,4:s1.4
cocos2d::CCPoint v375; // 0:s0.4,4:s1.4
cocos2d::CCPoint v376; // 0:s0.4,4:s1.4
cocos2d::CCPoint v377; // 0:s0.4,4:s1.4
cocos2d::CCPoint v378; // 0:s0.4,4:s1.4
cocos2d::CCPoint v379; // 0:s0.4,4:s1.4
cocos2d::CCPoint v380; // 0:s0.4,4:s1.4
cocos2d::CCPoint v381; // 0:s0.4,4:s1.4
cocos2d::CCPoint v382; // 0:s0.4,4:s1.4
cocos2d::CCPoint v383; // 0:s0.4,4:s1.4
cocos2d::CCPoint v384; // 0:s0.4,4:s1.4
cocos2d::CCPoint v385; // 0:s0.4,4:s1.4
cocos2d::CCPoint v386; // 0:s0.4,4:s1.4
cocos2d::CCPoint v387; // 0:s0.4,4:s1.4
cocos2d::CCPoint v388; // 0:s0.4,4:s1.4
cocos2d::CCPoint v389; // 0:s0.4,4:s1.4
cocos2d::CCPoint v390; // 0:s0.4,4:s1.4
cocos2d::CCPoint v391; // 0:s0.4,4:s1.4
cocos2d::CCPoint v392; // 0:s0.4,4:s1.4
cocos2d::CCPoint v393; // 0:s0.4,4:s1.4
cocos2d::CCPoint v394; // 0:s0.4,4:s1.4
cocos2d::CCPoint v395; // 0:s0.4,4:s1.4
cocos2d::CCPoint v396; // 0:s0.4,4:s1.4
cocos2d::CCPoint v397; // 0:s0.4,4:s1.4
cocos2d::CCPoint v398; // 0:s0.4,4:s1.4
cocos2d::CCPoint v399; // 0:s0.4,4:s1.4
cocos2d::CCPoint v400; // 0:s0.4,4:s1.4
cocos2d::CCPoint v401; // 0:s0.4,4:s1.4
cocos2d::CCPoint v402; // 0:s0.4,4:s1.4
cocos2d::CCPoint v403; // 0:s0.4,4:s1.4
cocos2d::CCPoint v404; // 0:s0.4,4:s1.4
cocos2d::CCPoint v405; // 0:s0.4,4:s1.4
cocos2d::CCPoint v406; // 0:s0.4,4:s1.4
cocos2d::CCPoint v407; // 0:s0.4,4:s1.4
cocos2d::CCPoint v408; // 0:s0.4,4:s1.4
cocos2d::CCPoint v409; // 0:s0.4,4:s1.4
cocos2d::CCPoint v410; // 0:s0.4,4:s1.4
cocos2d::CCPoint v411; // 0:s0.4,4:s1.4
cocos2d::CCPoint v412; // 0:s0.4,4:s1.4
cocos2d::CCPoint v413; // 0:s0.4,4:s1.4
cocos2d::CCPoint v414; // 0:s0.4,4:s1.4
cocos2d::CCPoint v415; // 0:s0.4,4:s1.4
cocos2d::CCPoint v416; // 0:s0.4,4:s1.4
cocos2d::CCPoint v417; // 0:s0.4,4:s1.4
cocos2d::CCPoint v418; // 0:s0.4,4:s1.4
cocos2d::CCPoint v419; // 0:s0.4,4:s1.4
cocos2d::CCPoint v420; // 0:s0.4,4:s1.4
cocos2d::CCPoint v421; // 0:s0.4,4:s1.4
cocos2d::CCPoint v422; // 0:s0.4,4:s1.4
cocos2d::CCPoint v423; // 0:s0.4,4:s1.4
cocos2d::CCPoint v424; // 0:s0.4,4:s1.4
cocos2d::CCPoint v425; // 0:s0.4,4:s1.4
cocos2d::CCPoint v426; // 0:s0.4,4:s1.4
cocos2d::CCRect v427; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v334 = FLAlertLayer::init(a1, 0x96u);
if ( !v334 )
return v334;
a1->m_useObjectColor = 0;
a1->m_disableTextDelegate = 1;
a1->m_noElasticity = 1;
a1->m_animateOnTrigger = 0;
a1->m_onlyAnimateActive = 0;
a1->m_quickStart = 0;
if ( a2 )
{
a1->m_targetObject = (ParticleGameObject *)a2;
cocos2d::CCObject::retain(a2);
sub_D18D28(&v348);
sub_D163D4(a4, &v348);
v7 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v328 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v329 = __ldaxr(v328);
while ( __stlxr(v329 - 1, v328) );
}
else
{
v329 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v329 - 1;
}
if ( v329 <= 0 )
operator delete(v7);
}
m_targetObject = a1->m_targetObject;
m_particleUseObjectColor = m_targetObject->m_particleUseObjectColor;
m_animateOnTrigger = m_targetObject->m_animateOnTrigger;
m_animateOnlyWhenActive = m_targetObject->m_animateOnlyWhenActive;
a1->m_quickStart = m_targetObject->m_shouldQuickStart;
a1->m_useObjectColor = m_particleUseObjectColor;
a1->m_animateOnTrigger = m_animateOnTrigger;
a1->m_onlyAnimateActive = m_animateOnlyWhenActive;
goto LABEL_5;
}
if ( a3 )
{
a1->m_targetObjects = (cocos2d::CCArray *)a3;
v270 = 0;
cocos2d::CCObject::retain(a3);
v271 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)&jpeg_idct_9x9_ptr);
a1->m_particles = (cocos2d::CCArray *)v271;
cocos2d::CCObject::retain(v271);
if ( (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects) )
{
do
{
v272 = (_BYTE *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v270);
m_particles = a1->m_particles;
sub_D18D28(&v348);
v274 = GameToolbox::particleFromString(&v348, nullptr, 0);
cocos2d::CCArray::addObject(m_particles, v274);
v275 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) == &qword_124B6B0 )
goto LABEL_73;
if ( &pthread_create )
{
v280 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v281 = __ldaxr(v280);
while ( __stlxr(v281 - 1, v280) );
}
else
{
v281 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v281 - 1;
}
if ( v281 > 0 )
{
LABEL_73:
if ( !v270 )
goto LABEL_77;
}
else
{
operator delete(v275);
if ( !v270 )
{
LABEL_77:
sub_D18D28(&v348);
sub_D163D4(a4, &v348);
v276 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v282 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v283 = __ldaxr(v282);
while ( __stlxr(v283 - 1, v282) );
}
else
{
v283 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v283 - 1;
}
if ( v283 <= 0 )
operator delete(v276);
}
v277 = v272[793];
++v270;
v278 = v272[1401];
v279 = v272[1424];
a1->m_quickStart = v272[1728];
a1->m_useObjectColor = v277;
a1->m_animateOnTrigger = v278;
a1->m_onlyAnimateActive = v279;
continue;
}
}
++v270;
}
while ( v270 < (unsigned int)cocos2d::CCArray::count(a1->m_targetObjects) );
}
}
LABEL_5:
v12 = cocos2d::CCDirector::sharedDirector();
v13 = 5;
cocos2d::CCDirector::getWinSize(v12);
v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14);
a1->m_inputDicts = (cocos2d::CCArray *)v15;
cocos2d::CCObject::retain(v15);
v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v16);
a1->m_sliderDicts = (cocos2d::CCArray *)v17;
cocos2d::CCObject::retain(v17);
v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(v18);
a1->m_gravityObjects = (cocos2d::CCArray *)v19;
cocos2d::CCObject::retain(v19);
v21 = (cocos2d::CCObject *)cocos2d::CCArray::create(v20);
a1->m_radiusObjects = (cocos2d::CCArray *)v21;
cocos2d::CCObject::retain(v21);
do
{
v22 = cocos2d::CCDictionary::create();
cocos2d::CCArray::addObject(a1->m_inputDicts, v22);
v23 = cocos2d::CCDictionary::create();
v24 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_sliderDicts, v23);
--v13;
}
while ( v13 );
v25 = (cocos2d::CCObject *)cocos2d::CCArray::create(v24);
a1->m_pageNodes = (cocos2d::CCArray *)v25;
v26 = 4;
cocos2d::CCObject::retain(v25);
v28 = (cocos2d::CCObject *)cocos2d::CCArray::create(v27);
a1->m_pageMenus = (cocos2d::CCArray *)v28;
cocos2d::CCObject::retain(v28);
v30 = (cocos2d::CCObject *)cocos2d::CCArray::create(v29);
a1->m_pageObjectArrays = (cocos2d::CCArray *)v30;
cocos2d::CCObject::retain(v30);
do
{
v31 = cocos2d::CCNode::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v31);
cocos2d::CCArray::addObject(a1->m_pageNodes, v31);
v32 = cocos2d::CCMenu::create();
v31->addChild(v31, v32);
v33 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_pageMenus, v32);
m_pageObjectArrays = a1->m_pageObjectArrays;
v35 = (cocos2d::CCObject *)cocos2d::CCArray::create(v33);
cocos2d::CCArray::addObject(m_pageObjectArrays, v35);
--v26;
}
while ( v26 );
cocos2d::CCRect::CCRect(&v348, 0.0, 0.0, 80.0, 80.0);
v36 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_square01.png",
(const char *)&v348,
v427);
setContentSize = v36->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v348, 460.0, 300.0);
setContentSize(v36, (const cocos2d::CCSize *)&v348);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v36, -2);
setPosition = v36->setPosition;
cocos2d::CCPoint::CCPoint(&v348.origin, v338 * 0.5, v339 * 0.5);
setPosition(v36, &v348.origin);
v39 = cocos2d::CCLabelBMFont::create();
a1->addChild(a1, v39);
v39->setScale(v39, 0.6);
v40 = v39->setPosition;
cocos2d::CCPoint::CCPoint(&v348.origin, v338 * 0.5, (float)((float)(v339 * 0.5) + 150.0) - 13.0);
v40(v39, &v348.origin);
v41 = *a4;
a1->m_particle = nullptr;
if ( !*(_QWORD *)(v41 - 24) )
sub_D1798C(
a4,
"30a-1a1a0.3a30a90a90a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a1a0a1a0a1a0a1a1a0a0a1a0a1a0a1a0a1a0a0a0a0a0a0a0a0a0a0a0a0a2"
"a1a0a0a0a0a0a0a0a0a0a0",
136);
m_particle = GameToolbox::particleFromString(a4, nullptr, 0);
m_targetObjects = a1->m_targetObjects;
a1->m_particle = m_particle;
if ( m_targetObjects )
{
v44 = GameToolbox::particleFromString(a4, nullptr, 0);
a1->m_standaloneParticle = v44;
cocos2d::CCObject::retain(v44);
m_particle = a1->m_particle;
}
v45 = m_particle->setPosition;
cocos2d::CCPoint::CCPoint(&v348.origin, 60.0, 90.0);
v45(m_particle, &v348.origin);
v46 = a1->m_particle;
a1->m_particleIndex = (__int16)v46->m_uParticleIdx;
v47 = ParticlePreviewLayer::create(v46);
m_mainLayer = a1->m_mainLayer;
a1->m_previewLayer = v47;
m_mainLayer->addChild(m_mainLayer, v47);
m_previewLayer = a1->m_previewLayer;
v50 = m_previewLayer->setPosition;
cocos2d::CCPoint::CCPoint(
&v348.origin,
(float)((float)(v338 * 0.5) + -230.0) + 10.0,
(float)((float)(v339 * 0.5) + -150.0) + 10.0);
v50(m_previewLayer, &v348.origin);
v51 = a1->m_previewLayer;
setAnchorPoint = v51->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v348.origin, 0.0, 0.0);
setAnchorPoint(v51, &v348.origin);
v53 = GameManager::sharedState();
a1->m_perfLogEnabled = GameManager::getGameVariable(v53, "0178");
a1->m_perfLogElapsed = 1.0;
v54 = cocos2d::CCLabelBMFont::create();
v55 = v54->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_perfLogLabel = v54;
v55->setAlignment(v54, kCCTextAlignmentRight);
m_perfLogLabel = a1->m_perfLogLabel;
v57 = m_perfLogLabel->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v348.origin, 1.0, 0.0);
v57(m_perfLogLabel, &v348.origin);
v58 = a1->m_perfLogLabel;
v59 = v58->setPosition;
v60 = (__int64)a1->m_previewLayer->getPosition(a1->m_previewLayer);
cocos2d::CCPoint::CCPoint(&v347, 116.0, 2.0);
cocos2d::CCPoint::operator+(&v348, v60, &v347);
v59(v58, &v348.origin);
a1->m_perfLogLabel->setScale(a1->m_perfLogLabel, 0.6);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, a1->m_perfLogLabel, 11);
a1->m_perfLogLabel->setVisible(a1->m_perfLogLabel, a1->m_perfLogEnabled);
v62 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"OK",
(const char *)&qword_28,
0,
0,
0.6,
"goldFont.fnt",
"GJ_button_01.png",
v61,
25.0);
v357.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v357.adj = (size_t)CreateParticlePopup::onClose;
v64 = CCMenuItemSpriteExtra::create(v62, nullptr, v357);
if ( a1->m_targetObject )
v65 = "GJ_button_04.png";
else
v65 = "GJ_button_05.png";
v66 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"C",
(const char *)&qword_28,
0,
0,
0.6,
"goldFont.fnt",
v65,
v63,
25.0);
v358.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v358.adj = (size_t)CreateParticlePopup::onCopySettings;
v67 = CCMenuItemSpriteExtra::create(v66, nullptr, v358);
v69 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"P",
(const char *)&qword_28,
0,
0,
0.6,
"goldFont.fnt",
"GJ_button_04.png",
v68,
25.0);
v359.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v359.adj = (size_t)CreateParticlePopup::onPasteSettings;
v70 = CCMenuItemSpriteExtra::create(v69, nullptr, v359);
v71 = cocos2d::CCMenu::create((cocos2d::CCMenu *)v64, v67, v70, 0);
a1->m_buttonMenu = (cocos2d::CCMenu *)v71;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, (cocos2d::CCNode *)v71, 10);
m_buttonMenu = a1->m_buttonMenu;
v73 = m_buttonMenu->setPosition;
cocos2d::CCPoint::CCPoint(
&v348.origin,
(float)((float)(v338 * 0.5) + 230.0) - 30.0,
(float)((float)(v339 * 0.5) + 150.0) - 24.0);
v73(m_buttonMenu, &v348.origin);
v74 = v70->setPosition;
cocos2d::CCPoint::CCPoint(&v348.origin, -45.0, 0.0);
v74(v70, &v348.origin);
v75 = v67->setPosition;
cocos2d::CCPoint::CCPoint(&v348.origin, -80.0, 0.0);
v75(v67, &v348.origin);
if ( !a1->m_targetObject )
v67->setEnabled(v67, 0);
v76 = 1;
cocos2d::CCPoint::CCPoint(&v340, (float)((float)(v338 * 0.5) + -230.0) + 23.0, (float)(v339 * 0.5) + 55.0);
v77 = 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 *)v76) )
{
CString = (ButtonSprite *)cocos2d::CCString::getCString(i);
v81 = (cocos2d::CCNode *)ButtonSprite::create(
CString,
(const char *)&dword_14,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_04.png",
v80,
25.0);
v81->setScale(v81, 0.6);
v360.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v360.adj = (size_t)CreateParticlePopup::onMode;
v82 = CCMenuItemSpriteExtra::create(v81, nullptr, v360);
v82->setTag(v82, v76);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v82);
v83 = a1->m_buttonMenu;
v84 = v82->setPosition;
cocos2d::CCPoint::CCPoint(&v346, (float)(int)(v76 - 1) * 24.0, 0.0);
cocos2d::CCPoint::operator+(&v347, &v340, &v346);
v349 = cocos2d::CCNode::convertToNodeSpace(v83, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v84)(v82, &v348, v349.x, v349.y);
if ( v76 == 1 )
{
a1->m_mode1Button = v82;
goto LABEL_21;
}
if ( v76 != 2 )
break;
a1->m_mode2Button = v82;
LABEL_21:
++v76;
++v77;
}
a1->m_mode3Button = v82;
if ( v77 != 4 )
goto LABEL_21;
v91 = 1;
v92 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"C",
(const char *)&dword_14,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_05.png",
v85,
25.0);
((void (__fastcall *)(float))v92->setScale)(0.6);
v361.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v361.adj = (size_t)CreateParticlePopup::centerAlignParticle;
v93 = CCMenuItemSpriteExtra::create(v92, nullptr, v361);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v93);
v330 = a1->m_buttonMenu;
v94 = v93->setPosition;
cocos2d::CCPoint::CCPoint(&v346, 72.0, 0.0);
cocos2d::CCPoint::operator+(&v347, &v340, &v346);
v350 = cocos2d::CCNode::convertToNodeSpace(v330, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v94)(v93, &v348, v350.x, v350.y);
v95 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v96 = v95->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_particleColorSprite = v95;
((void (__fastcall *)(float))v96->setScale)(0.5);
v362.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v362.adj = (size_t)CreateParticlePopup::onSelectColor;
v97 = CCMenuItemSpriteExtra::create(a1->m_particleColorSprite, nullptr, v362);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v97);
v331 = a1->m_buttonMenu;
v98 = v97->setPosition;
cocos2d::CCPoint::CCPoint(&v346, 96.0, 0.0);
cocos2d::CCPoint::operator+(&v347, &v340, &v346);
v351 = cocos2d::CCNode::convertToNodeSpace(v331, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v98)(v97, &v348, v351.x, v351.y);
v97->setTag(v97, 0);
m_particleColorSprite = a1->m_particleColorSprite;
setColor = m_particleColorSprite->setColor;
v101 = (__int64)a1->m_previewLayer->getColor(a1->m_previewLayer);
v102 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCSprite *, __int64))setColor)(
m_particleColorSprite,
v101);
v103 = (cocos2d::CCObject *)cocos2d::CCArray::create(v102);
a1->m_pageButtons = (cocos2d::CCArray *)v103;
cocos2d::CCObject::retain(v103);
cocos2d::CCPoint::CCPoint(&v341, (float)(v338 * 0.5) + -75.0, (float)((float)(v339 * 0.5) + 150.0) - 35.0);
while ( 2 )
{
sub_D153B8((int)&v345, &byte_F288A0);
switch ( v91 )
{
case 3u:
sub_D1798C(&v345, "Extra", 5);
goto LABEL_62;
case 4u:
sub_D1798C(&v345, "Texture", 7);
goto LABEL_62;
case 2u:
sub_D1798C(&v345, "Visual", 6);
LABEL_62:
v105 = v345;
v106 = "GJ_button_04.png";
goto LABEL_33;
}
sub_D1798C(&v345, "Motion", 6);
v105 = v345;
v106 = "GJ_button_01.png";
LABEL_33:
v107 = (cocos2d::CCNode *)ButtonSprite::create(
v105,
(const char *)&qword_28,
0,
1,
0.8,
"goldFont.fnt",
v106,
v104,
25.0);
v107->setScale(v107, 0.7);
v363.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v363.adj = (size_t)CreateParticlePopup::onPage;
v108 = CCMenuItemSpriteExtra::create(v107, nullptr, v363);
v108->setTag(v108, v91);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v108);
v109 = a1->m_buttonMenu;
v110 = v108->setPosition;
cocos2d::CCPoint::CCPoint(&v346, (float)(int)(v91 - 1) * 50.0, 0.0);
cocos2d::CCPoint::operator+(&v347, &v341, &v346);
v352 = cocos2d::CCNode::convertToNodeSpace(v109, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v110)(v108, &v348, v352.x, v352.y);
cocos2d::CCArray::addObject(a1->m_pageButtons, v108);
p_m_textOffset = &v345[-1].m_textOffset;
if ( &v345[-1].m_textOffset != (cocos2d::CCPoint *)&qword_124B6B0 )
{
if ( &pthread_create )
{
p_m_caption = (unsigned int *)&v345[-1].m_caption;
do
m_data = __ldaxr(p_m_caption);
while ( __stlxr(m_data - 1, p_m_caption) );
}
else
{
m_data = (int)v345[-1].m_caption.m_data.m_data;
LODWORD(v345[-1].m_caption.m_data.m_data) = m_data - 1;
}
if ( m_data <= 0 )
operator delete(p_m_textOffset);
}
if ( ++v91 != 5 )
continue;
break;
}
cocos2d::CCPoint::CCPoint(
&v342,
(float)((float)(v338 * 0.5) + -230.0) + 20.0,
(float)((float)(v339 * 0.5) + 150.0) - 20.0);
sub_D153B8((int)&v348, "Free");
v112 = a1->m_particle->getPositionType(a1->m_particle) == kCCPositionTypeFree;
PageMenu = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
Page = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
PageContainer = CreateParticlePopup::getPageContainer(a1, 3);
m_freeToggler = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onPosType,
0,
v112,
PageMenu,
&v346,
a1,
Page,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
PageContainer);
a1->m_freeToggler = m_freeToggler;
v117 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v326 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v327 = __ldaxr(v326);
while ( __stlxr(v327 - 1, v326) );
}
else
{
v327 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v327 - 1;
}
if ( v327 <= 0 )
operator delete(v117);
m_freeToggler = a1->m_freeToggler;
}
m_freeToggler->setTag(m_freeToggler, 0);
sub_D153B8((int)&v348, "Relative");
v118 = a1->m_particle->getPositionType(a1->m_particle) == kCCPositionTypeRelative;
v119 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -24.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
v120 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v121 = CreateParticlePopup::getPageContainer(a1, 3);
m_relativeToggler = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onPosType,
0,
v118,
v119,
&v346,
a1,
v120,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v121);
a1->m_relativeToggler = m_relativeToggler;
v123 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v324 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v325 = __ldaxr(v324);
while ( __stlxr(v325 - 1, v324) );
}
else
{
v325 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v325 - 1;
}
if ( v325 <= 0 )
operator delete(v123);
m_relativeToggler = a1->m_relativeToggler;
}
m_relativeToggler->setTag(m_relativeToggler, 1);
sub_D153B8((int)&v348, "Grouped");
v124 = a1->m_particle->getPositionType(a1->m_particle) == kCCPositionTypeGrouped;
v125 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -48.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
v126 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v127 = CreateParticlePopup::getPageContainer(a1, 3);
m_groupedToggler = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onPosType,
0,
v124,
v125,
&v346,
a1,
v126,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v127);
a1->m_groupedToggler = m_groupedToggler;
v129 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v322 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v323 = __ldaxr(v322);
while ( __stlxr(v323 - 1, v322) );
}
else
{
v323 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v323 - 1;
}
if ( v323 <= 0 )
operator delete(v129);
m_groupedToggler = a1->m_groupedToggler;
}
m_groupedToggler->setTag(m_groupedToggler, 2);
sub_D153B8((int)&v348, "Gravity");
v130 = a1->m_particle->getEmitterMode(a1->m_particle) == 0;
v131 = CreateParticlePopup::getPageMenu(a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
v132 = CreateParticlePopup::getPage(a1, 1);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v133 = CreateParticlePopup::getPageContainer(a1, 1);
m_gravityToggler = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onEmitterMode,
0,
v130,
v131,
&v346,
a1,
v132,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v133);
a1->m_gravityToggler = m_gravityToggler;
v135 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v320 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v321 = __ldaxr(v320);
while ( __stlxr(v321 - 1, v320) );
}
else
{
v321 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v321 - 1;
}
if ( v321 <= 0 )
operator delete(v135);
m_gravityToggler = a1->m_gravityToggler;
}
m_gravityToggler->setTag(m_gravityToggler, 0);
a1->m_gravityToggler->m_notClickable = 1;
sub_D153B8((int)&v348, "Radius");
v136 = a1->m_particle->getEmitterMode(a1->m_particle) == 1;
v137 = CreateParticlePopup::getPageMenu(a1, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -24.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
v138 = CreateParticlePopup::getPage(a1, 1);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v139 = CreateParticlePopup::getPageContainer(a1, 1);
m_radiusToggler = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onEmitterMode,
0,
v136,
v137,
&v346,
a1,
v138,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v139);
a1->m_radiusToggler = m_radiusToggler;
v141 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v318 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v319 = __ldaxr(v318);
while ( __stlxr(v319 - 1, v318) );
}
else
{
v319 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v319 - 1;
}
if ( v319 <= 0 )
operator delete(v141);
m_radiusToggler = a1->m_radiusToggler;
}
m_radiusToggler->setTag(m_radiusToggler, 1);
a1->m_radiusToggler->m_notClickable = 1;
sub_D153B8((int)&v348, "Perf\nLog");
v142 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v142, "0178");
v144 = CreateParticlePopup::getPageMenu(a1, 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -0.0);
cocos2d::CCPoint::operator+(&v346, &v342, &v345);
v145 = CreateParticlePopup::getPage(a1, 4);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v146 = CreateParticlePopup::getPageContainer(a1, 4);
v147 = GameToolbox::createToggleButton(
0.6,
0.35,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onTogglePerfLog,
0,
GameVariable,
v144,
&v346,
a1,
v145,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v146);
v148 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v316 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v317 = __ldaxr(v316);
while ( __stlxr(v317 - 1, v316) );
}
else
{
v317 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v317 - 1;
}
if ( v317 <= 0 )
operator delete(v148);
}
sub_D153B8((int)&v347, "Performance Log");
sub_D153B8(
(int)&v348,
"1: Active / Max Particles\n2: Draw cost.\nTry to keep the draw cost low.");
v149 = (cocos2d::CCObject *)InfoAlertButton::create(0.6);
v150 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v314 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v315 = __ldaxr(v314);
while ( __stlxr(v315 - 1, v314) );
}
else
{
v315 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v315 - 1;
}
if ( v315 <= 0 )
operator delete(v150);
}
v151 = (void *)(*(_QWORD *)&v347 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v347 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v312 = (unsigned int *)(*(_QWORD *)&v347 - 8LL);
do
v313 = __ldaxr(v312);
while ( __stlxr(v313 - 1, v312) );
}
else
{
v313 = *(_DWORD *)(*(_QWORD *)&v347 - 8LL);
*(_DWORD *)(*(_QWORD *)&v347 - 8LL) = v313 - 1;
}
if ( v313 <= 0 )
operator delete(v151);
}
v152 = CreateParticlePopup::getPageContainer(a1, 4);
cocos2d::CCArray::addObject(v152, v149);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, (cocos2d::CCNode *)v149);
v153 = v147;
getPosition = v147->getPosition;
isEqual = v149->__vftable[2].isEqual;
v333 = (__int64)getPosition(v153);
cocos2d::CCPoint::CCPoint(&v347, 60.0, 0.0);
cocos2d::CCPoint::operator+(&v348, v333, &v347);
isEqual(v149, (const cocos2d::CCObject *)&v348);
v156 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v157 = v156->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_startColorSprite = v156;
((void (__fastcall *)(float))v157->setScale)(0.7);
v364.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v364.adj = (size_t)CreateParticlePopup::onSelectColor;
v158 = CCMenuItemSpriteExtra::create(a1->m_startColorSprite, nullptr, v364);
v159 = CreateParticlePopup::getPageMenu(a1, 2);
v159->addChild(v159, v158);
v160 = CreateParticlePopup::getPageContainer(a1, 2);
cocos2d::CCArray::addObject(v160, v158);
v161 = v158->setPosition;
v332 = CreateParticlePopup::getPageMenu(a1, 2);
LODWORD(v333) = 0.5;
cocos2d::CCPoint::CCPoint(
&v347,
(float)((float)(v338 * *(float *)&v333) + -230.0) + 20.0,
(float)((float)(v339 * *(float *)&v333) + 150.0) - 20.0);
v353 = cocos2d::CCNode::convertToNodeSpace(v332, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v161)(v158, &v348, v353.x, v353.y);
v158->setTag(v158, 1);
CreateParticlePopup::updateColorSprite(a1, 1);
v162 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v163 = v162->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_endColorSprite = v162;
((void (__fastcall *)(float))v163->setScale)(0.7);
v365.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v365.adj = (size_t)CreateParticlePopup::onSelectColor;
v164 = CCMenuItemSpriteExtra::create(a1->m_endColorSprite, nullptr, v365);
v165 = CreateParticlePopup::getPageMenu(a1, 2);
v165->addChild(v165, v164);
v166 = CreateParticlePopup::getPageContainer(a1, 2);
cocos2d::CCArray::addObject(v166, v164);
v167 = v164->setPosition;
v168 = CreateParticlePopup::getPageMenu(a1, 2);
cocos2d::CCPoint::CCPoint(
&v347,
(float)((float)((float)(v338 * *(float *)&v333) + -230.0) + 20.0) + 32.0,
(float)((float)(v339 * *(float *)&v333) + 150.0) - 20.0);
v354 = cocos2d::CCNode::convertToNodeSpace(v168, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v167)(v164, &v348, v354.x, v354.y);
v164->setTag(v164, 2);
CreateParticlePopup::updateColorSprite(a1, 2);
v170 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"<>",
(const char *)&word_12,
0,
1,
0.8,
"goldFont.fnt",
"GJ_button_05.png",
v169,
32.0);
v170->setScale(v170, 0.7);
v366.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v366.adj = (size_t)CreateParticlePopup::onDuplicateColor;
v171 = CCMenuItemSpriteExtra::create(v170, nullptr, v366);
v172 = CreateParticlePopup::getPageMenu(a1, 2);
v172->addChild(v172, v171);
v173 = CreateParticlePopup::getPageContainer(a1, 2);
cocos2d::CCArray::addObject(v173, v171);
v174 = v171->setPosition;
v175 = CreateParticlePopup::getPageMenu(a1, 2);
cocos2d::CCPoint::CCPoint(
&v347,
(float)((float)((float)((float)(v338 * *(float *)&v333) + -230.0) + 20.0) + 32.0) + 32.0,
(float)((float)(v339 * *(float *)&v333) + 150.0) - 20.0);
v355 = cocos2d::CCNode::convertToNodeSpace(v175, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v174)(v171, &v348, v355.x, v355.y);
CreateParticlePopup::getPageInputNodes(a1, 0);
CreateParticlePopup::getPageSliders(a1, 0);
cocos2d::CCPoint::CCPoint(
&v343,
(float)(v338 * *(float *)&v333) + -110.0,
(float)((float)(v339 * *(float *)&v333) + 150.0) - 40.0);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -24.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, MaxParticles, 1, 0, v368, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -48.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Duration, 1, 0, v369, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -72.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Lifetime, 1, 0, v370, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -72.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, LifetimeVar, 1, 1, v371, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -96.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Emission, 1, 0, v372, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Angle, 1, 0, v373, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, AngleVar, 1, 1, v374, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -144.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Speed, 1, 0, v375, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -144.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, SpeedVar, 1, 1, v376, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -168.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, PosVarX, 1, 0, v377, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -168.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, PosVarY, 1, 1, v378, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -192.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, GravityX, 1, 0, v379, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -192.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, GravityY, 1, 1, v380, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -216.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, AccelRad, 1, 0, v381, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -216.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, AccelRadVar, 1, 1, v382, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -240.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, AccelTan, 1, 0, v383, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -240.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, AccelTanVar, 1, 1, v384, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -144.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartRad, 1, 0, v385, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -144.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartRadVar, 1, 1, v386, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -168.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndRad, 1, 0, v387, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -168.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndRadVar, 1, 1, v388, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -192.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, RotSec, 1, 0, v389, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -192.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, RotSecVar, 1, 1, v390, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -20.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartSize, 2, 0, v391, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -20.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartSizeVar, 2, 1, v392, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndSize, 2, 0, v393, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -40.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndSizeVar, 2, 1, v394, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartSpin, 2, 0, v395, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -60.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartSpinVar, 2, 1, v396, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -80.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndSpin, 2, 0, v397, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -80.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndSpinVar, 2, 1, v398, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -100.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartR, 2, 0, v399, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -100.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartRVar, 2, 1, v400, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartG, 2, 0, v401, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartGVar, 2, 1, v402, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -140.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartB, 2, 0, v403, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -140.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartBVar, 2, 1, v404, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -160.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartA, 2, 0, v405, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -160.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, StartAVar, 2, 1, v406, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -180.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndR, 2, 0, v407, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -180.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndRVar, 2, 1, v408, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -200.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndG, 2, 0, v409, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -200.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndGVar, 2, 1, v410, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -220.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndB, 2, 0, v411, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -220.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndBVar, 2, 1, v412, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -240.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndA, 2, 0, v413, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -240.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, EndAVar, 2, 1, v414, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -20.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FadeIn, 3, 0, v415, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -20.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FadeInVar, 3, 1, v416, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -40.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FadeOut, 3, 0, v417, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -40.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FadeOutVar, 3, 1, v418, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -60.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionP, 3, 0, v419, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -60.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionPVar, 3, 1, v420, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -80.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionS, 3, 0, v421, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -80.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionSVar, 3, 1, v422, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -100.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionR, 3, 0, v423, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -100.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, FrictionRVar, 3, 1, v424, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, Respawn, 3, 0, v425, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v347, 145.0, -120.0);
cocos2d::CCPoint::operator+(&v348, &v343, &v347);
CreateParticlePopup::createParticleSlider(a1, RespawnVar, 3, 1, v426, (cocos2d::CCArray *)&v348);
cocos2d::CCPoint::CCPoint(&v344, (float)(v338 * 0.5) + -70.0, (float)(v339 * 0.5) + -10.0);
sub_D153B8((int)&v348, "Additive");
v176 = a1->m_particle->isBlendAdditive(a1->m_particle);
v177 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -24.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v178 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v179 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onToggleBlending,
0,
v176,
v177,
&v346,
a1,
v178,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v179);
v180 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v310 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v311 = __ldaxr(v310);
while ( __stlxr(v311 - 1, v310) );
}
else
{
v311 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v311 - 1;
}
if ( v311 <= 0 )
operator delete(v180);
}
sub_D153B8((int)&v348, "Start Size\n= End");
m_bStartSizeEqualToEnd = a1->m_particle->m_bStartSizeEqualToEnd;
v182 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -48.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v183 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v184 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onToggleStartSizeEqualToEnd,
0,
m_bStartSizeEqualToEnd,
v182,
&v346,
a1,
v183,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v184);
v185 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v308 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v309 = __ldaxr(v308);
while ( __stlxr(v309 - 1, v308) );
}
else
{
v309 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v309 - 1;
}
if ( v309 <= 0 )
operator delete(v185);
}
sub_D153B8((int)&v348, "Start Spin\n= End");
m_bStartSpinEqualToEnd = a1->m_particle->m_bStartSpinEqualToEnd;
v187 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -72.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v188 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v189 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onToggleStartSpinEqualToEnd,
0,
m_bStartSpinEqualToEnd,
v187,
&v346,
a1,
v188,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v189);
v190 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v306 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v307 = __ldaxr(v306);
while ( __stlxr(v307 - 1, v306) );
}
else
{
v307 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v307 - 1;
}
if ( v307 <= 0 )
operator delete(v190);
}
sub_D153B8((int)&v348, "Start Rad\n= End");
m_bStartRadiusEqualToEnd = a1->m_particle->m_bStartRadiusEqualToEnd;
v192 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -96.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v193 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v194 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onToggleStartRadiusEqualToEnd,
0,
m_bStartRadiusEqualToEnd,
v192,
&v346,
a1,
v193,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v194);
v195 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v304 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v305 = __ldaxr(v304);
while ( __stlxr(v305 - 1, v304) );
}
else
{
v305 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v305 - 1;
}
if ( v305 <= 0 )
operator delete(v195);
}
sub_D153B8((int)&v348, "Start rot\nis dir");
v196 = a1->m_particle->getRotationIsDir(a1->m_particle);
v197 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 0.0, -120.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v198 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v199 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onToggleStartRotationIsDir,
0,
v196,
v197,
&v346,
a1,
v198,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v199);
v200 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v302 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v303 = __ldaxr(v302);
while ( __stlxr(v303 - 1, v302) );
}
else
{
v303 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v303 - 1;
}
if ( v303 <= 0 )
operator delete(v200);
}
sub_D153B8((int)&v348, "Dynamic\nrotation");
m_bDynamicRotationIsDir = a1->m_particle->m_bDynamicRotationIsDir;
v202 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 110.0, -72.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v203 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v204 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onDynamicRotation,
0,
m_bDynamicRotationIsDir,
v202,
&v346,
a1,
v203,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v204);
v205 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v300 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v301 = __ldaxr(v300);
while ( __stlxr(v301 - 1, v300) );
}
else
{
v301 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v301 - 1;
}
if ( v301 <= 0 )
operator delete(v205);
}
sub_D153B8((int)&v348, "Animate\non Trigger");
v206 = a1->m_animateOnTrigger;
v207 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 110.0, -96.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v208 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v209 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onAnimateOnTrigger,
0,
v206,
v207,
&v346,
a1,
v208,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v209);
v210 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v298 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v299 = __ldaxr(v298);
while ( __stlxr(v299 - 1, v298) );
}
else
{
v299 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v299 - 1;
}
if ( v299 <= 0 )
operator delete(v210);
}
sub_D153B8((int)&v348, "Animate\nActive Only");
m_onlyAnimateActive = a1->m_onlyAnimateActive;
v212 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 110.0, -120.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v213 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v214 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onAnimateActiveOnly,
0,
m_onlyAnimateActive,
v212,
&v346,
a1,
v213,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v214);
v215 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v296 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v297 = __ldaxr(v296);
while ( __stlxr(v297 - 1, v296) );
}
else
{
v297 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v297 - 1;
}
if ( v297 <= 0 )
operator delete(v215);
}
sub_D153B8((int)&v348, "Quick\nStart");
m_quickStart = a1->m_quickStart;
v217 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 220.0, -96.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v218 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v219 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onQuickStart,
0,
m_quickStart,
v217,
&v346,
a1,
v218,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v219);
v220 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v294 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v295 = __ldaxr(v294);
while ( __stlxr(v295 - 1, v294) );
}
else
{
v295 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v295 - 1;
}
if ( v295 <= 0 )
operator delete(v220);
}
sub_D153B8((int)&v348, "Use\nobj color");
m_useObjectColor = a1->m_useObjectColor;
v222 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 110.0, -24.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v223 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v224 = CreateParticlePopup::getPageContainer(a1, 3);
v225 = GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onDynamicColor,
0,
m_useObjectColor,
v222,
&v346,
a1,
v223,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v224);
a1->m_objColorToggler = v225;
m_objColorToggler = v225;
v227 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v292 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v293 = __ldaxr(v292);
while ( __stlxr(v293 - 1, v292) );
}
else
{
v293 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v293 - 1;
}
if ( v293 <= 0 )
operator delete(v227);
m_objColorToggler = a1->m_objColorToggler;
}
m_objColorToggler->m_notClickable = 1;
sub_D153B8((int)&v348, "Uniform\nobj color");
m_bUseUniformColorMode = a1->m_particle->m_bUseUniformColorMode;
v229 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 110.0, -48.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v230 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v231 = CreateParticlePopup::getPageContainer(a1, 3);
v232 = GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onUniformColor,
0,
m_bUseUniformColorMode,
v229,
&v346,
a1,
v230,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v231);
a1->m_uniformColorToggler = v232;
m_uniformColorToggler = v232;
v234 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v290 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v291 = __ldaxr(v290);
while ( __stlxr(v291 - 1, v290) );
}
else
{
v291 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v291 - 1;
}
if ( v291 <= 0 )
operator delete(v234);
m_uniformColorToggler = a1->m_uniformColorToggler;
}
m_uniformColorToggler->m_notClickable = 1;
sub_D153B8((int)&v348, "Order\nSensitive");
m_bOrderSensitive = a1->m_particle->m_bOrderSensitive;
v236 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 220.0, -24.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v237 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v238 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onOrderSensitive,
0,
m_bOrderSensitive,
v236,
&v346,
a1,
v237,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v238);
v239 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v286 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v287 = __ldaxr(v286);
while ( __stlxr(v287 - 1, v286) );
}
else
{
v287 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v287 - 1;
}
if ( v287 <= 0 )
operator delete(v239);
}
sub_D153B8((int)&v348, "StartRGB\nVar Sync");
m_bStartRGBVarSync = a1->m_particle->m_bStartRGBVarSync;
v241 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 220.0, -48.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v242 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v243 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onStartRGBVarSync,
0,
m_bStartRGBVarSync,
v241,
&v346,
a1,
v242,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v243);
v244 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v284 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v285 = __ldaxr(v284);
while ( __stlxr(v285 - 1, v284) );
}
else
{
v285 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v285 - 1;
}
if ( v285 <= 0 )
operator delete(v244);
}
sub_D153B8((int)&v348, "EndRGB\nVar Sync");
m_bEndRGBVarSync = a1->m_particle->m_bEndRGBVarSync;
v246 = CreateParticlePopup::getPageMenu(a1, 3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v345, 220.0, -72.0);
cocos2d::CCPoint::operator+(&v346, &v344, &v345);
v247 = CreateParticlePopup::getPage(a1, 3);
cocos2d::CCPoint::CCPoint(&v347, 8.0, 0.0);
v248 = CreateParticlePopup::getPageContainer(a1, 3);
GameToolbox::createToggleButton(
0.6,
0.28,
0.0,
(__int64)&v348,
(void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::onEndRGBVarSync,
0,
m_bEndRGBVarSync,
v246,
&v346,
a1,
v247,
(float *)&v347,
(__int64)"bigFont.fnt",
0,
0,
v248);
v249 = (void *)(*(_QWORD *)&v348.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v348.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v288 = (unsigned int *)(*(_QWORD *)&v348.origin - 8LL);
do
v289 = __ldaxr(v288);
while ( __stlxr(v289 - 1, v288) );
}
else
{
v289 = *(_DWORD *)(*(_QWORD *)&v348.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v348.origin - 8LL) = v289 - 1;
}
if ( v289 <= 0 )
operator delete(v249);
}
v250 = 0;
v251 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png");
v252 = v251->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_selectSprite = v251;
((void (__fastcall *)(float))v252->setScale)(0.6);
v253 = CreateParticlePopup::getPage(a1, 4);
v253->addChild_0(v253, a1->m_selectSprite, 100);
m_selectSprite = (float *)a1->m_selectSprite;
v255 = m_selectSprite[108];
v256 = v255 * (*(float (__fastcall **)(float *))(*(_QWORD *)m_selectSprite + 168LL))(m_selectSprite);
v257 = (float *)a1->m_selectSprite;
v258 = v257[109];
v259 = (*(float (__fastcall **)(float *))(*(_QWORD *)v257 + 168LL))(v257);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v345, v256, v258 * v259);
v260 = CreateParticlePopup::getPageMenu(a1, 4);
v335 = CreateParticlePopup::getPageContainer(a1, 4);
cocos2d::CCPoint::CCPoint(&v346, (float)(v338 * 0.5) + -80.0, (float)(v339 * 0.5) + 85.0);
do
{
v261 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"particle_%02d_001.png",
(const char *)(unsigned int)v250);
v262 = cocos2d::CCString::getCString(v261);
v263 = cocos2d::CCSprite::createWithSpriteFrameName(v262);
v263->setScale(v263, 11.0 / v263->m_obRect.size.height);
v367.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v367.adj = (size_t)CreateParticlePopup::onSelectParticleTexture;
v264 = CCMenuItemSpriteExtra::create(v263, nullptr, v367);
v264->setContentSize(v264, (const cocos2d::CCSize *)&v345);
v265 = v263->setPosition;
v337 = v264->getContentSize(v264)->width * 0.5;
v266 = (__int64)v264->getContentSize(v264);
cocos2d::CCPoint::CCPoint(&v348.origin, v337, *(float *)(v266 + 4) * 0.5);
v265(v263, &v348.origin);
v264->setTag(v264, v250);
v260->addChild(v260, v264);
cocos2d::CCArray::addObject(v335, v264);
cocos2d::CCPoint::CCPoint(
&v348.origin,
(float)(v250 % 17) * 18.0,
(float)(int)vcvtms_s32_f32((float)(v250 / 17)) * -18.0);
cocos2d::CCPoint::operator+(&v347, &v346, &v348);
v267 = v264->setPosition;
v356 = cocos2d::CCNode::convertToNodeSpace(v260, &v347);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v267)(v264, &v348, v356.x, v356.y);
if ( a1->m_particleIndex == v250 )
a1->m_selectSprite->setPosition(a1->m_selectSprite, &v347);
++v250;
}
while ( v250 != 213 );
v86 = a1->m_targetObject;
if ( v86 )
m_popupPage = v86->m_popupPage;
else
m_popupPage = a1->m_page;
if ( m_popupPage <= 0 )
m_popupPage = 1;
a1->m_page = m_popupPage;
PageButton = CreateParticlePopup::getPageButton(a1, m_popupPage);
CreateParticlePopup::onPage(a1, PageButton);
v89 = a1->m_particle->getEmitterMode(a1->m_particle) == 0;
CreateParticlePopup::toggleGravityMode(a1, v89);
cocos2d::CCNode::scheduleUpdate(a1);
a1->m_disableTextDelegate = 0;
return v334;
}