//
// SetupEnterEffectPopup::init from 0x55c730 to 0x55d962 (4658 bytes)
//
// 1 xrefs:
// > SetupEnterEffectPopup::create @ 0x55dafe
//
// 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)
{
cocos2d::CCDirector *v5; // r0
cocos2d::CCSprite *v6; // r0
CCMenuItemSpriteExtra *v7; // r0
CCMenuItemSpriteExtra *m_hsvButton; // r9
cocos2d::CCPoint *v9; // r0
cocos2d::CCSprite *v10; // r5
CCMenuItemSpriteExtra *v11; // r8
cocos2d::CCMenu *v12; // r11
cocos2d::CCSprite *v13; // r7
CCMenuItemSpriteExtra *v14; // r11
void (__fastcall *v15)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6
cocos2d::CCMenu *v16; // r8
int m_enterType; // r3
int v18; // r2
cocos2d::CCMenu *v19; // r3
bool v20; // r9
cocos2d::CCLayer *m_mainLayer; // r11
int v22; // r7
cocos2d::CCMenu *v23; // r6
cocos2d::CCLayer *v24; // r10
CCMenuItemToggler *m_enterOnlyToggler; // r0
CCMenuItemToggler_vtbl *v26; // r3
CCMenuItemToggler *m_exitOnlyToggler; // r0
CCMenuItemToggler_vtbl *v28; // r3
cocos2d::CCObject *v29; // r0
SetupEnterEffectPopup_vtbl *v30; // r3
void (__fastcall *valueDidChange)(SetupEnterEffectPopup *__hidden, int, float); // r3
float v32; // r2
void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // r6
float v34; // r0
void (__fastcall *v35)(SetupTriggerPopup *__hidden, int, bool); // r5
float v36; // r0
cocos2d::CCNode *v38; // [sp+30h] [bp-84h]
_BOOL4 v40; // [sp+38h] [bp-7Ch]
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+3Ch] [bp-78h]
cocos2d::CCMenu *m_buttonMenu; // [sp+44h] [bp-70h]
cocos2d::CCPoint *v43; // [sp+44h] [bp-70h]
char v44[4]; // [sp+50h] [bp-64h] BYREF
cocos2d::CCSize v45; // [sp+54h] [bp-60h] BYREF
cocos2d::CCPoint v46; // [sp+5Ch] [bp-58h] BYREF
cocos2d::CCPoint v47; // [sp+64h] [bp-50h] BYREF
cocos2d::CCPoint v48; // [sp+6Ch] [bp-48h] BYREF
cocos2d::CCPoint v49; // [sp+74h] [bp-40h] BYREF
cocos2d::CCPoint v50; // [sp+7Ch] [bp-38h] BYREF
void (*v51)(SetupEnterEffectPopup *, cocos2d::CCObject *); // [sp+84h] [bp-30h]
int v52; // [sp+88h] [bp-2Ch]
void (*v53)(SetupEnterEffectPopup *, cocos2d::CCObject *); // [sp+8Ch] [bp-28h]
int v54; // [sp+90h] [bp-24h]
cocos2d::CCPoint v55; // [sp+94h] [bp-20h] BYREF
cocos2d::CCPoint v56; // [sp+9Ch] [bp-18h] BYREF
cocos2d::CCPoint v57; // [sp+A4h] [bp-10h] BYREF
v40 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1);
if ( v40 )
{
a1->m_objectID = a4;
a1->determineStartValues(a1);
sub_776584((int)&v57, "OK");
SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v57);
sub_774008(&v57);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v45, v5);
cocos2d::CCPoint::CCPoint(&v46, v45.width * 0.5, (float)(v45.height * 0.5) + 95.0);
if ( a4 == 3023 )
{
sub_776584((int)&v57, "Stop Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584((int)&v57, "Stops an enter effect using its Enter Channel or Effect ID.");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
v9 = &v56;
}
else
{
sub_776584((int)&v55, "Length");
cocos2d::CCPoint::CCPoint(&v56, -75.0, 0.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
222,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, 0.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
223,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "Offset");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -25.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
220,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
(cocos2d::CCFloat *)0xC2C80000,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -25.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
221,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
(cocos2d::CCFloat *)0xC2C80000,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
switch ( a4 )
{
case 3017:
sub_776584((int)&v57, "Move Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584(
(int)&v57,
"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((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
sub_774008(&v56);
sub_776584((int)&v55, "MoveDist");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
218,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
1,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
219,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
1,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "MoveAngle");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
231,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
200.0,
0,
1,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
232,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
200.0,
0,
1,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v56, "XY\nMode");
cocos2d::CCPoint::CCPoint(
&v57,
(float)((float)(a1->m_width * 0.5) + (float)(v45.width * 0.5)) - 58.0,
(float)((float)(a1->m_height * 0.5) + (float)(v45.height * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 241, (int)&v56, &v57, 0, 0, 0, 1.0);
sub_774008(&v56);
sub_776584((int)&v55, "MoveX");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
237,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
2,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
238,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
100.0,
0,
2,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "MoveY");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
239,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
200.0,
0,
2,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
240,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
200.0,
0,
2,
1,
2,
0);
goto LABEL_8;
case 3018:
sub_776584((int)&v57, "Rotate Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584(
(int)&v57,
"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((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
sub_774008(&v56);
sub_776584((int)&v55, "Rotation");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
270,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
(cocos2d::CCFloat *)0xC3B40000,
360.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
271,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
180.0,
0,
0,
1,
2,
0);
goto LABEL_8;
case 3019:
sub_776584((int)&v57, "Scale Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584(
(int)&v57,
"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((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
sub_774008(&v56);
sub_776584((int)&v55, "ScaleX");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
233,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
234,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
100.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "ScaleY");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
235,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
200.0,
0,
0,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "+-");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
236,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
200.0,
0,
0,
1,
2,
0);
goto LABEL_8;
case 3020:
sub_776584((int)&v57, "Fade Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584(
(int)&v57,
"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((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
sub_774008(&v56);
sub_776584((int)&v55, "Opacity");
cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
275,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
1.0,
0,
0,
1,
2,
0);
LABEL_8:
sub_774008(&v55);
break;
case 3021:
sub_776584((int)&v57, "Tint Enter Effect");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v57);
sub_776584((int)&v56, "Help");
sub_776584(
(int)&v57,
"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((int)a1, (int)&v56, (int)&v57, 1065353216);
sub_774008(&v57);
sub_774008(&v56);
sub_776584((int)&v55, "Color Channel:");
cocos2d::CCPoint::CCPoint(&v56, -100.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
260,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
1,
Uint,
6,
1,
nullptr,
100.0,
0,
1,
0,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "Tint");
cocos2d::CCPoint::CCPoint(&v56, 75.0, -75.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
265,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F266666,
0,
Float,
6,
0,
nullptr,
1.0,
0,
1,
1,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "Main\nOnly");
cocos2d::CCPoint::CCPoint(&v56, 150.0, -107.5);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createToggleValueControl(a1, 65, (int)&v55, &v57, 0, 0, 0, 1.0);
sub_774008(&v55);
sub_776584((int)&v55, "Sec\nOnly");
cocos2d::CCPoint::CCPoint(&v56, 150.0, -137.5);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createToggleValueControl(a1, 66, (int)&v55, &v57, 0, 0, 0, 1.0);
sub_774008(&v55);
sub_776584((int)&v55, "HSV");
cocos2d::CCPoint::CCPoint(&v56, 150.0, -167.5);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createToggleValueControl(a1, 278, (int)&v55, &v57, 0, 0, 0, 1.0);
sub_774008(&v55);
v6 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png");
v52 = 0;
v51 = SetupEnterEffectPopup::onHSV;
v7 = CCMenuItemSpriteExtra::create(
v6,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupEnterEffectPopup::onHSV, (unsigned int)a1));
a1->m_hsvButton = v7;
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v7);
m_hsvButton = a1->m_hsvButton;
setPosition = m_hsvButton->setPosition;
m_buttonMenu = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v55, 0.0, -75.0);
cocos2d::CCPoint::operator+(&v56, &v46, &v55);
cocos2d::CCNode::convertToNodeSpace(&v57, m_buttonMenu, &v56);
setPosition(m_hsvButton, &v57);
SetupTriggerPopup::addObjectToGroup(a1, a1->m_hsvButton, 2);
SetupTriggerPopup::addObjectToPage(a1, a1->m_hsvButton, 0);
SetupEnterEffectPopup::updateHSVButton(a1);
break;
default:
break;
}
sub_776584((int)&v55, "Easing");
cocos2d::CCPoint::CCPoint(&v56, -95.0, -150.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createCustomEasingControls(
a1,
(int)&v55,
&v57,
(cocos2d::CCFloat *)0x3F333333,
(cocos2d::CCInteger *)((char *)&dword_F0 + 2),
(cocos2d::CCInteger *)((char *)&dword_F0 + 3),
0,
0);
v9 = &v55;
}
sub_774008(v9);
sub_776584((int)&v55, "Enter Channel:");
cocos2d::CCPoint::CCPoint(&v56, -100.0, -125.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
344,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F333333,
1,
Uint,
6,
1,
nullptr,
0.0,
0,
0,
0,
2,
0);
sub_774008(&v55);
sub_776584((int)&v55, "EffectID:");
cocos2d::CCPoint::CCPoint(&v56, 60.0, -125.0);
cocos2d::CCPoint::operator+(&v57, &v46, &v56);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
225,
(int)&v55,
&v57,
(cocos2d::CCZone *)0x3F333333,
1,
Uint,
6,
1,
nullptr,
100.0,
1,
0,
0,
2,
0);
sub_774008(&v55);
v10 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, int))v10->setScale)(v10, 1061997773);
v54 = 0;
v53 = SetupEnterEffectPopup::onNextFreeEnterChannel;
v11 = CCMenuItemSpriteExtra::create(
v10,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupEnterEffectPopup::onNextFreeEnterChannel, (unsigned int)a1));
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v11);
v12 = a1->m_buttonMenu;
v43 = (cocos2d::CCPoint *)v11->setPosition;
cocos2d::CCPoint::CCPoint(&v55, -40.0, -102.0);
cocos2d::CCPoint::operator+(&v56, &v46, &v55);
cocos2d::CCNode::convertToNodeSpace(&v57, v12, &v56);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v43)(v11, &v57);
v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, int))v13->setScale)(v13, 1061997773);
v55.y = 0.0;
LODWORD(v55.x) = SetupEnterEffectPopup::onNextFreeEnterEffectID;
v14 = CCMenuItemSpriteExtra::create(
v13,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupEnterEffectPopup::onNextFreeEnterEffectID, (unsigned int)a1));
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v14);
v15 = v14->setPosition;
v16 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v50, 105.0, -102.0);
cocos2d::CCPoint::operator+(&v56, &v46, &v50);
cocos2d::CCNode::convertToNodeSpace(&v57, v16, &v56);
v15(v14, &v57);
cocos2d::CCPoint::CCPoint(
&v47,
(float)(v45.width * 0.5) + 60.0,
(float)((float)(v45.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0);
sub_776584((int)&v48, "Enter\nOnly");
m_enterType = a1->m_enterType;
v56.y = 0.0;
v18 = m_enterType - 1;
v19 = a1->m_buttonMenu;
LODWORD(v56.x) = SetupEnterEffectPopup::onEnterType;
v20 = v18 == 0;
v38 = v19;
cocos2d::CCPoint::CCPoint(&v49, 0.0, 30.0);
cocos2d::CCPoint::operator+(&v50, &v47, &v49);
m_mainLayer = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v57, 8.0, 0.0);
a1->m_enterOnlyToggler = GameToolbox::createToggleButton(
(int)&v48,
LODWORD(v56.x),
LODWORD(v56.y),
v20,
v38,
&v50,
a1,
m_mainLayer,
0.7,
0.35,
110.0,
(int)&v57,
(int)"bigFont.fnt",
0,
0,
nullptr);
sub_774008(&v48);
sub_776584((int)v44, "Exit\nOnly");
v22 = a1->m_enterType;
v57.y = 0.0;
LODWORD(v57.x) = SetupEnterEffectPopup::onEnterType;
v23 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v48, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v49, &v47, &v48);
v24 = a1->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v50, 8.0, 0.0);
a1->m_exitOnlyToggler = GameToolbox::createToggleButton(
(int)v44,
LODWORD(v57.x),
LODWORD(v57.y),
v22 == 2,
v23,
&v49,
a1,
v24,
0.7,
0.35,
110.0,
(int)&v50,
(int)"bigFont.fnt",
0,
0,
nullptr);
sub_774008(v44);
m_enterOnlyToggler = a1->m_enterOnlyToggler;
v26 = m_enterOnlyToggler->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_enterOnlyToggler->m_notClickable = 1;
v26->setTag(m_enterOnlyToggler, 1);
m_exitOnlyToggler = a1->m_exitOnlyToggler;
v28 = m_exitOnlyToggler->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
m_exitOnlyToggler->m_notClickable = 1;
v28->setTag(m_exitOnlyToggler, 2);
a1->updateDefaultTriggerValues(a1);
if ( a4 == 3017 )
{
v29 = cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241);
v30 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v29 )
{
valueDidChange = v30->valueDidChange;
if ( *(float *)&v29[1].__vftable == 0.0 )
v32 = 0.0;
else
v32 = 1.0;
((void (__fastcall *)(SetupEnterEffectPopup *, int, _DWORD))valueDidChange)(a1, 241, LODWORD(v32));
}
else
{
v30->toggleGroup(a1, 1, 0);
a1->toggleGroup(a1, 2, 0);
}
}
else if ( a4 == 3021 )
{
toggleGroup = a1->toggleGroup;
v34 = COERCE_FLOAT(((int (__fastcall *)(SetupEnterEffectPopup *, int))a1->getValue)(a1, 278));
toggleGroup(a1, 1, v34 == 0.0);
v35 = a1->toggleGroup;
v36 = COERCE_FLOAT(((int (__fastcall *)(SetupEnterEffectPopup *, int))a1->getValue)(a1, 278));
v35(a1, 2, v36 != 0.0);
}
a1->m_disableTextDelegate = 0;
}
return v40;
}