//
// SetupEnterEffectPopup::init from 0xb43c78 to 0xb45898 (7200 bytes)
//
// 2 xrefs:
// > SetupEnterEffectPopup::create @ 0xb45b48
// > ??> @ 0x684e8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:01:53 +0000
//
__int64 __fastcall SetupEnterEffectPopup::init(
cocos2d::CCDictionary **this,
EnterEffectObject *a2,
cocos2d::CCArray *a3,
int a4)
{
unsigned __int8 v6; // w0
unsigned int v7; // w24
cocos2d::CCDictionary *v9; // x1
__int64 v10; // x2
__int64 v11; // x3
__int64 v12; // x4
__int64 v13; // x5
const char *v14; // x6
cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // x0
cocos2d::CCDirector *v16; // x0
const char *v17; // x1
unsigned __int8 v18; // w28
CCMenuItemToggler *ToggleButton; // x0
char v20; // w1
__int64 v21; // x25
CCMenuItemToggler *v22; // x0
char v23; // w1
const char *v24; // x1
__int64 v25; // x0
__int64 v26; // x0
__int64 v27; // x27
void (__fastcall *v28)(__int64, __int64 *); // x25
__int64 v29; // x0
long double v30; // q0
void (__fastcall *v31)(cocos2d::CCDictionary **, __int64, bool); // x20
float v32; // s0
void (__fastcall *v33)(cocos2d::CCDictionary **, __int64, bool); // x20
float v34; // s0
int v35; // [xsp+8h] [xbp-28h]
cocos2d::CCNode *v36; // [xsp+D8h] [xbp+A8h]
cocos2d::CCNode *v37; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v38; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v39; // [xsp+E0h] [xbp+B0h]
cocos2d::CCNode *v40; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v41; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v42; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v43; // [xsp+E8h] [xbp+B8h]
unsigned __int8 v44; // [xsp+E8h] [xbp+B8h]
cocos2d::CCNode *v45; // [xsp+E8h] [xbp+B8h]
__int64 v46; // [xsp+F8h] [xbp+C8h] BYREF
_BYTE v47[8]; // [xsp+100h] [xbp+D0h] BYREF
_BYTE v48[8]; // [xsp+108h] [xbp+D8h] BYREF
_BYTE v49[8]; // [xsp+110h] [xbp+E0h] BYREF
__int64 v50; // [xsp+118h] [xbp+E8h] BYREF
__int64 v51; // [xsp+120h] [xbp+F0h] BYREF
__int64 v52; // [xsp+128h] [xbp+F8h] BYREF
__int64 v53; // [xsp+130h] [xbp+100h]
void *v54; // [xsp+138h] [xbp+108h]
__int64 v55; // [xsp+140h] [xbp+110h] BYREF
__int64 v56; // [xsp+148h] [xbp+118h]
void *v57; // [xsp+150h] [xbp+120h]
v6 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, 1u, 0.0);
v7 = v6;
if ( v6 )
{
v9 = *this;
*((_DWORD *)this + 256) = a4;
(*((void (__fastcall **)(cocos2d::CCDictionary **))v9 + 170))(this);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "OK", 2u);
SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v55, v10, v11, v12, v13, v14);
if ( (v55 & 1) != 0 )
operator delete(v57);
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this);
v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal);
cocos2d::CCDirector::getWinSize(&v46, v16);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, *(float *)&v46 * 0.5, (float)(*((float *)&v46 + 1) * 0.5) + 95.0);
if ( a4 == 3023 )
{
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Stop Enter Effect", 0x11u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"Stops an enter effect using its Enter Channel or Effect ID.",
0x53u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
}
else
{
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Length", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, 0.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
222,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, 0.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
223,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Offset", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -25.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
220,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
-100.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -25.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
221,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
-100.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
switch ( a4 )
{
case 3017:
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Move Enter Effect", 0x11u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"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.",
0x172u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "MoveDist", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
218,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
1,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
219,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
1,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "MoveAngle", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
231,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
200.0,
0,
1,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
232,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
200.0,
0,
1,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "XY\nMode", 7u);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v51,
(float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v46 * 0.5)) - 58.0,
(float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v46 + 1) * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0xF1u,
&v55,
(const cocos2d::CCPoint *)&v51,
0,
0,
0,
1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "MoveX", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
237,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
2,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
238,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
100.0,
0,
2,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "MoveY", 5u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
239,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
200.0,
0,
2,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
240,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
200.0,
0,
2,
1,
2,
0);
goto LABEL_28;
case 3018:
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Rotate Enter Effect", 0x13u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"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.",
0x14Du);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Rotation", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
270,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
-360.0,
360.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
271,
(char *)&v55,
(__int64)&v51,
0,
2,
6,
0,
0.65,
0.0,
180.0,
0,
0,
1,
2,
0);
goto LABEL_28;
case 3019:
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Scale Enter Effect", 0x12u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"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.",
0x117u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "ScaleX", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
233,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
234,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
100.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "ScaleY", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
235,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
200.0,
0,
0,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
236,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
200.0,
0,
0,
1,
2,
0);
goto LABEL_28;
case 3020:
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Fade Enter Effect", 0x11u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"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.",
0x120u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Opacity", 7u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
275,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
1.0,
0,
0,
1,
2,
0);
LABEL_28:
if ( (v55 & 1) != 0 )
operator delete(v57);
break;
case 3021:
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Tint Enter Effect", 0x11u);
SetupTriggerPopup::addTitle((__int64)this, (__int64)&v55);
if ( (v55 & 1) != 0 )
operator delete(v57);
v52 = 0;
v53 = 0;
v54 = nullptr;
std::string::__init(&v52, "Help", 4u);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(
&v55,
"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. ",
0x1C8u);
SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v52, (char *)&v55, 1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
if ( (v52 & 1) != 0 )
operator delete(v54);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Color Channel:", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
260,
(char *)&v55,
(__int64)&v51,
1,
3,
6,
1,
0.65,
0.0,
100.0,
0,
1,
0,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Tint", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
265,
(char *)&v55,
(__int64)&v51,
0,
1,
6,
0,
0.65,
0.0,
1.0,
0,
1,
1,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Main\nOnly", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 150.0, -107.5);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x41u,
&v55,
(const cocos2d::CCPoint *)&v51,
0,
0,
0,
1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Sec\nOnly", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 150.0, -137.5);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x42u,
&v55,
(const cocos2d::CCPoint *)&v51,
0,
0,
0,
1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "HSV", 3u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 150.0, -167.5);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createToggleValueControl(
(__int64)this,
0x116u,
&v55,
(const cocos2d::CCPoint *)&v51,
0,
0,
0,
1.0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v25 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v24);
v26 = CCMenuItemSpriteExtra::create(v25, 0, (__int64)this, (__int64)SetupEnterEffectPopup::onHSV, 0);
*(this + 132) = (cocos2d::CCDictionary *)v26;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v26);
v27 = (__int64)*(this + 132);
v45 = *(this + 69);
v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 0.0, -75.0);
cocos2d::CCPoint::operator+(&v50, v47);
cocos2d::CCNode::convertToNodeSpace(&v51, v45, (const cocos2d::CCPoint *)&v50);
v28(v27, &v51);
SetupTriggerPopup::addObjectToGroup(this, *(this + 132), 2u);
SetupTriggerPopup::addObjectToPage(this, *(this + 132), 0);
SetupEnterEffectPopup::updateHSVButton((SetupEnterEffectPopup *)this);
break;
default:
break;
}
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Easing", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -95.0, -154.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createCustomEasingControls((__int64)this, (__int64)&v55, (__int64)&v51, 0xF2u, 243, 0, 0, 0.7);
if ( (v55 & 1) != 0 )
operator delete(v57);
}
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Enter Channel:", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v51, v47);
LOBYTE(v35) = 0;
IDNameInput::create(this, this + 68, 8, 344, &v55, &v51, 6, 0, 0.7, 0, v35);
if ( (v55 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "EffectID:", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 60.0, -125.0);
cocos2d::CCPoint::operator+(&v51, v47);
SetupTriggerPopup::createValueControlAdvanced(
this,
225,
(char *)&v55,
(__int64)&v51,
1,
3,
6,
1,
0.7,
0.0,
100.0,
1,
0,
0,
2,
0);
if ( (v55 & 1) != 0 )
operator delete(v57);
v40 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_plus2Btn_001.png",
v17);
(*(void (__fastcall **)(float))(*(_QWORD *)v40 + 160LL))(0.8);
v41 = (cocos2d::CCNode *)CCMenuItemSpriteExtra::create(
(__int64)v40,
0,
(__int64)this,
(__int64)SetupEnterEffectPopup::onNextFreeEnterEffectID,
0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v41);
v36 = v41;
v37 = *(this + 69);
v42 = *(cocos2d::CCNode **)(*(_QWORD *)v41 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 105.0, -102.0);
cocos2d::CCPoint::operator+(&v50, v47);
cocos2d::CCNode::convertToNodeSpace(&v51, v37, (const cocos2d::CCPoint *)&v50);
((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v42)(v36, &v51);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v48,
(float)(*(float *)&v46 * 0.5) + 60.0,
20.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v46 + 1) * 0.5)));
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Enter\nOnly", 0xAu);
v18 = *((_DWORD *)this + 262) == 1;
v43 = *(this + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 0.0, 30.0);
cocos2d::CCPoint::operator+(&v50, v48);
v38 = *(this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 8.0, 0.0);
ToggleButton = GameToolbox::createToggleButton(
(__int64)&v55,
(const char *)SetupEnterEffectPopup::onEnterType,
0,
v18,
v43,
(const cocos2d::CCPoint *)&v50,
(__int64)this,
(__int64)v38,
0.7,
0.35,
110.0,
(float *)&v51,
"bigFont.fnt",
0,
0,
nullptr);
v20 = v55;
*(this + 129) = ToggleButton;
if ( (v20 & 1) != 0 )
operator delete(v57);
v55 = 0;
v56 = 0;
v57 = nullptr;
std::string::__init(&v55, "Exit\nOnly", 9u);
v39 = *(this + 69);
v44 = *((_DWORD *)this + 262) == 2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v50, v48);
v21 = (__int64)*(this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 8.0, 0.0);
v22 = GameToolbox::createToggleButton(
(__int64)&v55,
(const char *)SetupEnterEffectPopup::onEnterType,
0,
v44,
v39,
(const cocos2d::CCPoint *)&v50,
(__int64)this,
v21,
0.7,
0.35,
110.0,
(float *)&v51,
"bigFont.fnt",
0,
0,
nullptr);
v23 = v55;
*(this + 130) = v22;
if ( (v23 & 1) != 0 )
operator delete(v57);
*((_BYTE *)*(this + 129) + 393) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 129) + 72LL))(*(this + 129), 1);
*((_BYTE *)*(this + 130) + 393) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 130) + 72LL))(*(this + 130), 2);
(*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 179))(this);
if ( a4 == 3017 )
{
v29 = cocos2d::CCDictionary::objectForKey(*(this + 104), 241);
if ( v29 )
{
if ( *(float *)(v29 + 56) == 0.0 )
LODWORD(v30) = 0;
else
LODWORD(v30) = 1.0;
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, long double))*this + 182))(this, 241, v30);
*((_BYTE *)this + 744) = 0;
}
else
{
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*this + 169))(this, 1, 0);
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64, _QWORD))*this + 169))(this, 2, 0);
*((_BYTE *)this + 744) = 0;
}
}
else
{
if ( a4 == 3021 )
{
v31 = *((void (__fastcall **)(cocos2d::CCDictionary **, __int64, bool))*this + 169);
v32 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 278);
v31(this, 1, v32 == 0.0);
v33 = *((void (__fastcall **)(cocos2d::CCDictionary **, __int64, bool))*this + 169);
v34 = (*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 278);
v33(this, 2, v34 != 0.0);
}
*((_BYTE *)this + 744) = 0;
}
}
return v7;
}