//
// SetupEnterEffectPopup::init from 0x1405b33f0 to 0x1405b56a0 (8880 bytes)
//
// 2 xrefs:
// > EditorUI::editObject @ 0x1401bd004
// > ??> @ 0x14092dc14
//
// This function is hookable on this platform (idp: pc, 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 11:34:43 +0000
//
// Hidden C++ exception states: #wind=4
char __fastcall SetupEnterEffectPopup::init(__int64 a1, int a2, int a3, int a4)
{
char result; // al
__int64 v7; // rcx
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // rax
_QWORD *v13; // r8
_QWORD *v14; // rcx
const char *v15; // rax
__int64 v16; // rdx
__int64 v17; // rax
__int64 v18; // rax
__int64 v19; // rax
__int64 v20; // rax
int v21; // eax
__int64 v22; // rax
__int64 v23; // rax
__int64 v24; // rax
__int64 v25; // rax
_QWORD *v26; // r9
_QWORD *v27; // rcx
const char *v28; // rdx
__int64 v29; // r8
__int64 v30; // rax
__int64 v31; // rax
_QWORD *v32; // r9
_QWORD *v33; // rcx
const char *v34; // rdx
__int64 v35; // r8
__int64 v36; // rax
__int64 v37; // rax
__int64 v38; // rax
__int64 v39; // rax
_QWORD *v40; // rax
_OWORD *v41; // rcx
const char *v42; // rdx
__int64 v43; // r8
__int64 v44; // rax
_QWORD *v45; // r8
_OWORD *v46; // rcx
const char *v47; // rax
__int64 v48; // rdx
__int64 v49; // rax
__int64 v50; // rax
__int64 v51; // rax
__int64 v52; // rax
__int64 v53; // rax
int v54; // eax
cocos2d::CCObject *v55; // rax
__int64 v56; // rax
__int64 *v57; // rdi
__int64 v58; // rbx
__int64 v59; // rax
struct cocos2d::CCObject *v60; // rbx
cocos2d::CCArray *GroupContainer; // rax
struct cocos2d::CCObject *v62; // rbx
cocos2d::CCArray *PageContainer; // rax
__int64 v64; // rax
int v65; // r9d
__int64 v66; // rax
__int64 v67; // rdx
__int64 v68; // rax
struct cocos2d::CCSprite *v69; // rax
int v70; // ebx
cocos2d::CCObject *v71; // rdi
__int64 v72; // rax
__int64 v73; // rbx
__int64 v74; // rax
__int64 v75; // rax
float *v76; // rax
int v77; // esi
__int64 v78; // rax
__int64 v79; // rbx
__int64 v80; // rdi
float *v81; // rax
__int64 v82; // r8
__int64 v83; // r8
int v84; // [rsp+38h] [rbp-D0h]
_BYTE v85[8]; // [rsp+88h] [rbp-80h] BYREF
__int128 *v86; // [rsp+90h] [rbp-78h] BYREF
__int128 *v87; // [rsp+98h] [rbp-70h] BYREF
_BYTE v88[8]; // [rsp+A0h] [rbp-68h] BYREF
__int128 v89; // [rsp+A8h] [rbp-60h] BYREF
__int64 v90; // [rsp+B8h] [rbp-50h]
__int64 v91; // [rsp+C0h] [rbp-48h]
float v92; // [rsp+C8h] [rbp-40h] BYREF
float v93; // [rsp+CCh] [rbp-3Ch]
_BYTE v94[8]; // [rsp+D0h] [rbp-38h] BYREF
__int128 *v95; // [rsp+D8h] [rbp-30h] BYREF
__int128 v96; // [rsp+E0h] [rbp-28h] BYREF
__m128i si128; // [rsp+F0h] [rbp-18h]
result = SetupTriggerPopup::init(a1, a2, a3, a4, 1133248512, 1, 0);
if ( result )
{
*(_DWORD *)(a1 + 1008) = a4;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);
v96 = 0;
si128.m128i_i64[0] = 2;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "OK");
SetupTriggerPopup::addCloseButton(a1, &v96);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
v8 = cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(v8, &v92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, v92 * 0.5, (float)(v93 * 0.5) + 95.0);
if ( a4 != 3023 )
{
v87 = &v96;
v96 = 0;
si128.m128i_i64[0] = 6;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "Length");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, -75.0, 0.0);
cocos2d::CCPoint::operator+(v88, v85, v9);
SetupTriggerPopup::createValueControlAdvanced(
a1,
222,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 2;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, 0.0);
cocos2d::CCPoint::operator+(v88, v85, v10);
SetupTriggerPopup::createValueControlAdvanced(
a1,
223,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 6;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "Offset");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -25.0);
cocos2d::CCPoint::operator+(v88, v85, v11);
SetupTriggerPopup::createValueControlAdvanced(
a1,
220,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 2;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -25.0);
cocos2d::CCPoint::operator+(v88, v85, v12);
SetupTriggerPopup::createValueControlAdvanced(
a1,
221,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
}
switch ( a4 )
{
case 3017:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 17;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Move Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
v13 = sub_14003D460(0x180u);
*(_QWORD *)&v96 = v13;
si128.m128i_i64[0] = 370;
si128.m128i_i64[1] = 383;
v14 = v13;
v15 = "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.";
v16 = 2;
do
{
*(_OWORD *)v14 = *(_OWORD *)v15;
*((_OWORD *)v14 + 1) = *((_OWORD *)v15 + 1);
*((_OWORD *)v14 + 2) = *((_OWORD *)v15 + 2);
*((_OWORD *)v14 + 3) = *((_OWORD *)v15 + 3);
*((_OWORD *)v14 + 4) = *((_OWORD *)v15 + 4);
*((_OWORD *)v14 + 5) = *((_OWORD *)v15 + 5);
*((_OWORD *)v14 + 6) = *((_OWORD *)v15 + 6);
v14 += 16;
*((_OWORD *)v14 - 1) = *((_OWORD *)v15 + 7);
v15 += 128;
--v16;
}
while ( v16 );
*(_OWORD *)v14 = *(_OWORD *)v15;
*((_OWORD *)v14 + 1) = *((_OWORD *)v15 + 1);
*((_OWORD *)v14 + 2) = *((_OWORD *)v15 + 2);
*((_OWORD *)v14 + 3) = *((_OWORD *)v15 + 3);
*((_OWORD *)v14 + 4) = *((_OWORD *)v15 + 4);
*((_OWORD *)v14 + 5) = *((_OWORD *)v15 + 5);
*((_OWORD *)v14 + 6) = *((_OWORD *)v15 + 6);
*((_WORD *)v14 + 56) = *((_WORD *)v15 + 56);
*((_BYTE *)v13 + 370) = 0;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
v86 = &v89;
v90 = 8;
v91 = 15;
v89 = 0x7473694465766F4DuLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v17);
SetupTriggerPopup::createValueControlAdvanced(
a1,
218,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
1,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v18);
SetupTriggerPopup::createValueControlAdvanced(
a1,
219,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
1,
1,
2,
0);
v86 = &v96;
*((_QWORD *)&v96 + 1) = 101;
si128.m128i_i64[0] = 9;
si128.m128i_i64[1] = 15;
*(_QWORD *)&v96 = 0x6C676E4165766F4DLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v19);
SetupTriggerPopup::createValueControlAdvanced(
a1,
231,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1128792064,
0,
1,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v20);
SetupTriggerPopup::createValueControlAdvanced(
a1,
232,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1128792064,
0,
1,
1,
2,
0);
v86 = &v96;
si128.m128i_i64[0] = 7;
si128.m128i_i64[1] = 15;
v96 = 0x65646F4D0A5958uLL;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v87,
(float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v92 * 0.5)) - 58.0,
(float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v93 * 0.5)) - 20.0);
SetupTriggerPopup::createToggleValueControl(a1, 241, (unsigned int)&v96, v21, 0, 0, 0, 1065353216);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 5;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "MoveX");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v22);
SetupTriggerPopup::createValueControlAdvanced(
a1,
237,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
2,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v23);
SetupTriggerPopup::createValueControlAdvanced(
a1,
238,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
2,
1,
2,
0);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 5;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "MoveY");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v24);
SetupTriggerPopup::createValueControlAdvanced(
a1,
239,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1128792064,
0,
2,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v25);
SetupTriggerPopup::createValueControlAdvanced(
a1,
240,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1128792064,
0,
2,
1,
2,
0);
break;
case 3018:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 19;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Rotate Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
v26 = sub_14003D460(0x150u);
*(_QWORD *)&v96 = v26;
si128.m128i_i64[0] = 333;
si128.m128i_i64[1] = 335;
v27 = v26;
v28 = "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.";
v29 = 2;
do
{
*(_OWORD *)v27 = *(_OWORD *)v28;
*((_OWORD *)v27 + 1) = *((_OWORD *)v28 + 1);
*((_OWORD *)v27 + 2) = *((_OWORD *)v28 + 2);
*((_OWORD *)v27 + 3) = *((_OWORD *)v28 + 3);
*((_OWORD *)v27 + 4) = *((_OWORD *)v28 + 4);
*((_OWORD *)v27 + 5) = *((_OWORD *)v28 + 5);
*((_OWORD *)v27 + 6) = *((_OWORD *)v28 + 6);
v27 += 16;
*((_OWORD *)v27 - 1) = *((_OWORD *)v28 + 7);
v28 += 128;
--v29;
}
while ( v29 );
*(_OWORD *)v27 = *(_OWORD *)v28;
*((_OWORD *)v27 + 1) = *((_OWORD *)v28 + 1);
*((_OWORD *)v27 + 2) = *((_OWORD *)v28 + 2);
*((_OWORD *)v27 + 3) = *((_OWORD *)v28 + 3);
v27[8] = *((_QWORD *)v28 + 8);
*((_DWORD *)v27 + 18) = *((_DWORD *)v28 + 18);
*((_BYTE *)v27 + 76) = v28[76];
*((_BYTE *)v26 + 333) = 0;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
v86 = &v89;
v90 = 8;
v91 = 15;
v89 = 0x6E6F697461746F52uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v30);
SetupTriggerPopup::createValueControlAdvanced(
a1,
270,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
-1011613696,
1135869952,
0,
0,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v31);
SetupTriggerPopup::createValueControlAdvanced(
a1,
271,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
2,
6,
0,
0,
1127481344,
0,
0,
1,
2,
0);
break;
case 3019:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 18;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Scale Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
v32 = sub_14003D460(0x120u);
*(_QWORD *)&v96 = v32;
si128.m128i_i64[0] = 279;
si128.m128i_i64[1] = 287;
v33 = v32;
v34 = "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.";
v35 = 2;
do
{
*(_OWORD *)v33 = *(_OWORD *)v34;
*((_OWORD *)v33 + 1) = *((_OWORD *)v34 + 1);
*((_OWORD *)v33 + 2) = *((_OWORD *)v34 + 2);
*((_OWORD *)v33 + 3) = *((_OWORD *)v34 + 3);
*((_OWORD *)v33 + 4) = *((_OWORD *)v34 + 4);
*((_OWORD *)v33 + 5) = *((_OWORD *)v34 + 5);
*((_OWORD *)v33 + 6) = *((_OWORD *)v34 + 6);
v33 += 16;
*((_OWORD *)v33 - 1) = *((_OWORD *)v34 + 7);
v34 += 128;
--v35;
}
while ( v35 );
*(_OWORD *)v33 = *(_OWORD *)v34;
*((_DWORD *)v33 + 4) = *((_DWORD *)v34 + 4);
*((_WORD *)v33 + 10) = *((_WORD *)v34 + 10);
*((_BYTE *)v33 + 22) = v34[22];
*((_BYTE *)v32 + 279) = 0;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 6;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "ScaleX");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v36);
SetupTriggerPopup::createValueControlAdvanced(
a1,
233,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v37);
SetupTriggerPopup::createValueControlAdvanced(
a1,
234,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 6;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "ScaleY");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v38);
SetupTriggerPopup::createValueControlAdvanced(
a1,
235,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1128792064,
0,
0,
1,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 2;
v91 = 15;
strcpy((char *)&v89, "+-");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v39);
SetupTriggerPopup::createValueControlAdvanced(
a1,
236,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1128792064,
0,
0,
1,
2,
0);
break;
case 3020:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 17;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Fade Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
v40 = sub_14003D460(0x130u);
*(_QWORD *)&v96 = v40;
si128.m128i_i64[0] = 288;
si128.m128i_i64[1] = 303;
v41 = v40;
v42 = "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.";
v43 = 2;
do
{
*v41 = *(_OWORD *)v42;
v41[1] = *((_OWORD *)v42 + 1);
v41[2] = *((_OWORD *)v42 + 2);
v41[3] = *((_OWORD *)v42 + 3);
v41[4] = *((_OWORD *)v42 + 4);
v41[5] = *((_OWORD *)v42 + 5);
v41[6] = *((_OWORD *)v42 + 6);
v41 += 8;
*(v41 - 1) = *((_OWORD *)v42 + 7);
v42 += 128;
--v43;
}
while ( v43 );
*v41 = *(_OWORD *)v42;
v41[1] = *((_OWORD *)v42 + 1);
*((_BYTE *)v40 + 288) = 0;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
v86 = &v96;
si128.m128i_i64[0] = 7;
si128.m128i_i64[1] = 15;
v96 = 0x7974696361704FuLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -75.0, -50.0);
cocos2d::CCPoint::operator+(v88, v85, v44);
SetupTriggerPopup::createValueControlAdvanced(
a1,
275,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1065353216,
0,
0,
1,
2,
0);
break;
case 3021:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 17;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Tint Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
v45 = sub_14003D460(0x1D0u);
*(_QWORD *)&v96 = v45;
si128.m128i_i64[0] = 456;
si128.m128i_i64[1] = 463;
v46 = v45;
v47 = "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. ";
v48 = 3;
do
{
*v46 = *(_OWORD *)v47;
v46[1] = *((_OWORD *)v47 + 1);
v46[2] = *((_OWORD *)v47 + 2);
v46[3] = *((_OWORD *)v47 + 3);
v46[4] = *((_OWORD *)v47 + 4);
v46[5] = *((_OWORD *)v47 + 5);
v46[6] = *((_OWORD *)v47 + 6);
v46 += 8;
*(v46 - 1) = *((_OWORD *)v47 + 7);
v47 += 128;
--v48;
}
while ( v48 );
*v46 = *(_OWORD *)v47;
v46[1] = *((_OWORD *)v47 + 1);
v46[2] = *((_OWORD *)v47 + 2);
v46[3] = *((_OWORD *)v47 + 3);
*((_QWORD *)v46 + 8) = *((_QWORD *)v47 + 8);
*((_BYTE *)v45 + 456) = 0;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
v86 = &v96;
si128.m128i_i64[0] = 14;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "Color Channel:");
HIBYTE(v96) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -100.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v49);
SetupTriggerPopup::createValueControlAdvanced(
a1,
260,
(unsigned int)&v96,
(unsigned int)v85,
1059481190,
1,
3,
6,
1,
0,
1120403456,
0,
1,
0,
2,
0);
v86 = &v89;
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Tint");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 75.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v50);
SetupTriggerPopup::createValueControlAdvanced(
a1,
265,
(unsigned int)&v89,
(unsigned int)v85,
1059481190,
0,
1,
6,
0,
0,
1065353216,
0,
1,
1,
2,
0);
v86 = &v96;
*((_QWORD *)&v96 + 1) = 121;
si128.m128i_i64[0] = 9;
si128.m128i_i64[1] = 15;
*(_QWORD *)&v96 = 0x6C6E4F0A6E69614DLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 150.0, -107.5);
cocos2d::CCPoint::operator+(v88, v85, v51);
SetupTriggerPopup::createToggleValueControl(a1, 65, (unsigned int)&v96, (unsigned int)v85, 0, 0, 0, 1065353216);
v86 = &v89;
v90 = 8;
v91 = 15;
v89 = 0x796C6E4F0A636553uLL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 150.0, -137.5);
cocos2d::CCPoint::operator+(v88, v85, v52);
SetupTriggerPopup::createToggleValueControl(a1, 66, (unsigned int)&v89, (unsigned int)v85, 0, 0, 0, 1065353216);
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 3;
si128.m128i_i64[1] = 15;
LODWORD(v96) = 5657416;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 150.0, -167.5);
cocos2d::CCPoint::operator+(v88, v85, v53);
SetupTriggerPopup::createToggleValueControl(a1, 278, (unsigned int)&v96, (unsigned int)v85, 0, 0, 0, 1065353216);
v54 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png");
v55 = CCMenuItemSpriteExtra::create(v54, 0, a1, (__int64)SetupEnterEffectPopup::onHSV);
*(_QWORD *)(a1 + 1040) = v55;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
v55);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 0.0, -75.0);
cocos2d::CCPoint::operator+(v88, v85, v56);
v57 = *(__int64 **)(a1 + 1040);
v58 = *v57;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v87, v85);
(*(void (__fastcall **)(__int64 *, __int64))(v58 + 184))(v57, v59);
v60 = *(struct cocos2d::CCObject **)(a1 + 1040);
GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer(a1, 2);
cocos2d::CCArray::addObject(GroupContainer, v60);
v62 = *(struct cocos2d::CCObject **)(a1 + 1040);
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(a1, 0);
cocos2d::CCArray::addObject(PageContainer, v62);
SetupEnterEffectPopup::updateHSVButton(a1);
break;
case 3023:
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x20u);
si128.m128i_i64[0] = 17;
si128.m128i_i64[1] = 31;
strcpy((char *)v96, "Stop Enter Effect");
SetupTriggerPopup::addTitle(a1, &v96);
v86 = &v96;
v96 = 0;
si128 = 0u;
*(_QWORD *)&v96 = sub_14003D460(0x60u);
si128.m128i_i64[0] = 83;
si128.m128i_i64[1] = 95;
strcpy((char *)v96, "Stops an enter effect using its Enter Channel or Effect ID.");
v89 = 0;
v90 = 4;
v91 = 15;
strcpy((char *)&v89, "Help");
SetupTriggerPopup::addHelpButton(a1, &v89, &v96);
break;
default:
break;
}
if ( a4 != 3023 )
{
v86 = &v96;
v96 = 0;
si128.m128i_i64[0] = 6;
si128.m128i_i64[1] = 15;
strcpy((char *)&v96, "Easing");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, -95.0, -154.0);
cocos2d::CCPoint::operator+(v88, v85, v64);
SetupTriggerPopup::createCustomEasingControls(a1, (unsigned int)&v96, (unsigned int)v85, v65, 242, 243, v84, 0);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_1408365F0);
strcpy((char *)&v96, "Enter Channel:");
HIBYTE(v96) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, -100.0, -125.0);
cocos2d::CCPoint::operator+(v88, v85, v66);
v67 = a1 + 544;
if ( !a1 )
v67 = 0;
IDNameInput::create(a1, v67, 8, 344, (__int64)&v96, (const struct cocos2d::CCPoint *)v85, 1060320051, 6, 0, 0, 0);
sub_14003D310((__int64)&v96);
v86 = &v96;
*((_QWORD *)&v96 + 1) = 58;
si128.m128i_i64[0] = 9;
si128.m128i_i64[1] = 15;
*(_QWORD *)&v96 = 0x4449746365666645LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 60.0, -125.0);
cocos2d::CCPoint::operator+(v88, v85, v68);
SetupTriggerPopup::createValueControlAdvanced(
a1,
225,
(unsigned int)&v96,
(unsigned int)v85,
1060320051,
1,
3,
6,
1,
0,
1120403456,
1,
0,
0,
2,
0);
v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
v70 = (int)v69;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v69 + 160LL))(v69);
v71 = CCMenuItemSpriteExtra::create(v70, 0, a1, (__int64)SetupEnterEffectPopup::onNextFreeEnterEffectID);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 105.0, -102.0);
cocos2d::CCPoint::operator+(v88, v85, v72);
v73 = *(_QWORD *)v71;
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v87, v85);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v73 + 184))(v71, v74);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v94,
(float)(v92 * 0.5) + 60.0,
(float)((float)(v93 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 20.0);
v86 = &v96;
LODWORD(v73) = *(_DWORD *)(a1 + 1032);
*((_QWORD *)&v96 + 1) = 31084;
si128.m128i_i64[0] = 10;
si128.m128i_i64[1] = 15;
*(_QWORD *)&v96 = 0x6E4F0A7265746E45LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 0.0, 30.0);
cocos2d::CCPoint::operator+(v94, v85, v75);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v95, 8.0, 0.0);
*(_QWORD *)(a1 + 1016) = GameToolbox::createToggleButton(
(const char *)&v96,
(__int64)SetupEnterEffectPopup::onEnterType,
(_DWORD)v73 == 1,
*(_QWORD *)(a1 + 552),
(__int64)v85,
a1,
*(_QWORD *)(a1 + 584),
0.69999999,
0.34999999,
110.0,
v76,
(const char *)&qword_140704F78,
0,
0,
nullptr);
v95 = &v96;
v77 = *(_DWORD *)(a1 + 1032);
*((_QWORD *)&v96 + 1) = 121;
si128.m128i_i64[0] = 9;
si128.m128i_i64[1] = 15;
*(_QWORD *)&v96 = 0x6C6E4F0A74697845LL;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 0.0, 0.0);
cocos2d::CCPoint::operator+(v94, v85, v78);
v79 = *(_QWORD *)(a1 + 584);
v80 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v87, 8.0, 0.0);
*(_QWORD *)(a1 + 1024) = GameToolbox::createToggleButton(
(const char *)&v96,
(__int64)SetupEnterEffectPopup::onEnterType,
v77 == 2,
v80,
(__int64)v85,
a1,
v79,
0.69999999,
0.34999999,
110.0,
v81,
(const char *)&qword_140704F78,
0,
0,
nullptr);
*(_BYTE *)(*(_QWORD *)(a1 + 1016) + 393LL) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1016) + 64LL))(*(_QWORD *)(a1 + 1016), 1);
*(_BYTE *)(*(_QWORD *)(a1 + 1024) + 393LL) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1024) + 64LL))(*(_QWORD *)(a1 + 1024), 2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);
if ( a4 == 3017 )
{
if ( cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 832), 241) )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 241);
LABEL_37:
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 1, 0);
}
else
{
if ( a4 != 3021 )
goto LABEL_37;
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 278) == 0.0 )
LOBYTE(v83) = 1;
else
v83 = 0;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1, v83);
if ( (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 278) != 0.0 )
{
LOBYTE(v82) = 1;
goto LABEL_36;
}
}
v82 = 0;
LABEL_36:
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 2, v82);
goto LABEL_37;
}
return result;
}