//
// SetupEnterEffectPopup::init from 0xa13208 to 0xa159f4 (10220 bytes)
//
// 2 xrefs:
// > SetupEnterEffectPopup::create @ 0xa15c20
// > ??> @ 0x4a058
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool SetupEnterEffectPopup::init(SetupEnterEffectPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3, int a4)
{
bool v5; // w25
SetupEnterEffectPopup_vtbl *v7; // x1
__int64 v8; // x2
__int64 v9; // x3
__int64 v10; // x4
__int64 v11; // x5
const char *v12; // x6
char *v13; // x0
cocos2d::CCDirector *v14; // x0
float v15; // s3
float v16; // s4
char *v17; // x0
float v18; // s3
float v19; // s4
char *v20; // x0
float v21; // s3
float v22; // s4
char *v23; // x0
float v24; // s3
float v25; // s4
char *v26; // x0
char *v27; // x0
char *v28; // x0
char *v29; // x0
float v30; // s3
float v31; // s4
char *v32; // x0
float v33; // s3
float v34; // s4
char *v35; // x0
cocos2d::CCSprite *v36; // x28
CCMenuItemSpriteExtra *v37; // x28
cocos2d::CCMenu *v38; // x4
cocos2d::CCSprite *v39; // x28
CCMenuItemSpriteExtra *v40; // x28
CCMenuItemSpriteExtra_vtbl *v41; // x1
bool v42; // w27
char *v43; // x0
cocos2d::CCMenu *v44; // x27
cocos2d::CCLayer *v45; // x24
char *v46; // x20
CCMenuItemToggler *m_enterOnlyToggler; // x0
CCMenuItemToggler_vtbl *v48; // x3
CCMenuItemToggler *m_exitOnlyToggler; // x0
CCMenuItemToggler_vtbl *v50; // x3
char *v51; // x0
char *v52; // x0
void *v53; // x0
float v54; // s3
float v55; // s4
char *v56; // x1
char *v57; // x0
unsigned int *v58; // x1
int v59; // w2
char *v60; // x0
char *v61; // x0
void *v62; // x0
float v63; // s3
float v64; // s4
char *v65; // x0
float v66; // s3
float v67; // s4
char *v68; // x0
float v69; // s3
float v70; // s4
char *v71; // x0
float v72; // s3
float v73; // s4
unsigned int *v74; // x1
int v75; // w2
char *v76; // x0
char *v77; // x0
void *v78; // x0
float v79; // s3
float v80; // s4
char *v81; // x0
float v82; // s3
float v83; // s4
unsigned int *v84; // x1
char *v85; // x0
char *v86; // x0
void *v87; // x0
float v88; // s3
float v89; // s4
char *v90; // x0
float v91; // s3
float v92; // s4
char *v93; // x0
char *v94; // x0
char *v95; // x0
char *v96; // x0
cocos2d::CCSprite *v97; // x0
CCMenuItemSpriteExtra *v98; // x0
CCMenuItemSpriteExtra *m_hsvButton; // x28
CCMenuItemSpriteExtra_vtbl *v100; // x1
char *v101; // x0
char *v102; // x0
void *v103; // x0
float v104; // s3
float v105; // s4
char *v106; // x0
float v107; // s3
float v108; // s4
char *v109; // x0
float v110; // s3
float v111; // s4
char *v112; // x0
float v113; // s3
float v114; // s4
char *v115; // x0
char *v116; // x0
float v117; // s3
float v118; // s4
char *v119; // x0
float v120; // s3
float v121; // s4
char *v122; // x0
float v123; // s3
float v124; // s4
char *v125; // x0
float v126; // s3
float v127; // s4
unsigned int *v128; // x1
cocos2d::CCObject *v129; // x0
long double v130; // q0
void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // x20
float v132; // s0
void (__fastcall *v133)(SetupTriggerPopup *__hidden, int, bool); // x20
float v134; // s0
unsigned int *v135; // x1
int v136; // w2
unsigned int *v137; // x1
int v138; // w2
unsigned int *v139; // x1
int v140; // w2
unsigned int *v141; // x1
int v142; // w2
unsigned int *v143; // x1
int v144; // w2
unsigned int *v145; // x21
int v146; // w0
unsigned int *v147; // x1
int v148; // w2
unsigned int *v149; // x1
int v150; // w2
unsigned int *v151; // x1
int v152; // w2
unsigned int *v153; // x1
int v154; // w2
unsigned int *v155; // x1
int v156; // w2
unsigned int *v157; // x1
int v158; // w2
unsigned int *v159; // x1
int v160; // w2
unsigned int *v161; // x1
int v162; // w2
unsigned int *v163; // x1
int v164; // w2
unsigned int *v165; // x1
int v166; // w2
unsigned int *v167; // x1
int v168; // w2
unsigned int *v169; // x1
int v170; // w2
unsigned int *v171; // x1
int v172; // w2
unsigned int *v173; // x1
int v174; // w2
unsigned int *v175; // x1
int v176; // w2
unsigned int *v177; // x1
unsigned int *v178; // x1
int v179; // w2
unsigned int *v180; // x1
int v181; // w2
unsigned int *v182; // x1
int v183; // w2
unsigned int *v184; // x1
int v185; // w2
unsigned int *v186; // x1
int v187; // w2
unsigned int *v188; // x1
int v189; // w2
unsigned int *v190; // x1
int v191; // w2
unsigned int *v192; // x1
int v193; // w2
unsigned int *v194; // x1
int v195; // w2
unsigned int *v196; // x1
int v197; // w2
unsigned int *v198; // x1
int v199; // w2
unsigned int *v200; // x1
int v201; // w2
unsigned int *v202; // x1
int v203; // w2
unsigned int *v204; // x1
int v205; // w2
unsigned int *v206; // x1
int v207; // w2
unsigned int *v208; // x1
int v209; // w2
unsigned int *v210; // x1
int v211; // w2
unsigned int *v212; // x1
int v213; // w2
unsigned int *v214; // x1
int v215; // w2
unsigned int *v216; // x1
int v217; // w2
unsigned int *v218; // x1
int v219; // w2
unsigned int *v220; // x1
int v221; // w2
unsigned int *v222; // x1
int v223; // w2
cocos2d::CCSprite *v224[2]; // [xsp+30h] [xbp+0h] BYREF
cocos2d::CCSprite *v225; // [xsp+D0h] [xbp+A0h]
cocos2d::CCNode *m_mainLayer; // [xsp+D8h] [xbp+A8h]
cocos2d::CCMenu *v227; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *m_buttonMenu; // [xsp+E8h] [xbp+B8h]
cocos2d::CCPoint *setPosition; // [xsp+F0h] [xbp+C0h]
int v230; // [xsp+FCh] [xbp+CCh]
char v231; // [xsp+108h] [xbp+D8h] BYREF
float v232; // [xsp+110h] [xbp+E0h]
float v233; // [xsp+114h] [xbp+E4h]
cocos2d::CCPoint v234; // [xsp+118h] [xbp+E8h] BYREF
char v235; // [xsp+120h] [xbp+F0h] BYREF
cocos2d::CCPoint v236; // [xsp+128h] [xbp+F8h] BYREF
cocos2d::CCPoint v237; // [xsp+130h] [xbp+100h] BYREF
cocos2d::CCPoint v238; // [xsp+138h] [xbp+108h] BYREF
char *v239; // [xsp+140h] [xbp+110h] BYREF
cocos2d::CCPoint v240; // 0:kr08_8.8
cocos2d::CCPoint v241; // 0:kr10_8.8
cocos2d::CCPoint v242; // 0:kr18_8.8
cocos2d::SEL_MenuHandler v243; // 0:x2.16
cocos2d::SEL_MenuHandler v244; // 0:x2.16
cocos2d::SEL_MenuHandler v245; // 0:x2.16
cocos2d::CCPoint v246; // 0:s0.4,4:s1.4
cocos2d::CCPoint v247; // 0:s0.4,4:s1.4
cocos2d::CCPoint v248; // 0:s0.4,4:s1.4
cocos2d::CCPoint v249; // 0:s0.4,4:s1.4
cocos2d::CCPoint v250; // 0:s0.4,4:s1.4
cocos2d::CCPoint v251; // 0:s0.4,4:s1.4
cocos2d::CCPoint v252; // 0:s0.4,4:s1.4
cocos2d::CCPoint v253; // 0:s0.4,4:s1.4
cocos2d::CCPoint v254; // 0:s0.4,4:s1.4
cocos2d::CCPoint v255; // 0:s0.4,4:s1.4
cocos2d::CCPoint v256; // 0:s0.4,4:s1.4
cocos2d::CCPoint v257; // 0:s0.4,4:s1.4
cocos2d::CCPoint v258; // 0:s0.4,4:s1.4
cocos2d::CCPoint v259; // 0:s0.4,4:s1.4
cocos2d::CCPoint v260; // 0:s0.4,4:s1.4
cocos2d::CCPoint v261; // 0:s0.4,4:s1.4
cocos2d::CCPoint v262; // 0:s0.4,4:s1.4
cocos2d::CCPoint v263; // 0:s0.4,4:s1.4
cocos2d::CCPoint v264; // 0:s0.4,4:s1.4
cocos2d::CCPoint v265; // 0:s0.4,4:s1.4
cocos2d::CCPoint v266; // 0:s0.4,4:s1.4
cocos2d::CCPoint v267; // 0:s0.4,4:s1.4
cocos2d::CCPoint v268; // 0:s0.4,4:s1.4
v230 = a4;
v5 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1);
if ( !v5 )
return v5;
v7 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_objectID = v230;
v7->determineStartValues(a1);
sub_D153B8((unsigned int)v224 + 272, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v239, v8, v9, v10, v11, v12);
v13 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v143 = (unsigned int *)(v239 - 8);
do
v144 = __ldaxr(v143);
while ( __stlxr(v144 - 1, v143) );
}
else
{
v144 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v144 - 1;
}
if ( v144 <= 0 )
operator delete(v13);
}
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
v14 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v14);
cocos2d::CCPoint::CCPoint(&v234, v232 * 0.5, (float)(v233 * 0.5) + 95.0);
if ( v230 == 3023 )
{
sub_D153B8((unsigned int)v224 + 272, "Stop Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v27 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v186 = (unsigned int *)(v239 - 8);
do
v187 = __ldaxr(v186);
while ( __stlxr(v187 - 1, v186) );
}
else
{
v187 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v187 - 1;
}
if ( v187 <= 0 )
operator delete(v27);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Stops an enter effect using its Enter Channel or Effect ID.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v28 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v169 = (unsigned int *)(v239 - 8);
do
v170 = __ldaxr(v169);
while ( __stlxr(v170 - 1, v169) );
}
else
{
v170 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v170 - 1;
}
if ( v170 <= 0 )
operator delete(v28);
}
v29 = (char *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) == &qword_124B6B0 )
goto LABEL_13;
if ( &pthread_create )
{
v135 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v136 = __ldaxr(v135);
while ( __stlxr(v136 - 1, v135) );
}
else
{
v136 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v136 - 1;
}
if ( v136 > 0 )
goto LABEL_13;
}
else
{
sub_D153B8((int)&v239, "Length");
cocos2d::CCPoint::CCPoint(&v237, -75.0, 0.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v246.y = 0.0;
v246.x = 0.65;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDEu,
v246,
100.0,
v15,
v16,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v17 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v153 = (unsigned int *)(v239 - 8);
do
v154 = __ldaxr(v153);
while ( __stlxr(v154 - 1, v153) );
}
else
{
v154 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v154 - 1;
}
if ( v154 <= 0 )
operator delete(v17);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, 0.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v247.x = 0.65;
v247.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDFu,
v247,
100.0,
v18,
v19,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v20 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v149 = (unsigned int *)(v239 - 8);
do
v150 = __ldaxr(v149);
while ( __stlxr(v150 - 1, v149) );
}
else
{
v150 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v150 - 1;
}
if ( v150 <= 0 )
operator delete(v20);
}
sub_D153B8((unsigned int)v224 + 272, "Offset");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -25.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v248.x = 0.65;
v248.y = -100.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDCu,
v248,
100.0,
v21,
v22,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v23 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v151 = (unsigned int *)(v239 - 8);
do
v152 = __ldaxr(v151);
while ( __stlxr(v152 - 1, v151) );
}
else
{
v152 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v152 - 1;
}
if ( v152 <= 0 )
operator delete(v23);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -25.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v249.x = 0.65;
v249.y = -100.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDDu,
v249,
100.0,
v24,
v25,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v26 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v147 = (unsigned int *)(v239 - 8);
do
v148 = __ldaxr(v147);
while ( __stlxr(v148 - 1, v147) );
}
else
{
v148 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v148 - 1;
}
if ( v148 <= 0 )
operator delete(v26);
}
switch ( v230 )
{
case 3017:
sub_D153B8((unsigned int)v224 + 272, "Move Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v101 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v200 = (unsigned int *)(v239 - 8);
do
v201 = __ldaxr(v200);
while ( __stlxr(v201 - 1, v200) );
}
else
{
v201 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v201 - 1;
}
if ( v201 <= 0 )
operator delete(v101);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Creates a custom move enter effect.\n"
"Length is how far from the border it is applied.\n"
"Enter Channel lets you specify specific objects.\n"
"Effect ID lets you reference this effect later.\n"
"MoveDist is the distance the objects move.\n"
"MoveAngle is the angle objects move with.\n"
"XY Mode lets you set X and Y values separately.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v102 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v216 = (unsigned int *)(v239 - 8);
do
v217 = __ldaxr(v216);
while ( __stlxr(v217 - 1, v216) );
}
else
{
v217 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v217 - 1;
}
if ( v217 <= 0 )
operator delete(v102);
}
v103 = (void *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v184 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v185 = __ldaxr(v184);
while ( __stlxr(v185 - 1, v184) );
}
else
{
v185 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v185 - 1;
}
if ( v185 <= 0 )
operator delete(v103);
}
sub_D153B8((unsigned int)v224 + 272, "MoveDist");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v261.x = 0.65;
v261.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDAu,
v261,
100.0,
v104,
v105,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
1,
1,
2,
0);
v106 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v220 = (unsigned int *)(v239 - 8);
do
v221 = __ldaxr(v220);
while ( __stlxr(v221 - 1, v220) );
}
else
{
v221 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v221 - 1;
}
if ( v221 <= 0 )
operator delete(v106);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v262.x = 0.65;
v262.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xDBu,
v262,
100.0,
v107,
v108,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
1,
1,
2,
0);
v109 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v192 = (unsigned int *)(v239 - 8);
do
v193 = __ldaxr(v192);
while ( __stlxr(v193 - 1, v192) );
}
else
{
v193 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v193 - 1;
}
if ( v193 <= 0 )
operator delete(v109);
}
sub_D153B8((unsigned int)v224 + 272, "MoveAngle");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v263.x = 0.65;
v263.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xE7u,
v263,
200.0,
v110,
v111,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
1,
1,
2,
0);
v112 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v208 = (unsigned int *)(v239 - 8);
do
v209 = __ldaxr(v208);
while ( __stlxr(v209 - 1, v208) );
}
else
{
v209 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v209 - 1;
}
if ( v209 <= 0 )
operator delete(v112);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v264.x = 0.65;
v264.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xE8u,
v264,
200.0,
v113,
v114,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
1,
1,
2,
0);
v115 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v175 = (unsigned int *)(v239 - 8);
do
v176 = __ldaxr(v175);
while ( __stlxr(v176 - 1, v175) );
}
else
{
v176 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v176 - 1;
}
if ( v176 <= 0 )
operator delete(v115);
}
sub_D153B8((unsigned int)v224 + 272, "XY\nMode");
cocos2d::CCPoint::CCPoint(
&v238,
(float)((float)(a1->m_width * 0.5) + (float)(v232 * 0.5)) - 58.0,
(float)((float)(a1->m_height * 0.5) + (float)(v233 * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 241, 1.0, (__int64)&v239, &v238, 0, 0, 0);
v116 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v167 = (unsigned int *)(v239 - 8);
do
v168 = __ldaxr(v167);
while ( __stlxr(v168 - 1, v167) );
}
else
{
v168 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v168 - 1;
}
if ( v168 <= 0 )
operator delete(v116);
}
sub_D153B8((unsigned int)v224 + 272, "MoveX");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v265.x = 0.65;
v265.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xEDu,
v265,
100.0,
v117,
v118,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
2,
1,
2,
0);
v119 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v163 = (unsigned int *)(v239 - 8);
do
v164 = __ldaxr(v163);
while ( __stlxr(v164 - 1, v163) );
}
else
{
v164 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v164 - 1;
}
if ( v164 <= 0 )
operator delete(v119);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v266.x = 0.65;
v266.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xEEu,
v266,
100.0,
v120,
v121,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
2,
1,
2,
0);
v122 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v165 = (unsigned int *)(v239 - 8);
do
v166 = __ldaxr(v165);
while ( __stlxr(v166 - 1, v165) );
}
else
{
v166 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v166 - 1;
}
if ( v166 <= 0 )
operator delete(v122);
}
sub_D153B8((unsigned int)v224 + 272, "MoveY");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v267.x = 0.65;
v267.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xEFu,
v267,
200.0,
v123,
v124,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
2,
1,
2,
0);
v125 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v161 = (unsigned int *)(v239 - 8);
do
v162 = __ldaxr(v161);
while ( __stlxr(v162 - 1, v161) );
}
else
{
v162 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v162 - 1;
}
if ( v162 <= 0 )
operator delete(v125);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v268.x = 0.65;
v268.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xF0u,
v268,
200.0,
v126,
v127,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
2,
1,
2,
0);
v56 = v239;
v57 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( !&pthread_create )
goto LABEL_138;
v128 = (unsigned int *)(v239 - 8);
do
v75 = __ldaxr(v128);
while ( __stlxr(v75 - 1, v128) );
goto LABEL_75;
}
break;
case 3018:
sub_D153B8((unsigned int)v224 + 272, "Rotate Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v76 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v190 = (unsigned int *)(v239 - 8);
do
v191 = __ldaxr(v190);
while ( __stlxr(v191 - 1, v190) );
}
else
{
v191 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v191 - 1;
}
if ( v191 <= 0 )
operator delete(v76);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Creates a custom rotate enter effect.\n"
"Length is how far from the border it is applied.\n"
"Enter Channel lets you specify specific objects.\n"
"Effect ID lets you reference this effect later.\n"
"Rotation sets how many degrees to rotate. Positive values are clockwise, while negative are counterclockwise.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v77 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v218 = (unsigned int *)(v239 - 8);
do
v219 = __ldaxr(v218);
while ( __stlxr(v219 - 1, v218) );
}
else
{
v219 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v219 - 1;
}
if ( v219 <= 0 )
operator delete(v77);
}
v78 = (void *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v206 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v207 = __ldaxr(v206);
while ( __stlxr(v207 - 1, v206) );
}
else
{
v207 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v207 - 1;
}
if ( v207 <= 0 )
operator delete(v78);
}
sub_D153B8((unsigned int)v224 + 272, "Rotation");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v257.x = 0.65;
v257.y = -360.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x10Eu,
v257,
360.0,
v79,
v80,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v81 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v173 = (unsigned int *)(v239 - 8);
do
v174 = __ldaxr(v173);
while ( __stlxr(v174 - 1, v173) );
}
else
{
v174 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v174 - 1;
}
if ( v174 <= 0 )
operator delete(v81);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v258.x = 0.65;
v258.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x10Fu,
v258,
180.0,
v82,
v83,
(std::string)&v239,
&v238,
(InputValueType)0,
Int,
6,
0,
0,
0,
1,
2,
0);
v56 = v239;
v57 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( !&pthread_create )
goto LABEL_138;
v84 = (unsigned int *)(v239 - 8);
do
v75 = __ldaxr(v84);
while ( __stlxr(v75 - 1, v84) );
goto LABEL_75;
}
break;
case 3019:
sub_D153B8((unsigned int)v224 + 272, "Scale Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v60 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v155 = (unsigned int *)(v239 - 8);
do
v156 = __ldaxr(v155);
while ( __stlxr(v156 - 1, v155) );
}
else
{
v156 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v156 - 1;
}
if ( v156 <= 0 )
operator delete(v60);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Creates a custom scale enter effect.\n"
"Length is how far from the border it is applied.\n"
"Enter Channel lets you specify specific objects.\n"
"Effect ID lets you reference this effect later.\n"
"ScaleX and ScaleY is the size to scale to for each axis.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v61 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v159 = (unsigned int *)(v239 - 8);
do
v160 = __ldaxr(v159);
while ( __stlxr(v160 - 1, v159) );
}
else
{
v160 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v160 - 1;
}
if ( v160 <= 0 )
operator delete(v61);
}
v62 = (void *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v157 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v158 = __ldaxr(v157);
while ( __stlxr(v158 - 1, v157) );
}
else
{
v158 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v158 - 1;
}
if ( v158 <= 0 )
operator delete(v62);
}
sub_D153B8((unsigned int)v224 + 272, "ScaleX");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v253.x = 0.65;
v253.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xE9u,
v253,
100.0,
v63,
v64,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v65 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v214 = (unsigned int *)(v239 - 8);
do
v215 = __ldaxr(v214);
while ( __stlxr(v215 - 1, v214) );
}
else
{
v215 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v215 - 1;
}
if ( v215 <= 0 )
operator delete(v65);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v254.x = 0.65;
v254.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xEAu,
v254,
100.0,
v66,
v67,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v68 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v182 = (unsigned int *)(v239 - 8);
do
v183 = __ldaxr(v182);
while ( __stlxr(v183 - 1, v182) );
}
else
{
v183 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v183 - 1;
}
if ( v183 <= 0 )
operator delete(v68);
}
sub_D153B8((unsigned int)v224 + 272, "ScaleY");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v255.x = 0.65;
v255.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xEBu,
v255,
200.0,
v69,
v70,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v71 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v198 = (unsigned int *)(v239 - 8);
do
v199 = __ldaxr(v198);
while ( __stlxr(v199 - 1, v198) );
}
else
{
v199 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v199 - 1;
}
if ( v199 <= 0 )
operator delete(v71);
}
sub_D153B8((unsigned int)v224 + 272, "+-");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v256.x = 0.65;
v256.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xECu,
v256,
200.0,
v72,
v73,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v56 = v239;
v57 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( !&pthread_create )
goto LABEL_138;
v74 = (unsigned int *)(v239 - 8);
do
v75 = __ldaxr(v74);
while ( __stlxr(v75 - 1, v74) );
goto LABEL_75;
}
break;
case 3020:
sub_D153B8((unsigned int)v224 + 272, "Fade Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v51 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v194 = (unsigned int *)(v239 - 8);
do
v195 = __ldaxr(v194);
while ( __stlxr(v195 - 1, v194) );
}
else
{
v195 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v195 - 1;
}
if ( v195 <= 0 )
operator delete(v51);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Creates a custom fade enter effect.\n"
"Length is how far from the border it is applied.\n"
"Enter Channel lets you specify specific objects.\n"
"Effect ID lets you reference this effect later.\n"
"Opacity is how much the objects fade near the edges of the screen.");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v52 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v210 = (unsigned int *)(v239 - 8);
do
v211 = __ldaxr(v210);
while ( __stlxr(v211 - 1, v210) );
}
else
{
v211 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v211 - 1;
}
if ( v211 <= 0 )
operator delete(v52);
}
v53 = (void *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v202 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v203 = __ldaxr(v202);
while ( __stlxr(v203 - 1, v202) );
}
else
{
v203 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v203 - 1;
}
if ( v203 <= 0 )
operator delete(v53);
}
sub_D153B8((unsigned int)v224 + 272, "Opacity");
cocos2d::CCPoint::CCPoint(&v237, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v252.x = 0.65;
v252.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x113u,
v252,
1.0,
v54,
v55,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
0,
1,
2,
0);
v56 = v239;
v57 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v177 = (unsigned int *)(v239 - 8);
do
v75 = __ldaxr(v177);
while ( __stlxr(v75 - 1, v177) );
}
else
{
LABEL_138:
v75 = *((_DWORD *)v56 - 2);
*((_DWORD *)v56 - 2) = v75 - 1;
}
LABEL_75:
if ( v75 <= 0 )
operator delete(v57);
}
break;
case 3021:
sub_D153B8((unsigned int)v224 + 272, "Tint Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1);
v85 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v171 = (unsigned int *)(v239 - 8);
do
v172 = __ldaxr(v171);
while ( __stlxr(v172 - 1, v171) );
}
else
{
v172 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v172 - 1;
}
if ( v172 <= 0 )
operator delete(v85);
}
sub_D153B8((int)&v238, "Help");
sub_D153B8(
(unsigned int)v224 + 272,
"Creates a custom tint enter effect.\n"
"Length is how far from the border it is applied.\n"
"Enter Channel lets you specify specific objects.\n"
"Effect ID lets you reference this effect later.\n"
"Color Channel is the reference to tint objects with.\n"
"% is how strong the tint is.\n"
"Main and Secondary Only does tinting only for base or detail colors respectively.\n"
"HSV lets you tint the original color channel. ");
SetupTriggerPopup::addHelpButton((__int64)a1, 1.0);
v86 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v204 = (unsigned int *)(v239 - 8);
do
v205 = __ldaxr(v204);
while ( __stlxr(v205 - 1, v204) );
}
else
{
v205 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v205 - 1;
}
if ( v205 <= 0 )
operator delete(v86);
}
v87 = (void *)(*(_QWORD *)&v238 - 24LL);
if ( (__int64 *)(*(_QWORD *)&v238 - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v188 = (unsigned int *)(*(_QWORD *)&v238 - 8LL);
do
v189 = __ldaxr(v188);
while ( __stlxr(v189 - 1, v188) );
}
else
{
v189 = *(_DWORD *)(*(_QWORD *)&v238 - 8LL);
*(_DWORD *)(*(_QWORD *)&v238 - 8LL) = v189 - 1;
}
if ( v189 <= 0 )
operator delete(v87);
}
sub_D153B8((unsigned int)v224 + 272, "Color Channel:");
cocos2d::CCPoint::CCPoint(&v237, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v259.x = 0.65;
v259.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x104u,
v259,
100.0,
v88,
v89,
(std::string)&v239,
&v238,
Float,
Uint,
6,
1u,
0,
1,
0,
2,
0);
v90 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v212 = (unsigned int *)(v239 - 8);
do
v213 = __ldaxr(v212);
while ( __stlxr(v213 - 1, v212) );
}
else
{
v213 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v213 - 1;
}
if ( v213 <= 0 )
operator delete(v90);
}
sub_D153B8((unsigned int)v224 + 272, "Tint");
cocos2d::CCPoint::CCPoint(&v237, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v260.x = 0.65;
v260.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x109u,
v260,
1.0,
v91,
v92,
(std::string)&v239,
&v238,
(InputValueType)0,
Float,
6,
0,
0,
1,
1,
2,
0);
v93 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v196 = (unsigned int *)(v239 - 8);
do
v197 = __ldaxr(v196);
while ( __stlxr(v197 - 1, v196) );
}
else
{
v197 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v197 - 1;
}
if ( v197 <= 0 )
operator delete(v93);
}
sub_D153B8((unsigned int)v224 + 272, "Main\nOnly");
cocos2d::CCPoint::CCPoint(&v237, 150.0, -107.5);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
SetupTriggerPopup::createToggleValueControl(a1, 65, 1.0, (__int64)&v239, &v238, 0, 0, 0);
v94 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v180 = (unsigned int *)(v239 - 8);
do
v181 = __ldaxr(v180);
while ( __stlxr(v181 - 1, v180) );
}
else
{
v181 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v181 - 1;
}
if ( v181 <= 0 )
operator delete(v94);
}
sub_D153B8((unsigned int)v224 + 272, "Sec\nOnly");
cocos2d::CCPoint::CCPoint(&v237, 150.0, -137.5);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
SetupTriggerPopup::createToggleValueControl(a1, 66, 1.0, (__int64)&v239, &v238, 0, 0, 0);
v95 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v178 = (unsigned int *)(v239 - 8);
do
v179 = __ldaxr(v178);
while ( __stlxr(v179 - 1, v178) );
}
else
{
v179 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v179 - 1;
}
if ( v179 <= 0 )
operator delete(v95);
}
sub_D153B8((unsigned int)v224 + 272, "HSV");
cocos2d::CCPoint::CCPoint(&v237, 150.0, -167.5);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
SetupTriggerPopup::createToggleValueControl(a1, 278, 1.0, (__int64)&v239, &v238, 0, 0, 0);
v96 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v222 = (unsigned int *)(v239 - 8);
do
v223 = __ldaxr(v222);
while ( __stlxr(v223 - 1, v222) );
}
else
{
v223 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v223 - 1;
}
if ( v223 <= 0 )
operator delete(v96);
}
v97 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png");
v245.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v245.adj = (size_t)SetupEnterEffectPopup::onHSV;
v98 = CCMenuItemSpriteExtra::create(v97, nullptr, v245);
a1->m_hsvButton = v98;
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v98);
m_hsvButton = a1->m_hsvButton;
v100 = m_hsvButton->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_buttonMenu = a1->m_buttonMenu;
setPosition = (cocos2d::CCPoint *)v100->setPosition;
cocos2d::CCPoint::CCPoint(&v237, 0.0, -75.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v242 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v238);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))setPosition)(
m_hsvButton,
&v239,
v242.x,
v242.y);
SetupTriggerPopup::addObjectToGroup(a1, a1->m_hsvButton, 2);
SetupTriggerPopup::addObjectToPage(a1, a1->m_hsvButton, 0);
SetupEnterEffectPopup::updateHSVButton(a1);
break;
default:
break;
}
sub_D153B8((unsigned int)v224 + 272, "Easing");
cocos2d::CCPoint::CCPoint(&v237, -95.0, -150.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
SetupTriggerPopup::createCustomEasingControls(a1, (unsigned int)v224 + 272, &v238, 242, 243, 0, 0.7, 0);
v29 = v239 - 24;
if ( v239 - 24 == (char *)&qword_124B6B0 )
goto LABEL_13;
if ( &pthread_create )
{
v58 = (unsigned int *)(v239 - 8);
do
v59 = __ldaxr(v58);
while ( __stlxr(v59 - 1, v58) );
}
else
{
v59 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v59 - 1;
}
if ( v59 > 0 )
goto LABEL_13;
}
operator delete(v29);
LABEL_13:
sub_D153B8((unsigned int)v224 + 272, "Enter Channel:");
cocos2d::CCPoint::CCPoint(&v237, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v250.y = 0.0;
v250.x = 0.7;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0x158u,
v250,
0.0,
v30,
v31,
(std::string)&v239,
&v238,
Float,
Uint,
6,
1u,
0,
0,
0,
2,
0);
v32 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v141 = (unsigned int *)(v239 - 8);
do
v142 = __ldaxr(v141);
while ( __stlxr(v142 - 1, v141) );
}
else
{
v142 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v142 - 1;
}
if ( v142 <= 0 )
operator delete(v32);
}
sub_D153B8((unsigned int)v224 + 272, "EffectID:");
cocos2d::CCPoint::CCPoint(&v237, 60.0, -125.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v251.x = 0.7;
v251.y = 0.0;
SetupTriggerPopup::createValueControlAdvanced(
a1,
0xE1u,
v251,
100.0,
v33,
v34,
(std::string)&v239,
&v238,
Float,
Uint,
6,
1u,
1,
0,
0,
2,
0);
v35 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v139 = (unsigned int *)(v239 - 8);
do
v140 = __ldaxr(v139);
while ( __stlxr(v140 - 1, v139) );
}
else
{
v140 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v140 - 1;
}
if ( v140 <= 0 )
operator delete(v35);
}
setPosition = (cocos2d::CCPoint *)&v235;
v225 = (cocos2d::CCSprite *)"GJ_plus2Btn_001.png";
m_buttonMenu = (cocos2d::CCNode *)&v231;
v36 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
v36->setScale(v36, 0.8);
v243.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v243.adj = (size_t)SetupEnterEffectPopup::onNextFreeEnterChannel;
v37 = CCMenuItemSpriteExtra::create(v36, nullptr, v243);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v37);
v38 = a1->m_buttonMenu;
v227 = (cocos2d::CCMenu *)v37->setPosition;
m_mainLayer = v38;
cocos2d::CCPoint::CCPoint(&v237, -40.0, -102.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v240 = cocos2d::CCNode::convertToNodeSpace(m_mainLayer, &v238);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v227)(v37, &v239, v240.x, v240.y);
v39 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v225);
v39->setScale(v39, 0.8);
v244.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v244.adj = (size_t)SetupEnterEffectPopup::onNextFreeEnterEffectID;
v40 = CCMenuItemSpriteExtra::create(v39, nullptr, v244);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v40);
v41 = v40->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_mainLayer = a1->m_buttonMenu;
v227 = (cocos2d::CCMenu *)v41->setPosition;
cocos2d::CCPoint::CCPoint(&v237, 105.0, -102.0);
cocos2d::CCPoint::operator+(&v238, &v234, &v237);
v241 = cocos2d::CCNode::convertToNodeSpace(m_mainLayer, &v238);
((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))v227)(v40, &v239, v241.x, v241.y);
cocos2d::CCPoint::CCPoint(
setPosition,
(float)(v232 * 0.5) + 60.0,
20.0 - (float)((float)(a1->m_height * 0.5) - (float)(v233 * 0.5)));
sub_D153B8((int)&v239, "Enter\nOnly");
v42 = a1->m_enterType == 1;
v227 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v236, 0.0, 30.0);
cocos2d::CCPoint::operator+(&v237, setPosition, &v236);
m_mainLayer = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v238, 8.0, 0.0);
a1->m_enterOnlyToggler = GameToolbox::createToggleButton(
0.7,
0.35,
110.0,
(__int64)&v239,
(void (__cdecl *)(cocos2d::CCObject *))SetupEnterEffectPopup::onEnterType,
0,
v42,
v227,
&v237,
a1,
m_mainLayer,
(float *)&v238,
(__int64)"bigFont.fnt",
0,
0,
nullptr);
v43 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v137 = (unsigned int *)(v239 - 8);
do
v138 = __ldaxr(v137);
while ( __stlxr(v138 - 1, v137) );
}
else
{
v138 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v138 - 1;
}
if ( v138 <= 0 )
operator delete(v43);
}
sub_D153B8((int)&v239, "Exit\nOnly");
v44 = a1->m_buttonMenu;
LODWORD(m_buttonMenu) = a1->m_enterType == 2;
cocos2d::CCPoint::CCPoint(&v236, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v237, setPosition, &v236);
v45 = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v238, 8.0, 0.0);
a1->m_exitOnlyToggler = GameToolbox::createToggleButton(
0.7,
0.35,
110.0,
(__int64)&v239,
(void (__cdecl *)(cocos2d::CCObject *))SetupEnterEffectPopup::onEnterType,
0,
(bool)m_buttonMenu,
v44,
&v237,
a1,
v45,
(float *)&v238,
(__int64)"bigFont.fnt",
0,
0,
nullptr);
v46 = v239 - 24;
if ( v239 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v145 = (unsigned int *)(v239 - 8);
do
v146 = __ldaxr(v145);
while ( __stlxr(v146 - 1, v145) );
}
else
{
v146 = *((_DWORD *)v239 - 2);
*((_DWORD *)v239 - 2) = v146 - 1;
}
if ( v146 <= 0 )
operator delete(v46);
}
m_enterOnlyToggler = a1->m_enterOnlyToggler;
v48 = m_enterOnlyToggler->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_enterOnlyToggler->m_notClickable = 1;
v48->setTag(m_enterOnlyToggler, 1);
m_exitOnlyToggler = a1->m_exitOnlyToggler;
v50 = m_exitOnlyToggler->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_exitOnlyToggler->m_notClickable = 1;
v50->setTag(m_exitOnlyToggler, 2);
a1->updateDefaultTriggerValues(a1);
if ( v230 == 3017 )
{
v129 = cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241);
if ( v129 )
{
if ( *(float *)&v129[1].__vftable == 0.0 )
LODWORD(v130) = 0;
else
LODWORD(v130) = 1.0;
a1->valueDidChange(a1, 241, v130);
a1->m_disableTextDelegate = 0;
}
else
{
a1->toggleGroup(a1, 1, 0);
a1->toggleGroup(a1, 2, 0);
a1->m_disableTextDelegate = 0;
}
}
else
{
if ( v230 == 3021 )
{
toggleGroup = a1->toggleGroup;
v132 = a1->getValue(a1, 278);
toggleGroup(a1, 1, v132 == 0.0);
v133 = a1->toggleGroup;
v134 = a1->getValue(a1, 278);
v133(a1, 2, v134 != 0.0);
}
a1->m_disableTextDelegate = 0;
}
return v5;
}