//
// SetupEnterEffectPopup::init from 0x1003f0a70 to 0x1003f2c5a (8682 bytes)
//
// 1 xrefs:
// > SetupEnterEffectPopup::create @ 0x1003f0a2d
//
// 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 __fastcall SetupEnterEffectPopup::init(
SetupEnterEffectPopup *a1,
EnterEffectObject *a2,
cocos2d::CCArray *a3,
int a4)
{
__int64 v4; // rbx
bool result; // al
void **v6; // rax
cocos2d::CCSprite *v7; // rax
CCMenuItemSpriteExtra *v8; // rax
CCMenuItemSpriteExtra *m_hsvButton; // r12
cocos2d::CCMenu *m_buttonMenu; // rbx
__int64 v11; // r12
cocos2d::CCSpriteFrameCache *v12; // rax
const char *v13; // rsi
cocos2d::CCSpriteFrame *v14; // rax
cocos2d::CCSprite *v15; // r14
CCMenuItemSpriteExtra *v17; // r13
cocos2d::CCMenu *v18; // r14
cocos2d::CCSprite *v19; // rbx
CCMenuItemSpriteExtra *v20; // r15
cocos2d::CCMenu *v21; // rbx
cocos2d::CCMenu *v23; // r15
cocos2d::CCLayer *m_mainLayer; // r14
int m_enterType; // r14d
cocos2d::CCMenu *v26; // r15
cocos2d::CCLayer *v27; // rbx
__m128 v28; // xmm0
CCMenuItemToggler *m_enterOnlyToggler; // rdi
CCMenuItemToggler *m_exitOnlyToggler; // rdi
cocos2d::CCObject *v31; // rax
__m128 v32; // rt1
__m128 v33; // xmm0
__m128 v34; // rt1
__int64 v35; // rdx
SetupEnterEffectPopup_vtbl *v36; // rax
SetupEnterEffectPopup *v37; // rdi
float v38; // [rsp+38h] [rbp-508h] BYREF
__int64 v39; // [rsp+40h] [rbp-500h]
__int128 v40; // [rsp+48h] [rbp-4F8h] BYREF
void *v41; // [rsp+58h] [rbp-4E8h]
char v42; // [rsp+60h] [rbp-4E0h] BYREF
char v43[15]; // [rsp+61h] [rbp-4DFh] BYREF
void *__p; // [rsp+70h] [rbp-4D0h]
char v45; // [rsp+78h] [rbp-4C8h] BYREF
char v46[15]; // [rsp+79h] [rbp-4C7h] BYREF
void *v47; // [rsp+88h] [rbp-4B8h]
char v48; // [rsp+90h] [rbp-4B0h] BYREF
char v49[15]; // [rsp+91h] [rbp-4AFh] BYREF
void *v50; // [rsp+A0h] [rbp-4A0h]
void *v51[3]; // [rsp+A8h] [rbp-498h] BYREF
char v52; // [rsp+C0h] [rbp-480h] BYREF
char v53[15]; // [rsp+C1h] [rbp-47Fh] BYREF
void *v54; // [rsp+D0h] [rbp-470h]
__int128 v55; // [rsp+D8h] [rbp-468h] BYREF
void *v56; // [rsp+E8h] [rbp-458h]
char v57; // [rsp+F0h] [rbp-450h] BYREF
_BYTE v58[23]; // [rsp+F1h] [rbp-44Fh] BYREF
char v59; // [rsp+108h] [rbp-438h] BYREF
char v60[15]; // [rsp+109h] [rbp-437h] BYREF
void *v61; // [rsp+118h] [rbp-428h]
char v62; // [rsp+120h] [rbp-420h] BYREF
_BYTE v63[23]; // [rsp+121h] [rbp-41Fh] BYREF
char v64; // [rsp+138h] [rbp-408h] BYREF
char v65[15]; // [rsp+139h] [rbp-407h] BYREF
void *v66; // [rsp+148h] [rbp-3F8h]
char v67[16]; // [rsp+150h] [rbp-3F0h] BYREF
void *v68; // [rsp+160h] [rbp-3E0h]
char v69; // [rsp+168h] [rbp-3D8h] BYREF
char v70[15]; // [rsp+169h] [rbp-3D7h] BYREF
void *v71; // [rsp+178h] [rbp-3C8h]
char v72[16]; // [rsp+180h] [rbp-3C0h] BYREF
void *v73; // [rsp+190h] [rbp-3B0h]
char v74; // [rsp+198h] [rbp-3A8h] BYREF
char v75[15]; // [rsp+199h] [rbp-3A7h] BYREF
void *v76; // [rsp+1A8h] [rbp-398h]
char v77; // [rsp+1B0h] [rbp-390h] BYREF
char v78[15]; // [rsp+1B1h] [rbp-38Fh] BYREF
void *v79; // [rsp+1C0h] [rbp-380h]
__int128 v80; // [rsp+1C8h] [rbp-378h] BYREF
void *v81; // [rsp+1D8h] [rbp-368h]
char v82; // [rsp+1E0h] [rbp-360h] BYREF
_BYTE v83[23]; // [rsp+1E1h] [rbp-35Fh] BYREF
char v84; // [rsp+1F8h] [rbp-348h] BYREF
char v85[15]; // [rsp+1F9h] [rbp-347h] BYREF
void *v86; // [rsp+208h] [rbp-338h]
char v87; // [rsp+210h] [rbp-330h] BYREF
char v88[15]; // [rsp+211h] [rbp-32Fh] BYREF
void *v89; // [rsp+220h] [rbp-320h]
__int128 v90; // [rsp+228h] [rbp-318h] BYREF
void *v91; // [rsp+238h] [rbp-308h]
char v92; // [rsp+240h] [rbp-300h] BYREF
char v93[15]; // [rsp+241h] [rbp-2FFh] BYREF
void *v94; // [rsp+250h] [rbp-2F0h]
char v95; // [rsp+258h] [rbp-2E8h] BYREF
char v96[15]; // [rsp+259h] [rbp-2E7h] BYREF
void *v97; // [rsp+268h] [rbp-2D8h]
void *v98[3]; // [rsp+270h] [rbp-2D0h] BYREF
char v99; // [rsp+288h] [rbp-2B8h] BYREF
char v100[15]; // [rsp+289h] [rbp-2B7h] BYREF
void *v101; // [rsp+298h] [rbp-2A8h]
__int128 v102; // [rsp+2A0h] [rbp-2A0h] BYREF
void *v103; // [rsp+2B0h] [rbp-290h]
void *v104[3]; // [rsp+2B8h] [rbp-288h] BYREF
char v105; // [rsp+2D0h] [rbp-270h] BYREF
char v106[15]; // [rsp+2D1h] [rbp-26Fh] BYREF
void *v107; // [rsp+2E0h] [rbp-260h]
__int128 v108; // [rsp+2E8h] [rbp-258h] BYREF
void *v109; // [rsp+2F8h] [rbp-248h]
char v110; // [rsp+300h] [rbp-240h] BYREF
char v111[15]; // [rsp+301h] [rbp-23Fh] BYREF
void *v112; // [rsp+310h] [rbp-230h]
__int128 v113; // [rsp+318h] [rbp-228h] BYREF
void *v114; // [rsp+328h] [rbp-218h]
__int128 v115; // [rsp+330h] [rbp-210h] BYREF
void *v116; // [rsp+340h] [rbp-200h]
void *v117[3]; // [rsp+348h] [rbp-1F8h] BYREF
char v118; // [rsp+360h] [rbp-1E0h] BYREF
char v119[15]; // [rsp+361h] [rbp-1DFh] BYREF
char v120; // [rsp+370h] [rbp-1D0h] BYREF
__int128 v121; // [rsp+378h] [rbp-1C8h] BYREF
void *v122; // [rsp+388h] [rbp-1B8h]
char v123; // [rsp+390h] [rbp-1B0h] BYREF
_BYTE v124[23]; // [rsp+391h] [rbp-1AFh] BYREF
char v125; // [rsp+3A8h] [rbp-198h] BYREF
char v126[15]; // [rsp+3A9h] [rbp-197h] BYREF
void *v127; // [rsp+3B8h] [rbp-188h] BYREF
char v128; // [rsp+3C0h] [rbp-180h] BYREF
char v129[15]; // [rsp+3C1h] [rbp-17Fh] BYREF
void *v130; // [rsp+3D0h] [rbp-170h]
char v131; // [rsp+3D8h] [rbp-168h] BYREF
char v132[15]; // [rsp+3D9h] [rbp-167h] BYREF
void *v133; // [rsp+3E8h] [rbp-158h]
__int128 v134; // [rsp+3F0h] [rbp-150h] BYREF
void *v135; // [rsp+400h] [rbp-140h]
void *v136[3]; // [rsp+408h] [rbp-138h] BYREF
void *v137[3]; // [rsp+420h] [rbp-120h] BYREF
char v138; // [rsp+438h] [rbp-108h] BYREF
char v139[15]; // [rsp+439h] [rbp-107h] BYREF
void *v140; // [rsp+448h] [rbp-F8h]
char v141; // [rsp+450h] [rbp-F0h] BYREF
char v142[15]; // [rsp+451h] [rbp-EFh] BYREF
void *v143; // [rsp+460h] [rbp-E0h]
char v144; // [rsp+468h] [rbp-D8h] BYREF
char v145[15]; // [rsp+469h] [rbp-D7h] BYREF
void *v146; // [rsp+478h] [rbp-C8h]
char v147; // [rsp+480h] [rbp-C0h] BYREF
_BYTE v148[23]; // [rsp+481h] [rbp-BFh] BYREF
cocos2d::CCPoint v149[2]; // [rsp+498h] [rbp-A8h] BYREF
char v150; // [rsp+4A8h] [rbp-98h] BYREF
char v151; // [rsp+4B0h] [rbp-90h] BYREF
_BYTE v152[23]; // [rsp+4B1h] [rbp-8Fh] BYREF
char v153; // [rsp+4C8h] [rbp-78h] BYREF
char v154[15]; // [rsp+4C9h] [rbp-77h] BYREF
void *v155; // [rsp+4D8h] [rbp-68h] BYREF
void **v156; // [rsp+4E0h] [rbp-60h]
float v157; // [rsp+4ECh] [rbp-54h] BYREF
float v158; // [rsp+4F0h] [rbp-50h]
unsigned __int64 v159; // [rsp+4F4h] [rbp-4Ch] BYREF
bool v160; // [rsp+4FFh] [rbp-41h]
unsigned __int64 v161; // [rsp+500h] [rbp-40h] BYREF
unsigned __int64 v162; // [rsp+508h] [rbp-38h] BYREF
unsigned __int64 v163[6]; // [rsp+510h] [rbp-30h] BYREF
double v164; // 0:xmm0_8.8
double v165; // 0:xmm0_8.8
double v166; // 0:xmm0_8.8
v4 = (unsigned int)a4;
result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1);
if ( result )
{
v160 = result;
a1->m_objectID = v4;
((void (__fastcall *)(SetupEnterEffectPopup *))a1->determineStartValues)(a1);
v42 = 4;
strcpy(v43, "OK");
SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v42);
if ( (v42 & 1) != 0 )
operator delete(__p);
SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v157);
sub_10028CBE0((float *)&v161, v157 * 0.5, (float)(v158 * 0.5) + 95.0);
v39 = v4;
if ( (_DWORD)v4 == 3023 )
{
strcpy((char *)v117, "\"Stop Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v117);
if ( ((__int64)v117[0] & 1) != 0 )
operator delete(v117[2]);
v118 = 8;
strcpy(v119, "Help");
v122 = operator new(0x58u);
*(_QWORD *)&v121 = 89;
*((_QWORD *)&v121 + 1) = 83;
strcpy((char *)v122, "Stops an enter effect using its Enter Channel or Effect ID.");
SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v118, &v121, (__m128)0x3F800000u);
if ( (v121 & 1) != 0 )
operator delete(v122);
if ( (v118 & 1) != 0 )
{
v6 = (void **)&v120;
LABEL_102:
operator delete(*v6);
}
}
else
{
v128 = 12;
strcpy(v129, "Length");
sub_10028CBE0((float *)&v162, -75.0, 0.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
222,
(__int64)&v128,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v128 & 1) != 0 )
operator delete(v130);
v45 = 4;
strcpy(v46, "+-");
sub_10028CBE0((float *)&v162, 75.0, 0.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
223,
(__int64)&v45,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v45 & 1) != 0 )
operator delete(v47);
v131 = 12;
strcpy(v132, "Offset");
sub_10028CBE0((float *)&v162, -75.0, -25.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
220,
(__int64)&v131,
(float *)v163,
0,
Int,
0.64999998,
-100.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v131 & 1) != 0 )
operator delete(v133);
v48 = 4;
strcpy(v49, "+-");
sub_10028CBE0((float *)&v162, 75.0, -25.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
221,
(__int64)&v48,
(float *)v163,
0,
Int,
0.64999998,
-100.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v48 & 1) != 0 )
operator delete(v50);
switch ( (int)v4 )
{
case 3017:
strcpy((char *)v51, "\"Move Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v51);
if ( ((__int64)v51[0] & 1) != 0 )
operator delete(v51[2]);
v52 = 8;
strcpy(v53, "Help");
v56 = operator new(0x178u);
*(_QWORD *)&v55 = 377;
*((_QWORD *)&v55 + 1) = 370;
strcpy(
(char *)v56,
"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, (__int64)&v52, &v55, (__m128)0x3F800000u);
if ( (v55 & 1) != 0 )
operator delete(v56);
if ( (v52 & 1) != 0 )
operator delete(v54);
v57 = 16;
strcpy(v58, "MoveDist");
sub_10028CBE0((float *)&v162, -75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
218,
(__int64)&v57,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
1,
1,
2,
0);
if ( (v57 & 1) != 0 )
operator delete(*(void **)&v58[15]);
v59 = 4;
strcpy(v60, "+-");
sub_10028CBE0((float *)&v162, 75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
219,
(__int64)&v59,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
1,
1,
2,
0);
if ( (v59 & 1) != 0 )
operator delete(v61);
v62 = 18;
strcpy(v63, "MoveAngle");
sub_10028CBE0((float *)&v162, -75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
231,
(__int64)&v62,
(float *)v163,
0,
Int,
0.64999998,
0.0,
200.0,
6,
0,
0,
1,
1,
2,
0);
if ( (v62 & 1) != 0 )
operator delete(*(void **)&v63[15]);
v64 = 4;
strcpy(v65, "+-");
sub_10028CBE0((float *)&v162, 75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
232,
(__int64)&v64,
(float *)v163,
0,
Int,
0.64999998,
0.0,
200.0,
6,
0,
0,
1,
1,
2,
0);
if ( (v64 & 1) != 0 )
operator delete(v66);
LOBYTE(v134) = 14;
strcpy((char *)&v134 + 1, "XY\nMode");
sub_10028CBE0(
(float *)v163,
(float)((float)(a1->m_width * 0.5) + (float)(v157 * 0.5)) + -58.0,
(float)((float)(a1->m_height * 0.5) + (float)(v158 * 0.5)) + -20.0);
SetupTriggerPopup::createToggleValueControl((int)a1, 241, &v134, 1.0, (__int64)v163, 0, 0, 0);
if ( (v134 & 1) != 0 )
operator delete(v135);
strcpy(v67, "\nMoveX");
sub_10028CBE0((float *)&v162, -75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
237,
(__int64)v67,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
2,
1,
2,
0);
if ( (v67[0] & 1) != 0 )
operator delete(v68);
v69 = 4;
strcpy(v70, "+-");
sub_10028CBE0((float *)&v162, 75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
238,
(__int64)&v69,
(float *)v163,
0,
Int,
0.64999998,
0.0,
100.0,
6,
0,
0,
2,
1,
2,
0);
if ( (v69 & 1) != 0 )
operator delete(v71);
strcpy(v72, "\nMoveY");
sub_10028CBE0((float *)&v162, -75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
239,
(__int64)v72,
(float *)v163,
0,
Int,
0.64999998,
0.0,
200.0,
6,
0,
0,
2,
1,
2,
0);
if ( (v72[0] & 1) != 0 )
operator delete(v73);
v74 = 4;
strcpy(v75, "+-");
sub_10028CBE0((float *)&v162, 75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
240,
(__int64)&v74,
(float *)v163,
0,
Int,
0.64999998,
0.0,
200.0,
6,
0,
0,
2,
1,
2,
0);
if ( (v74 & 1) != 0 )
operator delete(v76);
break;
case 3018:
strcpy((char *)v136, "&Rotate Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v136);
if ( ((__int64)v136[0] & 1) != 0 )
operator delete(v136[2]);
v77 = 8;
strcpy(v78, "Help");
v81 = operator new(0x150u);
*(_QWORD *)&v80 = 337;
*((_QWORD *)&v80 + 1) = 333;
strcpy(
(char *)v81,
"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, (__int64)&v77, &v80, (__m128)0x3F800000u);
if ( (v80 & 1) != 0 )
operator delete(v81);
if ( (v77 & 1) != 0 )
operator delete(v79);
v82 = 16;
strcpy(v83, "Rotation");
sub_10028CBE0((float *)&v162, -75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
270,
(__int64)&v82,
(float *)v163,
0,
Int,
0.64999998,
-360.0,
360.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v82 & 1) != 0 )
operator delete(*(void **)&v83[15]);
v84 = 4;
strcpy(v85, "+-");
sub_10028CBE0((float *)&v162, 75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
271,
(__int64)&v84,
(float *)v163,
0,
Int,
0.64999998,
0.0,
180.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v84 & 1) != 0 )
operator delete(v86);
break;
case 3019:
strcpy((char *)v137, "$Scale Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v137);
if ( ((__int64)v137[0] & 1) != 0 )
operator delete(v137[2]);
v87 = 8;
strcpy(v88, "Help");
v91 = operator new(0x118u);
*(_QWORD *)&v90 = 281;
*((_QWORD *)&v90 + 1) = 279;
strcpy(
(char *)v91,
"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, (__int64)&v87, &v90, (__m128)0x3F800000u);
if ( (v90 & 1) != 0 )
operator delete(v91);
if ( (v87 & 1) != 0 )
operator delete(v89);
v138 = 12;
strcpy(v139, "ScaleX");
sub_10028CBE0((float *)&v162, -75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
233,
(__int64)&v138,
(float *)v163,
0,
Float,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v138 & 1) != 0 )
operator delete(v140);
v92 = 4;
strcpy(v93, "+-");
sub_10028CBE0((float *)&v162, 75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
234,
(__int64)&v92,
(float *)v163,
0,
Float,
0.64999998,
0.0,
100.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v92 & 1) != 0 )
operator delete(v94);
v141 = 12;
strcpy(v142, "ScaleY");
sub_10028CBE0((float *)&v162, -75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
235,
(__int64)&v141,
(float *)v163,
0,
Float,
0.64999998,
0.0,
200.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v141 & 1) != 0 )
operator delete(v143);
v95 = 4;
strcpy(v96, "+-");
sub_10028CBE0((float *)&v162, 75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
236,
(__int64)&v95,
(float *)v163,
0,
Float,
0.64999998,
0.0,
200.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v95 & 1) != 0 )
operator delete(v97);
break;
case 3020:
strcpy((char *)v98, "\"Fade Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v98);
if ( ((__int64)v98[0] & 1) != 0 )
operator delete(v98[2]);
v99 = 8;
strcpy(v100, "Help");
v103 = operator new(0x128u);
*(_QWORD *)&v102 = 297;
*((_QWORD *)&v102 + 1) = 288;
strcpy(
(char *)v103,
"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, (__int64)&v99, &v102, (__m128)0x3F800000u);
if ( (v102 & 1) != 0 )
operator delete(v103);
if ( (v99 & 1) != 0 )
operator delete(v101);
v144 = 14;
strcpy(v145, "Opacity");
sub_10028CBE0((float *)&v162, -75.0, -50.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
275,
(__int64)&v144,
(float *)v163,
0,
Float,
0.64999998,
0.0,
1.0,
6,
0,
0,
0,
1,
2,
0);
if ( (v144 & 1) != 0 )
operator delete(v146);
break;
case 3021:
strcpy((char *)v104, "\"Tint Enter Effect");
SetupTriggerPopup::addTitle((__int64)a1, (__int64)v104);
if ( ((__int64)v104[0] & 1) != 0 )
operator delete(v104[2]);
v105 = 8;
strcpy(v106, "Help");
v109 = operator new(0x1D0u);
*(_QWORD *)&v108 = 465;
*((_QWORD *)&v108 + 1) = 456;
strcpy(
(char *)v109,
"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, (__int64)&v105, &v108, (__m128)0x3F800000u);
if ( (v108 & 1) != 0 )
operator delete(v109);
if ( (v105 & 1) != 0 )
operator delete(v107);
v147 = 28;
strcpy(v148, "Color Channel:");
sub_10028CBE0((float *)&v162, -100.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
260,
(__int64)&v147,
(float *)v163,
1,
Uint,
0.64999998,
0.0,
100.0,
6,
1,
0,
1,
0,
2,
0);
if ( (v147 & 1) != 0 )
operator delete(*(void **)&v148[15]);
v110 = 8;
strcpy(v111, "Tint");
sub_10028CBE0((float *)&v162, 75.0, -75.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
265,
(__int64)&v110,
(float *)v163,
0,
Float,
0.64999998,
0.0,
1.0,
6,
0,
0,
1,
1,
2,
0);
if ( (v110 & 1) != 0 )
operator delete(v112);
LOBYTE(v113) = 18;
strcpy((char *)&v113 + 1, "Main\nOnly");
sub_10028CBE0((float *)&v162, 150.0, -107.5);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createToggleValueControl((int)a1, 65, &v113, 1.0, (__int64)v163, 0, 0, 0);
if ( (v113 & 1) != 0 )
operator delete(v114);
LOBYTE(v115) = 16;
strcpy((char *)&v115 + 1, "Sec\nOnly");
sub_10028CBE0((float *)&v162, 150.0, -137.5);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createToggleValueControl((int)a1, 66, &v115, 1.0, (__int64)v163, 0, 0, 0);
if ( (v115 & 1) != 0 )
operator delete(v116);
LOBYTE(v40) = 6;
*(_DWORD *)((char *)&v40 + 1) = 5657416;
sub_10028CBE0((float *)&v162, 150.0, -167.5);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createToggleValueControl((int)a1, 278, &v40, 1.0, (__int64)v163, 0, 0, 0);
if ( (v40 & 1) != 0 )
operator delete(v41);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png");
v8 = CCMenuItemSpriteExtra::create(
v7,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)SetupEnterEffectPopup::onHSV);
a1->m_hsvButton = v8;
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v8);
m_hsvButton = a1->m_hsvButton;
m_buttonMenu = a1->m_buttonMenu;
sub_10028CBE0((float *)&v159, 0.0, -75.0);
sub_10028CCE0((double *)&v162, &v161, &v159);
*(cocos2d::CCPoint *)&v164 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)v163,
(const cocos2d::CCPoint *)m_buttonMenu);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))m_hsvButton->setPosition)(
m_hsvButton,
v163,
v164);
SetupTriggerPopup::addObjectToGroup(a1, a1->m_hsvButton, 2);
SetupTriggerPopup::addObjectToPage(a1, a1->m_hsvButton, 0);
v11 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_hsvButton->getNormalImage)(a1->m_hsvButton);
v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v13 = "GJ_hsv2Btn_001.png";
if ( a1->m_hsvValue.h == *(float *)&xmmword_1009A14E0
&& a1->m_hsvValue.s == *((float *)&xmmword_1009A14E0 + 1)
&& a1->m_hsvValue.v == *((float *)&xmmword_1009A14E0 + 2)
&& a1->m_hsvValue.absoluteSaturation == BYTE12(xmmword_1009A14E0) )
{
v13 = "GJ_hsv2Btn_001.png";
if ( a1->m_hsvValue.absoluteBrightness == BYTE13(xmmword_1009A14E0) )
v13 = "GJ_hsvBtn_001.png";
}
v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v13);
(*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v11 + 1144LL))(v11, v14);
break;
default:
break;
}
LOBYTE(v149[0].x) = 12;
strcpy((char *)v149 + 1, "Easing");
sub_10028CBE0((float *)&v162, -95.0, -150.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createCustomEasingControls(
a1,
v149,
(cocos2d::CCLabelBMFont *)v163,
0xF2u,
0xF3u,
0,
0.69999999,
0);
if ( (LOBYTE(v149[0].x) & 1) != 0 )
{
v6 = (void **)&v150;
goto LABEL_102;
}
}
v151 = 28;
strcpy(v152, "Enter Channel:");
sub_10028CBE0((float *)&v162, -100.0, -125.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
344,
(__int64)&v151,
(float *)v163,
1,
Uint,
0.69999999,
0.0,
0.0,
6,
1,
0,
0,
0,
2,
0);
if ( (v151 & 1) != 0 )
operator delete(*(void **)&v152[15]);
v123 = 18;
strcpy(v124, "EffectID:");
sub_10028CBE0((float *)&v162, 60.0, -125.0);
sub_10028CCE0((double *)v163, &v161, &v162);
SetupTriggerPopup::createValueControlAdvanced(
(__int64)a1,
225,
(__int64)&v123,
(float *)v163,
1,
Uint,
0.69999999,
0.0,
100.0,
6,
1,
1u,
0,
0,
2,
0);
if ( (v123 & 1) != 0 )
operator delete(*(void **)&v124[15]);
v156 = &v155;
v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v15->setScale)(v15, 0.80000001);
v17 = CCMenuItemSpriteExtra::create(
v15,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)SetupEnterEffectPopup::onNextFreeEnterChannel);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v17);
v18 = a1->m_buttonMenu;
sub_10028CBE0((float *)&v159, -40.0, -102.0);
sub_10028CCE0((double *)&v162, &v161, &v159);
*(cocos2d::CCPoint *)&v165 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)v163,
(const cocos2d::CCPoint *)v18);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v17->setPosition)(v17, v163, v165);
v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v19->setScale)(v19, 0.80000001);
v20 = CCMenuItemSpriteExtra::create(
v19,
nullptr,
a1,
(cocos2d::SEL_MenuHandler)(unsigned __int64)SetupEnterEffectPopup::onNextFreeEnterEffectID);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v20);
v21 = a1->m_buttonMenu;
sub_10028CBE0((float *)&v159, 105.0, -102.0);
sub_10028CCE0((double *)&v162, &v161, &v159);
*(cocos2d::CCPoint *)&v166 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)v163,
(const cocos2d::CCPoint *)v21);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v20->setPosition)(v20, v163, v166);
sub_10028CBE0(
(float *)v163,
(float)(v157 * 0.5) + 60.0,
(float)((float)(v158 * 0.5) - (float)(0.5 * a1->m_height)) + 20.0);
v153 = 20;
strcpy(v154, "Enter\nOnly");
LODWORD(v21) = a1->m_enterType;
v23 = a1->m_buttonMenu;
sub_10028CBE0((float *)&v159, 0.0, 30.0);
sub_10028CCE0((double *)&v162, v163, &v159);
m_mainLayer = a1->m_mainLayer;
sub_10028CBE0(&v38, 8.0, 0.0);
a1->m_enterOnlyToggler = (CCMenuItemToggler *)GameToolbox::createToggleButton(
(unsigned int)&v153,
(unsigned int)SetupEnterEffectPopup::onEnterType,
0,
(_DWORD)v21 == 1,
(_DWORD)v23,
(unsigned int)&v162,
(__int64)a1,
(__int64)m_mainLayer,
(__int64)&v38,
(__int64)"bigFont.fnt",
0,
0,
0);
if ( (v153 & 1) != 0 )
operator delete(v155);
v156 = &v127;
v125 = 18;
strcpy(v126, "Exit\nOnly");
m_enterType = a1->m_enterType;
v26 = a1->m_buttonMenu;
sub_10028CBE0((float *)&v159, 0.0, 0.0);
sub_10028CCE0((double *)&v162, v163, &v159);
v27 = a1->m_mainLayer;
sub_10028CBE0(&v38, 8.0, 0.0);
v28 = (__m128)0x3F333333u;
a1->m_exitOnlyToggler = (CCMenuItemToggler *)GameToolbox::createToggleButton(
(unsigned int)&v125,
(unsigned int)SetupEnterEffectPopup::onEnterType,
0,
m_enterType == 2,
(_DWORD)v26,
(unsigned int)&v162,
(__int64)a1,
(__int64)v27,
(__int64)&v38,
(__int64)"bigFont.fnt",
0,
0,
0);
if ( (v125 & 1) != 0 )
operator delete(v127);
m_enterOnlyToggler = a1->m_enterOnlyToggler;
m_enterOnlyToggler->m_notClickable = 1;
((void (__fastcall *)(CCMenuItemToggler *, __int64, double, double, double))m_enterOnlyToggler->setTag)(
m_enterOnlyToggler,
1,
COERCE_DOUBLE(1060320051),
COERCE_DOUBLE(1051931443),
COERCE_DOUBLE(1121714176));
m_exitOnlyToggler = a1->m_exitOnlyToggler;
m_exitOnlyToggler->m_notClickable = 1;
((void (__fastcall *)(CCMenuItemToggler *, __int64))m_exitOnlyToggler->setTag)(m_exitOnlyToggler, 2);
((void (__fastcall *)(SetupEnterEffectPopup *))a1->updateDefaultTriggerValues)(a1);
if ( (_DWORD)v39 == 3021 )
{
*(double *)v28.i64 = ((double (__fastcall *)(SetupEnterEffectPopup *, __int64))a1->getValue)(a1, 278);
v33 = _mm_cmpeq_ss(v28, (__m128)0LL);
((void (__fastcall *)(SetupEnterEffectPopup *, __int64, _QWORD))a1->toggleGroup)(
a1,
1,
_mm_cvtsi128_si32((__m128i)v33) & 1);
*(double *)v33.i64 = ((double (__fastcall *)(SetupEnterEffectPopup *, __int64))a1->getValue)(a1, 278);
v34.i32[0] = 0;
v35 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v33, v34)) & 1;
v36 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v37 = a1;
}
else
{
if ( (_DWORD)v39 != 3017 )
{
LABEL_118:
a1->m_disableTextDelegate = 0;
return v160;
}
v31 = cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241);
if ( v31 )
{
v32.i32[0] = (__int32)v31[1].__vftable;
((void (__fastcall *)(SetupEnterEffectPopup *, __int64, double))a1->valueDidChange)(
a1,
241,
COERCE_DOUBLE(_mm_cmpneq_ss((__m128)0LL, v32).u64[0] & 0x3F800000));
goto LABEL_118;
}
((void (__fastcall *)(SetupEnterEffectPopup *, __int64, _QWORD))a1->toggleGroup)(a1, 1, 0);
v36 = a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v37 = a1;
v35 = 0;
}
((void (__fastcall *)(SetupEnterEffectPopup *, __int64, __int64))v36->toggleGroup)(v37, 2, v35);
goto LABEL_118;
}
return result;
}