// // SetupEnterEffectPopup::init from 0x14041e240 to 0x14042024c (8204 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x14011dcdb // > @ 0x1406d9494 // // 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 // // Hidden C++ exception states: #wind=3 bool SetupEnterEffectPopup::init(SetupEnterEffectPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3, int a4) { bool result; // al __int64 v7; // rcx cocos2d::CCDirector *v8; // rax __int64 v9; // kr00_8 _QWORD *v10; // r8 _QWORD *v11; // rcx const char *v12; // rax __int64 v13; // rdx int v14; // eax __int64 v15; // rax __int64 v16; // rbx __int64 v17; // rax double v18; // xmm0_8 int v19; // eax _QWORD *v20; // r9 _QWORD *v21; // rcx const char *v22; // rdx __int64 v23; // r8 __int64 v24; // rbx __int64 v25; // rax double v26; // xmm0_8 int v27; // eax __int64 v28; // rax __int64 v29; // rbx __int64 v30; // rax double v31; // xmm0_8 int v32; // eax double ValueControlAdvanced; // xmm0_8 struct cocos2d::CCSprite *v34; // rax CCMenuItemSpriteExtra *v35; // rax float v36; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v37; // rbx struct cocos2d::CCPoint v38; // rax CCMenuItemSpriteExtra *m_hsvButton; // rbx cocos2d::CCArray *GroupContainer; // rax CCMenuItemSpriteExtra *v41; // rbx cocos2d::CCArray *PageContainer; // rax int v43; // r9d struct cocos2d::CCSprite *v44; // rbx CCMenuItemSpriteExtra *v45; // rdi float v46; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v47; // rbx struct cocos2d::CCPoint v48; // rax struct cocos2d::CCSprite *v49; // rbx CCMenuItemSpriteExtra *v50; // rdi float v51; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v52; // rbx struct cocos2d::CCPoint v53; // rax double v54; // xmm0_8 float *v55; // rax double v56; // xmm0_8 float *v57; // rax cocos2d::CCFloat *v58; // rax _BOOL8 v59; // r8 _BOOL8 v60; // r8 int v61; // [rsp+38h] [rbp-D0h] __int64 v62; // [rsp+80h] [rbp-88h] __int64 v63; // [rsp+80h] [rbp-88h] __int64 v64; // [rsp+80h] [rbp-88h] __int64 v65; // [rsp+80h] [rbp-88h] __int64 v66; // [rsp+80h] [rbp-88h] __int64 v67; // [rsp+80h] [rbp-88h] __int64 v68; // [rsp+80h] [rbp-88h] __int64 v69; // [rsp+80h] [rbp-88h] __int64 v70; // [rsp+80h] [rbp-88h] __int64 v71; // [rsp+80h] [rbp-88h] __int64 v72; // [rsp+80h] [rbp-88h] __int64 v73; // [rsp+80h] [rbp-88h] __int64 v74; // [rsp+80h] [rbp-88h] _BYTE v75[8]; // [rsp+88h] [rbp-80h] BYREF __int128 v76; // [rsp+90h] [rbp-78h] BYREF __int64 v77; // [rsp+A0h] [rbp-68h] __int64 v78; // [rsp+A8h] [rbp-60h] __int128 *v79; // [rsp+B0h] [rbp-58h] __int128 *v80; // [rsp+B8h] [rbp-50h] BYREF _BYTE v81[8]; // [rsp+C0h] [rbp-48h] BYREF __int128 v82; // [rsp+C8h] [rbp-40h] BYREF __int64 v83; // [rsp+D8h] [rbp-30h] __int64 v84; // [rsp+E0h] [rbp-28h] float v85; // [rsp+E8h] [rbp-20h] _BYTE v86[8]; // [rsp+F0h] [rbp-18h] BYREF __int128 *v87; // [rsp+F8h] [rbp-10h] result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { a1->m_objectID = a4; a1->determineStartValues(a1); v76 = 0; v77 = 2; v78 = 15; strcpy((char *)&v76, "OK"); SetupTriggerPopup::addCloseButton(a1, &v76); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); cocos2d::CCPoint::CCPoint(0.0, v85 * 0.5); if ( a4 == 3023 ) { v9 = 6; } else { v80 = &v76; v76 = 0; v77 = 6; v78 = 15; strcpy((char *)&v76, "Length"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v79 = &v76; v76 = 0; v77 = 2; v78 = 15; strcpy((char *)&v76, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v63) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, v63); v79 = &v76; v76 = 0; v77 = 6; v78 = 15; strcpy((char *)&v76, "Offset"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v64) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, v64); v79 = &v76; v76 = 0; v77 = 2; v78 = 15; strcpy((char *)&v76, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2); v9 = (unsigned int)(a4 - 3017); } switch ( v9 ) { case 0LL: v76 = 0; v77 = 0; v78 = 15; *(_QWORD *)&v76 = sub_14003AA10(0x20u); v77 = 17; v78 = 31; strcpy((char *)v76, "Move Enter Effect"); SetupTriggerPopup::addTitle(a1, &v76); v79 = &v76; v76 = 0; v77 = 0; v78 = 15; v10 = sub_14003AA10(0x180u); *(_QWORD *)&v76 = v10; v77 = 370; v78 = 383; v11 = v10; v12 = "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."; v13 = 2; do { *(_OWORD *)v11 = *(_OWORD *)v12; *((_OWORD *)v11 + 1) = *((_OWORD *)v12 + 1); *((_OWORD *)v11 + 2) = *((_OWORD *)v12 + 2); *((_OWORD *)v11 + 3) = *((_OWORD *)v12 + 3); *((_OWORD *)v11 + 4) = *((_OWORD *)v12 + 4); *((_OWORD *)v11 + 5) = *((_OWORD *)v12 + 5); *((_OWORD *)v11 + 6) = *((_OWORD *)v12 + 6); v11 += 16; *((_OWORD *)v11 - 1) = *((_OWORD *)v12 + 7); v12 += 128; --v13; } while ( v13 ); *(_OWORD *)v11 = *(_OWORD *)v12; *((_OWORD *)v11 + 1) = *((_OWORD *)v12 + 1); *((_OWORD *)v11 + 2) = *((_OWORD *)v12 + 2); *((_OWORD *)v11 + 3) = *((_OWORD *)v12 + 3); *((_OWORD *)v11 + 4) = *((_OWORD *)v12 + 4); *((_OWORD *)v11 + 5) = *((_OWORD *)v12 + 5); *((_OWORD *)v11 + 6) = *((_OWORD *)v12 + 6); *((_WORD *)v11 + 56) = *((_WORD *)v12 + 56); *((_BYTE *)v10 + 370) = 0; v82 = 0; v83 = 4; v84 = 15; strcpy((char *)&v82, "Help"); SetupTriggerPopup::addHelpButton(a1, &v82, &v76); v79 = &v82; v83 = 8; v84 = 15; v82 = 0x7473694465766F4DuLL; cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v62) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 218, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1, 2, v62); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v65) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 219, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1, 2, v65); v79 = &v76; *((_QWORD *)&v76 + 1) = 101; v77 = 9; v78 = 15; *(_QWORD *)&v76 = 0x6C676E4165766F4DLL; cocos2d::CCPoint::CCPoint(7.2734706e22, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v66) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 231, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 1, 1, 2, v66); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v67) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 232, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 1, 1, 2, v67); v79 = &v76; v77 = 7; v78 = 15; v76 = 0x65646F4D0A5958uLL; cocos2d::CCPoint::CCPoint(v85 * 0.5, (float)((float)(a1->m_width * 0.5) + (float)(v85 * 0.5)) - 58.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 241, (unsigned int)&v76, v14, 0, 0, 0, 1065353216); v79 = &v76; v76 = 0; v77 = 5; v78 = 15; strcpy((char *)&v76, "MoveX"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v68) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 237, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1, 2, v68); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v69) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 238, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1, 2, v69); v79 = &v76; v76 = 0; v77 = 5; v78 = 15; strcpy((char *)&v76, "MoveY"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v70) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 239, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1, 2, v70); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 240, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1, 2); break; case 1LL: v15 = sub_14003A7F0((__int64)&v82, (__int64)"Rotate Enter Effect"); SetupTriggerPopup::addTitle(a1, v15); v79 = &v82; v16 = sub_14003A7F0( (__int64)&v82, (__int64)"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."); v17 = sub_14003A7F0((__int64)&v76, (__int64)"Help"); v18 = SetupTriggerPopup::addHelpButton(a1, v17, v16); v79 = &v82; LODWORD(v16) = sub_14003A7F0((__int64)&v82, (__int64)"Rotation"); cocos2d::CCPoint::CCPoint(*(float *)&v18, -75.0); v19 = sub_1400DE630((__int64)v75, (__int64)v81); LOBYTE(v62) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 270, v16, v19, 1059481190, 0, 2, 6, 0, -1011613696, 1135869952, 0, 0, 1, 2, v62); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 271, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 2, 6, 0, 0, 1127481344, 0, 0, 1, 2); break; case 2LL: v76 = 0; v77 = 0; v78 = 15; *(_QWORD *)&v76 = sub_14003AA10(0x20u); v77 = 18; v78 = 31; strcpy((char *)v76, "Scale Enter Effect"); SetupTriggerPopup::addTitle(a1, &v76); v79 = &v76; v76 = 0; v77 = 0; v78 = 15; v20 = sub_14003AA10(0x120u); *(_QWORD *)&v76 = v20; v77 = 279; v78 = 287; v21 = v20; v22 = "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."; v23 = 2; do { *(_OWORD *)v21 = *(_OWORD *)v22; *((_OWORD *)v21 + 1) = *((_OWORD *)v22 + 1); *((_OWORD *)v21 + 2) = *((_OWORD *)v22 + 2); *((_OWORD *)v21 + 3) = *((_OWORD *)v22 + 3); *((_OWORD *)v21 + 4) = *((_OWORD *)v22 + 4); *((_OWORD *)v21 + 5) = *((_OWORD *)v22 + 5); *((_OWORD *)v21 + 6) = *((_OWORD *)v22 + 6); v21 += 16; *((_OWORD *)v21 - 1) = *((_OWORD *)v22 + 7); v22 += 128; --v23; } while ( v23 ); *(_OWORD *)v21 = *(_OWORD *)v22; *((_DWORD *)v21 + 4) = *((_DWORD *)v22 + 4); *((_WORD *)v21 + 10) = *((_WORD *)v22 + 10); *((_BYTE *)v21 + 22) = v22[22]; *((_BYTE *)v20 + 279) = 0; v82 = 0; v83 = 4; v84 = 15; strcpy((char *)&v82, "Help"); SetupTriggerPopup::addHelpButton(a1, &v82, &v76); v79 = &v76; v76 = 0; v77 = 6; v78 = 15; strcpy((char *)&v76, "ScaleX"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v62) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 233, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 1, 6, 0, 0, 1120403456, 0, 0, 1, 2, v62); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v71) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 234, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 1, 6, 0, 0, 1120403456, 0, 0, 1, 2, v71); v79 = &v76; v76 = 0; v77 = 6; v78 = 15; strcpy((char *)&v76, "ScaleY"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v72) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 235, (unsigned int)&v76, (unsigned int)v75, 1059481190, 0, 1, 6, 0, 0, 1128792064, 0, 0, 1, 2, v72); v79 = &v82; v82 = 0; v83 = 2; v84 = 15; strcpy((char *)&v82, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 236, (unsigned int)&v82, (unsigned int)v75, 1059481190, 0, 1, 6, 0, 0, 1128792064, 0, 0, 1, 2); break; case 3LL: v76 = 0; v77 = 0; v78 = 15; *(_QWORD *)&v76 = sub_14003AA10(0x20u); v77 = 17; v78 = 31; strcpy((char *)v76, "Fade Enter Effect"); SetupTriggerPopup::addTitle(a1, &v76); v79 = &v82; v24 = sub_14003A7F0( (__int64)&v82, (__int64)"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."); v25 = sub_14003A7F0((__int64)&v76, (__int64)"Help"); v26 = SetupTriggerPopup::addHelpButton(a1, v25, v24); v79 = &v82; LODWORD(v24) = sub_14003A7F0((__int64)&v82, (__int64)&qword_1405DB760); cocos2d::CCPoint::CCPoint(*(float *)&v26, -75.0); v27 = sub_1400DE630((__int64)v75, (__int64)v81); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 275, v24, v27, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 2); break; case 4LL: v28 = sub_14003A7F0((__int64)&v82, (__int64)"Tint Enter Effect"); SetupTriggerPopup::addTitle(a1, v28); v79 = &v82; v29 = sub_14003A7F0( (__int64)&v82, (__int64)"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. "); v30 = sub_14003A7F0((__int64)&v76, (__int64)"Help"); v31 = SetupTriggerPopup::addHelpButton(a1, v30, v29); v79 = &v82; LODWORD(v29) = sub_14003A7F0((__int64)&v82, (__int64)&qword_1405DB780); cocos2d::CCPoint::CCPoint(*(float *)&v31, -100.0); v32 = sub_1400DE630((__int64)v75, (__int64)v81); LOBYTE(v62) = 0; ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 260, v29, v32, 1059481190, 1, 3, 6, 1, 0, 1120403456, 0, 1, 0, 2, v62); v79 = &v82; LODWORD(v29) = sub_14003A7F0((__int64)&v82, (__int64)"Tint"); cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, 75.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v73) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 265, v29, (unsigned int)v75, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 1, 1, 2, v73); v79 = &v76; *((_QWORD *)&v76 + 1) = 121; v77 = 9; v78 = 15; *(_QWORD *)&v76 = 0x6C6E4F0A6E69614DLL; cocos2d::CCPoint::CCPoint(1.8056909e28, 150.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 65, (unsigned int)&v76, (unsigned int)v75, 0, 0, 0, 1065353216); v79 = &v82; v83 = 8; v84 = 15; v82 = 0x796C6E4F0A636553uLL; cocos2d::CCPoint::CCPoint(0.0, 150.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 66, (unsigned int)&v82, (unsigned int)v75, 0, 0, 0, 1065353216); v79 = &v76; v76 = 0; v77 = 3; v78 = 15; LODWORD(v76) = 5657416; cocos2d::CCPoint::CCPoint(0.0, 150.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 278, (unsigned int)&v76, (unsigned int)v75, 0, 0, 0, 1065353216); v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png"); v35 = CCMenuItemSpriteExtra::create(v34, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupEnterEffectPopup::onHSV); a1->m_hsvButton = v35; v36 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v35); cocos2d::CCPoint::CCPoint(v36, 0.0); cocos2d::CCPoint::operator+(v81, v75); v37 = a1->m_hsvButton->__vftable; v38 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v80); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v37->setPosition_0)( a1->m_hsvButton, v38); m_hsvButton = a1->m_hsvButton; GroupContainer = SetupTriggerPopup::getGroupContainer(a1, 2); cocos2d::CCArray::addObject(GroupContainer, m_hsvButton); v41 = a1->m_hsvButton; PageContainer = SetupTriggerPopup::getPageContainer(a1, 0); cocos2d::CCArray::addObject(PageContainer, v41); SetupEnterEffectPopup::updateHSVButton(a1); break; case 6LL: v76 = 0; v77 = 0; v78 = 15; *(_QWORD *)&v76 = sub_14003AA10(0x20u); v77 = 17; v78 = 31; strcpy((char *)v76, "Stop Enter Effect"); SetupTriggerPopup::addTitle(a1, &v76); v79 = &v76; v76 = 0; v77 = 0; v78 = 15; *(_QWORD *)&v76 = sub_14003AA10(0x60u); v77 = 83; v78 = 95; strcpy((char *)v76, "Stops an enter effect using its Enter Channel or Effect ID."); v82 = 0; v83 = 4; v84 = 15; strcpy((char *)&v82, "Help"); SetupTriggerPopup::addHelpButton(a1, &v82, &v76); break; default: break; } if ( a4 != 3023 ) { v79 = &v76; v76 = 0; v77 = 6; v78 = 15; strcpy((char *)&v76, "Easing"); cocos2d::CCPoint::CCPoint(0.0, -95.0); cocos2d::CCPoint::operator+(v81, v75); SetupTriggerPopup::createCustomEasingControls( (_DWORD)a1, (unsigned int)&v76, (unsigned int)v75, v43, 242, 243, v61, 0); } v79 = &v76; v77 = 14; v78 = 15; strcpy((char *)&v76, "Enter Channel:"); HIBYTE(v76) = 0; cocos2d::CCPoint::CCPoint(7.2143221e22, -100.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v62) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 344, (unsigned int)&v76, (unsigned int)v75, 1060320051, 1, 3, 6, 1, 0, 0, 0, 0, 0, 2, v62); v79 = &v76; *((_QWORD *)&v76 + 1) = 58; v77 = 9; v78 = 15; *(_QWORD *)&v76 = 0x4449746365666645LL; cocos2d::CCPoint::CCPoint(6.8001927e22, 60.0); cocos2d::CCPoint::operator+(v81, v75); LOBYTE(v74) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 225, (unsigned int)&v76, (unsigned int)v75, 1060320051, 1, 3, 6, 1, 0, 1120403456, 1, 0, 0, 2, v74); v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v44->setScale_0)(v44); v45 = CCMenuItemSpriteExtra::create( v44, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupEnterEffectPopup::onNextFreeEnterChannel); v46 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v45); cocos2d::CCPoint::CCPoint(v46, -40.0); cocos2d::CCPoint::operator+(v81, v75); v47 = v45->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v48 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v80); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v47->setPosition_0)(v45, v48); v49 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v49->setScale_0)(v49); v50 = CCMenuItemSpriteExtra::create( v49, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupAreaMoveTriggerPopup::onNextFreeEffectID); v51 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v50); cocos2d::CCPoint::CCPoint(v51, 105.0); cocos2d::CCPoint::operator+(v81, v75); v52 = v50->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v53 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v80); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v52->setPosition_0)(v50, v53); cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, (float)(v85 * 0.5) + 60.0); v79 = &v76; *((_QWORD *)&v76 + 1) = 31084; v77 = 10; v78 = 15; *(_QWORD *)&v76 = 0x6E4F0A7265746E45LL; cocos2d::CCPoint::CCPoint(7.2143221e22, 0.0); v54 = cocos2d::CCPoint::operator+(v86, v75); cocos2d::CCPoint::CCPoint(*(float *)&v54, 8.0); a1->m_enterOnlyToggler = GameToolbox::createToggleButton( (const char *)&v76, (cocos2d::SEL_MenuHandler *)SetupEnterEffectPopup::onEnterType, a1->m_enterType == 1, a1->m_buttonMenu, (struct cocos2d::CCPoint)v75, a1, a1->m_mainLayer, 0.69999999, 0.34999999, 110.0, v55, (const char *)&qword_14052A4D8, 0, 0, nullptr); v87 = &v76; *((_QWORD *)&v76 + 1) = 121; v77 = 9; v78 = 15; *(_QWORD *)&v76 = 0x6C6E4F0A74697845LL; cocos2d::CCPoint::CCPoint(7.3989534e31, 0.0); v56 = cocos2d::CCPoint::operator+(v86, v75); cocos2d::CCPoint::CCPoint(*(float *)&v56, 8.0); a1->m_exitOnlyToggler = GameToolbox::createToggleButton( (const char *)&v76, (cocos2d::SEL_MenuHandler *)SetupEnterEffectPopup::onEnterType, a1->m_enterType == 2, a1->m_buttonMenu, (struct cocos2d::CCPoint)v75, a1, a1->m_mainLayer, 0.69999999, 0.34999999, 110.0, v57, (const char *)&qword_14052A4D8, 0, 0, nullptr); BYTE1(a1->m_enterOnlyToggler->m_onButton) = 1; a1->m_enterOnlyToggler->setTag(a1->m_enterOnlyToggler, 1); BYTE1(a1->m_exitOnlyToggler->m_onButton) = 1; a1->m_exitOnlyToggler->setTag(a1->m_exitOnlyToggler, 2); a1->updateDefaultTriggerValues(a1); if ( a4 == 3017 ) { v58 = (cocos2d::CCFloat *)cocos2d::CCDictionary::objectForKey(a1->m_triggerValues, 241); if ( v58 ) { cocos2d::CCFloat::getValue(v58); ((void (__fastcall *)(SetupEnterEffectPopup *, __int64))a1->valueDidChange)(a1, 241); LABEL_30: a1->m_disableTextDelegate = 0; return 1; } ((void (__fastcall *)(SetupEnterEffectPopup *, __int64))a1->toggleGroup)(a1, 1); } else { if ( a4 != 3021 ) goto LABEL_30; if ( a1->getValue(a1, 278) == 0.0 ) LOBYTE(v60) = 1; else v60 = 0; a1->toggleGroup(a1, 1, v60); if ( a1->getValue(a1, 278) != 0.0 ) { LOBYTE(v59) = 1; goto LABEL_29; } } v59 = 0; LABEL_29: a1->toggleGroup(a1, 2, v59); goto LABEL_30; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source