// // LevelSettingsLayer::init from 0x1002556c0 to 0x100257a34 (9076 bytes) // // 1 xrefs: // > LevelSettingsLayer::create @ 0x10025567e // // 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 12:27:27 +0000 // __int64 __fastcall LevelSettingsLayer::init(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // r13 __int64 result; // rax __int64 v6; // rax __int64 v7; // rbx __int64 v8; // rax char v9; // al __int64 v10; // r14 __int64 v11; // r15 _QWORD *v12; // r12 __int64 v13; // rax _QWORD *v14; // r12 __int64 v15; // rax _QWORD *v16; // r12 __int64 v17; // rax _QWORD *v18; // r12 __int64 v19; // rax __int64 *v20; // r12 __int64 v21; // rax __int64 v22; // r12 __int64 v23; // rax _QWORD *v24; // r14 __int64 v25; // rax __int64 v26; // rax _QWORD *v27; // r14 __int64 v28; // rax __int64 v29; // rax _QWORD *v30; // r14 __int64 v31; // rax __int64 v32; // rax _QWORD *v33; // r14 __int64 v34; // rax __int64 v35; // rax _QWORD *v36; // r14 __int64 v37; // rax __int64 v38; // rax _QWORD *v39; // rbx __int64 v40; // rax __int64 v41; // rax __int64 v42; // rbx __int64 v43; // rax __int64 v44; // rbx __int64 v45; // r15 __int64 v46; // rbx __int64 v47; // r15 __int64 v48; // rbx __int64 v49; // r15 __int64 v50; // rbx __int64 v51; // r15 __int64 v52; // rbx __int64 v53; // r15 __int64 v54; // rbx __int64 v55; // r15 __int64 v56; // rbx __int64 v57; // r15 __int64 v58; // rsi __int64 v59; // rbx int v60; // ecx _QWORD *v61; // rdi int v62; // xmm0_4 __int64 v63; // rax double v64; // xmm0_8 __int64 v65; // rbx __int64 v66; // r12 __int64 v67; // r12 __int64 v68; // rbx __int64 v69; // rbx const char *v70; // r14 char *v71; // rax __int64 v72; // rax __int64 v73; // rbx __int64 v74; // r15 char *v75; // rax __int64 v76; // rax __int64 v77; // rbx __int64 v78; // r15 __int64 v79; // r15 __int64 v80; // rbx int v81; // r12d const char *v82; // rsi float v83; // xmm0_4 __int64 v84; // r15 __int64 v85; // rax __int64 CString; // rax __int64 v87; // rax __int64 v88; // rbx __int64 v89; // r15 __int64 v90; // r15 __int64 v91; // rax __int64 v92; // rax __int64 v93; // rax __int64 v94; // rbx __int64 v95; // r14 __int64 v96; // r15 __int64 v97; // r14 __int64 v98; // rax __int64 v99; // rax __int64 v100; // rax __int64 v101; // rbx __int64 v102; // r15 __int64 v103; // r14 char *v104; // rax __int64 v105; // rbx __int64 v106; // r14 char *v107; // rax __int64 v108; // rbx __int64 v109; // r14 __int64 v110; // r14 __int64 v111; // rbx unsigned __int8 v112; // r12 __int64 v113; // r14 unsigned __int8 v114; // r14 __int64 v115; // rbx __int64 ToggleButton_1; // rbx __int64 v117; // rbx __int64 v118; // rbx void *v119; // rax __int64 v120; // rdi __int64 v121; // rdi __int64 v122; // r12 __int64 v123; // rsi _QWORD *v124; // rbx __int64 v125; // rbx __int64 v126; // rbx void *v127; // rax __int64 v128; // rdi _QWORD *v129; // rbx __int64 v130; // rdi __int64 v131; // rsi _QWORD *v132; // rbx __int64 v133; // rbx __int64 v134; // rcx int v135; // eax int v136; // r14d unsigned __int8 v137; // r15 _QWORD *v138; // rax __int64 v139; // r15 int v140; // eax __int128 v141; // xmm0 __int64 v142; // rax __int64 v143; // rbx __int64 v144; // r12 __int64 v145; // r15 __int64 v146; // r13 __int64 v147; // r15 _BYTE *v148; // rdi __int64 v149; // rax __int64 v150; // rbx __int64 v151; // r15 __int64 v152; // rbx __int64 v153; // r14 __int64 v154; // r14 __int64 v155; // r15 __int64 v156; // rbx char v157; // [rsp+0h] [rbp-1B0h] char v158; // [rsp+0h] [rbp-1B0h] char v159; // [rsp+0h] [rbp-1B0h] char v160[8]; // [rsp+20h] [rbp-190h] BYREF _BYTE v161[16]; // [rsp+28h] [rbp-188h] BYREF void *v162; // [rsp+38h] [rbp-178h] _BYTE v163[16]; // [rsp+40h] [rbp-170h] BYREF void *v164; // [rsp+50h] [rbp-160h] __int16 v165; // [rsp+58h] [rbp-158h] BYREF void *__p; // [rsp+68h] [rbp-148h] __int64 v167; // [rsp+70h] [rbp-140h] __int64 v168; // [rsp+78h] [rbp-138h] char v169[8]; // [rsp+80h] [rbp-130h] BYREF char v170; // [rsp+88h] [rbp-128h] BYREF _BYTE v171[23]; // [rsp+89h] [rbp-127h] BYREF std::string v172; // [rsp+A0h] [rbp-110h] BYREF std::string v173; // [rsp+B8h] [rbp-F8h] BYREF _QWORD *v174; // [rsp+D0h] [rbp-E0h] _QWORD *v175; // [rsp+D8h] [rbp-D8h] _QWORD *v176; // [rsp+E0h] [rbp-D0h] _QWORD *v177; // [rsp+E8h] [rbp-C8h] _QWORD *v178; // [rsp+F0h] [rbp-C0h] _QWORD *v179; // [rsp+F8h] [rbp-B8h] _QWORD *v180; // [rsp+100h] [rbp-B0h] _QWORD *v181; // [rsp+108h] [rbp-A8h] _QWORD *v182; // [rsp+110h] [rbp-A0h] _QWORD *v183; // [rsp+118h] [rbp-98h] char v184[8]; // [rsp+120h] [rbp-90h] BYREF __int64 v185; // [rsp+128h] [rbp-88h] float v186[3]; // [rsp+130h] [rbp-80h] __int16 v187; // [rsp+13Ch] [rbp-74h] BYREF char v188; // [rsp+13Eh] [rbp-72h] unsigned __int8 v189; // [rsp+14Fh] [rbp-61h] char v190; // [rsp+150h] [rbp-60h] BYREF _BYTE v191[23]; // [rsp+151h] [rbp-5Fh] BYREF float v192; // [rsp+168h] [rbp-48h] BYREF __int64 v193; // [rsp+170h] [rbp-40h] __int64 v194; // [rsp+178h] [rbp-38h] float v195; // [rsp+180h] [rbp-30h] BYREF float v196; // [rsp+184h] [rbp-2Ch] v4 = a1; result = FLAlertLayer::init_1(a1, 150); if ( (_BYTE)result ) { v189 = result; *(_QWORD *)(a1 + 856) = a3; *(_BYTE *)(a1 + 596) = 1; *(_QWORD *)(a1 + 816) = a2; cocos2d::CCObject::retain(a2); *(_DWORD *)(a1 + 712) = *(_DWORD *)(*(_QWORD *)(a1 + 816) + 332LL); v6 = cocos2d::CCDirector::sharedDirector(a2, 150); cocos2d::CCDirector::getWinSize(&v195, v6); sub_100278270(&v190, 0.0, 0.0, COERCE_DOUBLE(1117782016), COERCE_DOUBLE(1117782016)); v7 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", &v190); sub_100278260(&v190, COERCE_DOUBLE(1138982912), COERCE_DOUBLE(1134067712)); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 320LL))(v7, &v190); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v7, 4294967294LL); sub_100278250(&v190, v195 * 0.5, v196 * 0.5); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 184LL))(v7, &v190); v8 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v8; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v8, 10); v185 = a2; v9 = *(_BYTE *)(a2 + 368); v194 = a1; if ( !v9 ) { v10 = cocos2d::CCLabelBMFont::create_3("Select Color:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.80000001); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v10); sub_100278250(&v190, v195 * 0.5, (float)(v196 * 0.5) + 135.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v10 + 184LL))(v10, &v190); v11 = cocos2d::CCLabelBMFont::create_3("BG:", "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.34999999); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v11); v12 = (_QWORD *)cocos2d::CCLabelBMFont::create_3("G:", "bigFont.fnt"); v13 = *v12; v182 = v12; (*(void (__fastcall **)(_QWORD *, float))(v13 + 160))(v12, 0.34999999); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v12); v14 = (_QWORD *)cocos2d::CCLabelBMFont::create_3("G2:", "bigFont.fnt"); v15 = *v14; v181 = v14; (*(void (__fastcall **)(_QWORD *, float))(v15 + 160))(v14, 0.34999999); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v14); v16 = (_QWORD *)cocos2d::CCLabelBMFont::create_3("Line:", "bigFont.fnt"); v17 = *v16; v180 = v16; (*(void (__fastcall **)(_QWORD *, float))(v17 + 160))(v16, 0.34999999); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v16); v18 = (_QWORD *)cocos2d::CCLabelBMFont::create_3("MG:", "bigFont.fnt"); v19 = *v18; v183 = v18; (*(void (__fastcall **)(_QWORD *, float))(v19 + 160))(v18, 0.34999999); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v18); v20 = (__int64 *)cocos2d::CCLabelBMFont::create_3("MG2:", "bigFont.fnt"); v21 = *v20; *(_QWORD *)v186 = v20; (*(void (__fastcall **)(__int64 *, float))(v21 + 160))(v20, 0.34999999); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v20); v22 = cocos2d::CCLabelBMFont::create_3("More:", "bigFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.34999999); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v22); *(float *)&v193 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 192LL))(v10) + 4) + -20.0; sub_100278250(&v190, (float)(v195 * 0.5) + -138.0, *(float *)&v193); v168 = v11; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v11 + 184LL))(v11, &v190); sub_100278250(&v190, (float)(v195 * 0.5) + -92.0, *(float *)&v193); (*(void (__fastcall **)(_QWORD *, char *))(*v182 + 184LL))(v182, &v190); sub_100278250(&v190, (float)(v195 * 0.5) + -46.0, *(float *)&v193); (*(void (__fastcall **)(_QWORD *, char *))(*v181 + 184LL))(v181, &v190); sub_100278250(&v190, v195 * 0.5, *(float *)&v193); (*(void (__fastcall **)(_QWORD *, char *))(*v180 + 184LL))(v180, &v190); sub_100278250(&v190, (float)(v195 * 0.5) + 46.0, *(float *)&v193); (*(void (__fastcall **)(_QWORD *, char *))(*v183 + 184LL))(v183, &v190); sub_100278250(&v190, (float)(v195 * 0.5) + 92.0, *(float *)&v193); (*(void (__fastcall **)(_QWORD *, char *))(**(_QWORD **)v186 + 184LL))(*(_QWORD **)v186, &v190); sub_100278250(&v190, (float)(v195 * 0.5) + 138.0, *(float *)&v193); v167 = v22; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v22 + 184LL))(v22, &v190); v23 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 720) = v23; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, 0.80000001); v24 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 720), 0, a1, LevelSettingsLayer::onShowPicker, 0); v25 = *v24; v174 = v24; (*(void (__fastcall **)(_QWORD *, __int64))(v25 + 72))(v24, 1000); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 720) + 72LL))(*(_QWORD *)(a1 + 720), 1000); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v24); v26 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 728) = v26; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.80000001); v27 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 728), 0, a1, LevelSettingsLayer::onShowPicker, 0); v28 = *v27; v175 = v27; (*(void (__fastcall **)(_QWORD *, __int64))(v28 + 72))(v27, 1001); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 728) + 72LL))(*(_QWORD *)(a1 + 728), 1001); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v27); v29 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 736) = v29; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v29 + 160LL))(v29, 0.80000001); v30 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 736), 0, a1, LevelSettingsLayer::onShowPicker, 0); v31 = *v30; v176 = v30; (*(void (__fastcall **)(_QWORD *, __int64))(v31 + 72))(v30, 1009); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 736) + 72LL))(*(_QWORD *)(a1 + 736), 1009); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v30); v32 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 744) = v32; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.80000001); v33 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 744), 0, a1, LevelSettingsLayer::onShowPicker, 0); v34 = *v33; v177 = v33; (*(void (__fastcall **)(_QWORD *, __int64))(v34 + 72))(v33, 1002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 744) + 72LL))(*(_QWORD *)(a1 + 744), 1002); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v33); v35 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 752) = v35; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.80000001); v36 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 752), 0, a1, LevelSettingsLayer::onShowPicker, 0); v37 = *v36; v178 = v36; (*(void (__fastcall **)(_QWORD *, __int64))(v37 + 72))(v36, 1013); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 752) + 72LL))(*(_QWORD *)(a1 + 752), 1013); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v36); v38 = ColorChannelSprite::create(); *(_QWORD *)(a1 + 760) = v38; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v38 + 160LL))(v38, 0.80000001); v39 = (_QWORD *)CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 760), 0, a1, LevelSettingsLayer::onShowPicker, 0); v40 = *v39; v179 = v39; (*(void (__fastcall **)(_QWORD *, __int64))(v40 + 72))(v39, 1014); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 760) + 72LL))(*(_QWORD *)(a1 + 760), 1014); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v39); v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); *(_QWORD *)(a1 + 768) = v41; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, 0.80000001); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 768) + 960LL))(*(_QWORD *)(a1 + 768), &unk_100A06A00); v42 = cocos2d::CCLabelBMFont::create_3("+", "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 768) + 464LL))( *(_QWORD *)(a1 + 768), v42, 1); *(float *)&v193 = (float)(*(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 768) + 328LL))(*(_QWORD *)(a1 + 768)) * 0.5) + 1.0; v43 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 768) + 328LL))(*(_QWORD *)(a1 + 768)); sub_100278250(&v190, *(float *)&v193, (float)(*(float *)(v43 + 4) * 0.5) + 2.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v42 + 184LL))(v42, &v190); v193 = CCMenuItemSpriteExtra::create(*(_QWORD *)(a1 + 768), 0, a1, LevelSettingsLayer::onCol, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v193); v44 = *(_QWORD *)(a1 + 552); v45 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 192LL))(v168); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v45, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v44, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v174 + 184LL))(v174, &v190); v46 = *(_QWORD *)(a1 + 552); v47 = (*(__int64 (__fastcall **)(_QWORD *))(*v182 + 192LL))(v182); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v47, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v46, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v175 + 184LL))(v175, &v190); v48 = *(_QWORD *)(a1 + 552); v49 = (*(__int64 (__fastcall **)(_QWORD *))(*v181 + 192LL))(v181); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v49, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v48, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v176 + 184LL))(v176, &v190); v50 = *(_QWORD *)(a1 + 552); v51 = (*(__int64 (__fastcall **)(_QWORD *))(*v180 + 192LL))(v180); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v51, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v50, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v177 + 184LL))(v177, &v190); v52 = *(_QWORD *)(a1 + 552); v53 = (*(__int64 (__fastcall **)(_QWORD *))(*v183 + 192LL))(v183); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v53, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v52, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v178 + 184LL))(v178, &v190); v54 = *(_QWORD *)(a1 + 552); v55 = (*(__int64 (__fastcall **)(_QWORD *))(**(_QWORD **)v186 + 192LL))(*(_QWORD **)v186); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v55, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v54, &v187); (*(void (__fastcall **)(_QWORD *, char *))(*v179 + 184LL))(v179, &v190); v56 = *(_QWORD *)(a1 + 552); v57 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v167 + 192LL))(v167); sub_100278250(&v192, 0.0, -22.0); sub_100278350(&v187, v57, &v192); v58 = v56; v59 = 0; cocos2d::CCNode::convertToNodeSpace(&v190, v58, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v193 + 184LL))(v193, &v190); LevelSettingsLayer::updateColorSprites(a1); while ( 2 ) { sub_1002782A0(&v190); v193 = v59; v61 = v174; v62 = 1099956224; v60 = 1000; switch ( (int)v59 ) { case 0: goto LABEL_6; case 1: v60 = 1001; v61 = v175; v62 = 1097649357; goto LABEL_6; case 2: v60 = 1009; v61 = v176; goto LABEL_5; case 3: v60 = 1002; v61 = v177; goto LABEL_12; case 4: v60 = 1013; v61 = v178; LABEL_5: v62 = 1099956224; goto LABEL_6; case 5: v60 = 1014; v61 = v179; LABEL_12: v62 = 1101214515; LABEL_6: LODWORD(v183) = v60; LODWORD(v186[0]) = v62; v63 = (*(__int64 (__fastcall **)(_QWORD *))(*v61 + 192LL))(v61); v64 = sub_100278300(&v190, v63); v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); (*(void (__fastcall **)(__int64, void *, double))(*(_QWORD *)v65 + 960LL))(v65, &unk_100A06A03, v64); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v65 + 912LL))(v65, 100); v66 = cocos2d::CCLabelBMFont::create_3("+", "bigFont.fnt"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v65 + 456LL))(v65, v66); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v66 + 160LL))(v66, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v66 + 1024LL))(v66, 100); cocos2d::CCNode::convertToNodeSpace(&v192, v65, &unk_100BE18D0); sub_100278250(v184, 2.0, 2.5); sub_100278350(&v187, &v192, v184); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v66 + 184LL))(v66, &v187); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 0.30000001); v67 = v194; v68 = CCMenuItemSpriteExtra::create(v65, 0, v194, LevelSettingsLayer::onLiveEdit, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v67 + 552) + 456LL))(*(_QWORD *)(v67 + 552), v68); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v68 + 72LL))(v68, (unsigned int)v183); sub_100278250(&v192, v186[0], 22.0); sub_100278350(&v187, &v190, &v192); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v68 + 184LL))(v68, &v187); CCMenuItemSpriteExtra::setSizeMult(v68, 2.0); v59 = (unsigned int)(v193 + 1); if ( (_DWORD)v193 != 5 ) continue; v9 = *(_BYTE *)(v185 + 368); v4 = v194; break; } break; } } if ( (v9 & 1) == 0 ) { sub_100278250(&v190, v195 * 0.5, (float)(v196 * 0.5) + 31.0); v69 = cocos2d::CCLabelBMFont::create_3("Game Type:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v69 + 160LL))(v69, 0.69999999); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v69, 10); sub_100278250(&v192, 0.0, 28.0); sub_100278350(&v187, &v190, &v192); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v69 + 184LL))(v69, &v187); v70 = "GJ_button_04.png"; v71 = ButtonSprite::create_1( (__int64)"Classic", 0x64u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_04.png", 0.55000001, 24.0); v72 = CCMenuItemSpriteExtra::create(v71, 0, v4, LevelSettingsLayer::onGameplayMode, 0); *(_QWORD *)(v4 + 880) = v72; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v72 + 72LL))(v72, 3); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v4 + 552) + 456LL))( *(_QWORD *)(v4 + 552), *(_QWORD *)(v4 + 880)); v73 = *(_QWORD *)(v4 + 880); v74 = *(_QWORD *)(v4 + 552); sub_100278250(v184, -65.0, 0.0); sub_100278350(&v192, &v190, v184); cocos2d::CCNode::convertToNodeSpace(&v187, v74, &v192); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v73 + 184LL))(v73, &v187); v75 = ButtonSprite::create_1( (__int64)"Platformer", 0x64u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_04.png", 0.55000001, 24.0); v76 = CCMenuItemSpriteExtra::create(v75, 0, v194, LevelSettingsLayer::onGameplayMode, 0); *(_QWORD *)(v194 + 888) = v76; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v76 + 72LL))(v76, 4); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v194 + 552) + 456LL))( *(_QWORD *)(v194 + 552), *(_QWORD *)(v194 + 888)); v77 = *(_QWORD *)(v194 + 888); v78 = *(_QWORD *)(v194 + 552); sub_100278250(v184, 65.0, 0.0); sub_100278350(&v192, &v190, v184); v4 = v194; cocos2d::CCNode::convertToNodeSpace(&v187, v78, &v192); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v77 + 184LL))(v77, &v187); v79 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 880) + 1072LL))(*(_QWORD *)(v4 + 880)); v80 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 888) + 1072LL))(*(_QWORD *)(v4 + 888)); v81 = *(unsigned __int8 *)(*(_QWORD *)(v4 + 816) + 341LL); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v4 + 880) + 1056LL))( *(_QWORD *)(v4 + 880), *(unsigned __int8 *)(*(_QWORD *)(v4 + 816) + 341LL)); v82 = "GJ_button_01.png"; if ( v81 ) { v82 = "GJ_button_04.png"; v70 = "GJ_button_01.png"; } ButtonSprite::updateBGImage(v79, (__int64)v82); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v4 + 888) + 1056LL))( *(_QWORD *)(v4 + 888), (unsigned __int8)v81 ^ 1u); ButtonSprite::updateBGImage(v80, (__int64)v70); v9 = *(_BYTE *)(v185 + 368); } v83 = v195 * 0.5; v186[0] = (float)(v195 * 0.5) + 185.0; *(float *)&v193 = v195 * 0.5; if ( (v9 & 1) == 0 ) { v84 = cocos2d::CCLabelBMFont::create_3("BG:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v84 + 160LL))(v84, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 584) + 456LL))(*(_QWORD *)(v4 + 584), v84); sub_100278250(&v190, v186[0], (float)((float)(v196 * 0.5) + 100.0) + 35.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v84 + 184LL))(v84, &v190); v85 = sub_10088E820("bgIcon_%02d_001.png", v157); CString = cocos2d::CCString::getCString(v85); v87 = cocos2d::CCSprite::createWithSpriteFrameName(CString); *(_QWORD *)(v4 + 776) = v87; v88 = CCMenuItemSpriteExtra::create(v87, 0, v4, LevelSettingsLayer::onBGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 552) + 456LL))(*(_QWORD *)(v4 + 552), v88); v183 = *(_QWORD **)(v4 + 552); v89 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v84 + 192LL))(v84); sub_100278250(&v192, 0.0, -32.0); sub_100278350(&v187, v89, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v183, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v88 + 184LL))(v88, &v190); v90 = cocos2d::CCLabelBMFont::create_3("G:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v90 + 160LL))(v90, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v194 + 584) + 456LL))(*(_QWORD *)(v194 + 584), v90); sub_100278250(&v190, v186[0], (float)(v196 * 0.5) + 70.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v90 + 184LL))(v90, &v190); v91 = sub_10088E820("gIcon_%02d_001.png", v158); v92 = cocos2d::CCString::getCString(v91); v93 = cocos2d::CCSprite::createWithSpriteFrameName(v92); *(_QWORD *)(v194 + 784) = v93; v94 = CCMenuItemSpriteExtra::create(v93, 0, v194, LevelSettingsLayer::onGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v194 + 552) + 456LL))(*(_QWORD *)(v194 + 552), v94); v95 = *(_QWORD *)(v194 + 552); v96 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v90 + 192LL))(v90); sub_100278250(&v192, 0.0, -32.0); sub_100278350(&v187, v96, &v192); cocos2d::CCNode::convertToNodeSpace(&v190, v95, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v94 + 184LL))(v94, &v190); v97 = cocos2d::CCLabelBMFont::create_3("MG:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v97 + 160LL))(v97, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v194 + 584) + 456LL))(*(_QWORD *)(v194 + 584), v97); sub_100278250(&v190, v186[0], (float)(v196 * 0.5) + 5.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v97 + 184LL))(v97, &v190); v98 = sub_10088E820("mgIcon_%02d_001.png", v159); v99 = cocos2d::CCString::getCString(v98); v100 = cocos2d::CCSprite::createWithSpriteFrameName(v99); *(_QWORD *)(v194 + 792) = v100; v101 = CCMenuItemSpriteExtra::create(v100, 0, v194, LevelSettingsLayer::onFGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v194 + 552) + 456LL))(*(_QWORD *)(v194 + 552), v101); v102 = *(_QWORD *)(v194 + 552); v103 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v97 + 192LL))(v97); sub_100278250(&v192, 0.0, -32.0); sub_100278350(&v187, v103, &v192); v4 = v194; cocos2d::CCNode::convertToNodeSpace(&v190, v102, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v101 + 184LL))(v101, &v190); v83 = *(float *)&v193; v9 = *(_BYTE *)(v185 + 368); } if ( (v9 & 1) == 0 ) { v104 = ButtonSprite::create_1( (__int64)"Font", 0x1Eu, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_04.png", 0.80000001, 28.0); v105 = CCMenuItemSpriteExtra::create(v104, 0, v4, LevelSettingsLayer::onSelectFont, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 552) + 456LL))(*(_QWORD *)(v4 + 552), v105); v106 = *(_QWORD *)(v4 + 552); sub_100278250(&v192, v186[0], v196 * 0.5); sub_100278250(v184, 0.0, -70.0); sub_100278350(&v187, &v192, v184); v4 = v194; cocos2d::CCNode::convertToNodeSpace(&v190, v106, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v105 + 184LL))(v105, &v190); v83 = *(float *)&v193; } *(float *)&v193 = v83 + -185.0; v107 = ButtonSprite::create_1( (__int64)"OK", 0x28u, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.80000001, 30.0); v108 = CCMenuItemSpriteExtra::create(v107, 0, v4, LevelSettingsLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 552) + 456LL))(*(_QWORD *)(v4 + 552), v108); v109 = *(_QWORD *)(v4 + 552); sub_100278250(&v187, v195 * 0.5, (float)(v196 * 0.5) + -130.0); cocos2d::CCNode::convertToNodeSpace(&v190, v109, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v108 + 184LL))(v108, &v190); if ( *(_BYTE *)(v185 + 368) ) { v110 = cocos2d::CCLabelBMFont::create_3("Disable", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v110 + 160LL))(v110, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 584) + 456LL))(*(_QWORD *)(v4 + 584), v110); sub_100278250(&v190, *(float *)&v193 + 270.0, (float)(v196 * 0.5) + -90.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v110 + 184LL))(v110, &v190); v165 = 0; v111 = *(_QWORD *)(v4 + 552); v112 = *(_BYTE *)(*(_QWORD *)(v4 + 816) + 464LL); v113 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v110 + 192LL))(v110); sub_100278250(&v187, 0.0, -30.0); sub_100278350(&v190, v113, &v187); LevelSettingsLayer::createToggleButton( v4, (unsigned int)&v165, (unsigned int)LevelSettingsLayer::onDisable, 0, v112 ^ 1, v111, (__int64)&v190); if ( (v165 & 1) != 0 ) operator delete(__p); v170 = 24; strcpy(v171, "Reset\nCamera"); v114 = *(_BYTE *)(v185 + 440); v115 = *(_QWORD *)(v4 + 552); sub_100278250(&v190, v195 * 0.5, v196 * 0.5); ToggleButton_1 = GameToolbox::createToggleButton_1( (unsigned int)&v170, (unsigned int)LevelSettingsLayer::onOptionToggle, 0, v114, v115, (unsigned int)&v190, v4, *(_QWORD *)(v4 + 584), 0); if ( (v170 & 1) != 0 ) operator delete(*(void **)&v171[15]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)ToggleButton_1 + 72LL))(ToggleButton_1, 1); sub_100278250(&v192, (float)(v195 * 0.5) + -100.0, (float)(0.5 * v196) + -60.0); v117 = cocos2d::CCLabelBMFont::create_3("Target Order", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v117 + 160LL))(v117, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 584) + 456LL))(*(_QWORD *)(v4 + 584), v117); sub_100278250(&v187, 0.0, 30.0); sub_100278350(&v190, &v192, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v117 + 184LL))(v117, &v190); sub_100278270(&v190, 0.0, 0.0, COERCE_DOUBLE(1109393408), COERCE_DOUBLE(1109393408)); sub_1002787F0(&v187, &v190); v118 = cocos2d::extension::CCScale9Sprite::create_2("square02b_small.png", &v187); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v118 + 912LL))(v118, 100); v188 = 0; v187 = 0; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v118 + 960LL))(v118, &v187); sub_100278260(v184, COERCE_DOUBLE(1112014848), COERCE_DOUBLE(1106247680)); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v118 + 320LL))(v118, v184); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v118, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v118 + 184LL))(v118, &v192); v119 = CCTextInputNode::create((__int64)"Order", (__int64)"Thonburi", 0x18u, (__int64)"bigFont.fnt", 50.0, 40.0); *(_QWORD *)(v4 + 864) = v119; (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v119, 20); (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(v4 + 864) + 184LL))(*(_QWORD *)(v4 + 864), &v192); CCTextInputNode::setMaxLabelScale(*(_QWORD *)(v4 + 864), 0.60000002); CCTextInputNode::setMaxLabelWidth(*(_QWORD *)(v4 + 864), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(v4 + 864) + 576LL) + 344LL))( *(_QWORD *)(*(_QWORD *)(v4 + 864) + 576LL), 0); v120 = *(_QWORD *)(v4 + 864); *(_DWORD *)(v120 + 592) = 6; v172.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v172.__r_.__value_.__s.__data_, "0123456789"); CCTextInputNode::setAllowedChars(v120, &v172); if ( (*(_BYTE *)&v172.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v172.__r_.__value_.__l.__data_); CCTextInputNode::setLabelPlaceholderColor(*(_QWORD *)(v4 + 864), 15772280); CCTextInputNode::setLabelPlaceholderScale(*(_QWORD *)(v4 + 864), 0.5); v121 = *(_QWORD *)(v4 + 864); v122 = v4 + 544; *(_QWORD *)(v121 + 584) = v4 + 544; *(_BYTE *)(v121 + 424) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v121 + 72LL))(v121, 1); v123 = *(unsigned int *)(*(_QWORD *)(v4 + 816) + 372LL); if ( (int)v123 > 0 ) { v124 = *(_QWORD **)(v4 + 864); GameToolbox::intToString(v161, v123); CCTextInputNode::setString(v124, (__int64)v161); v4 = v194; if ( (v161[0] & 1) != 0 ) operator delete(v162); } *(_QWORD *)v186 = v122; v192 = v192 + 200.0; v125 = cocos2d::CCLabelBMFont::create_3("Target Channel", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v125 + 160LL))(v125, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 584) + 456LL))(*(_QWORD *)(v4 + 584), v125); sub_100278250(v169, 0.0, 30.0); sub_100278350(&v187, &v192, v169); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v125 + 184LL))(v125, &v187); sub_1002787F0(&v187, &v190); v126 = cocos2d::extension::CCScale9Sprite::create_2("square02b_small.png", &v187); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v126 + 912LL))(v126, 100); v188 = 0; v187 = 0; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v126 + 960LL))(v126, &v187); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v126 + 320LL))(v126, v184); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v126, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v126 + 184LL))(v126, &v192); v127 = CCTextInputNode::create((__int64)"Channel", (__int64)"Thonburi", 0x18u, (__int64)"bigFont.fnt", 50.0, 40.0); *(_QWORD *)(v4 + 872) = v127; (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v127, 20); (*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(v4 + 872) + 184LL))(*(_QWORD *)(v4 + 872), &v192); CCTextInputNode::setMaxLabelScale(*(_QWORD *)(v4 + 872), 0.60000002); CCTextInputNode::setMaxLabelWidth(*(_QWORD *)(v4 + 872), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(v4 + 872) + 576LL) + 344LL))( *(_QWORD *)(*(_QWORD *)(v4 + 872) + 576LL), 0); v128 = *(_QWORD *)(v4 + 872); *(_DWORD *)(v128 + 592) = 6; v173.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v173.__r_.__value_.__s.__data_, "0123456789"); CCTextInputNode::setAllowedChars(v128, &v173); v129 = *(_QWORD **)v186; if ( (*(_BYTE *)&v173.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v173.__r_.__value_.__l.__data_); v4 = v194; CCTextInputNode::setLabelPlaceholderColor(*(_QWORD *)(v194 + 872), 15772280); CCTextInputNode::setLabelPlaceholderScale(*(_QWORD *)(v4 + 872), 0.5); v130 = *(_QWORD *)(v4 + 872); *(_QWORD *)(v130 + 584) = v129; *(_BYTE *)(v130 + 424) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v130 + 72LL))(v130, 2); v131 = *(unsigned int *)(*(_QWORD *)(v4 + 816) + 376LL); if ( (int)v131 > 0 ) { v132 = *(_QWORD **)(v4 + 872); GameToolbox::intToString(v163, v131); CCTextInputNode::setString(v132, (__int64)v163); if ( (v163[0] & 1) != 0 ) operator delete(v164); } } else { v133 = *(_QWORD *)(v4 + 816); v134 = *(_QWORD *)(v133 + 384); v135 = *(_DWORD *)(v134 + 608); v136 = v135; if ( !v135 ) v136 = *(_DWORD *)(v134 + 604); v137 = v135 != 0; sub_100278250(&v190, v195 * 0.5, (float)(0.5 * v196) + -67.0); v138 = SongSelectNode::create( v136, v137, v133, 0, (__int64)&v190, *(_QWORD *)(v4 + 584), *(_QWORD *)(v4 + 552), 0); *(_QWORD *)(v4 + 704) = v138; (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v4 + 584) + 464LL))( *(_QWORD *)(v4 + 584), v138, 5); } sub_100278250(&v187, *(float *)&v193, (float)(v196 * 0.5) + 135.0); v139 = cocos2d::CCLabelBMFont::create_3("Speed:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v139 + 160LL))(v139, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 584) + 456LL))(*(_QWORD *)(v4 + 584), v139); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v139 + 184LL))(v139, &v187); v140 = *(_DWORD *)(*(_QWORD *)(v4 + 816) + 332LL); v190 = 32; switch ( v140 ) { case 1: v141 = *(_OWORD *)"boost_01_001.png"; break; case 2: v141 = *(_OWORD *)"boost_03_001.png"; break; case 3: v141 = *(_OWORD *)"boost_04_001.png"; break; case 4: v141 = *(_OWORD *)"boost_05_001.png"; break; default: v141 = *(_OWORD *)"boost_02_001.png"; break; } *(_OWORD *)v191 = v141; v191[16] = 0; v142 = cocos2d::CCSprite::createWithSpriteFrameName(v191); *(_QWORD *)(v4 + 800) = v142; if ( (v190 & 1) != 0 ) { operator delete(*(void **)&v191[15]); v142 = *(_QWORD *)(v4 + 800); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v142 + 160LL))(v142, 0.60000002); v143 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v4 + 800), 0, v4, LevelSettingsLayer::onSpeed, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 552) + 456LL))(*(_QWORD *)(v4 + 552), v143); v144 = *(_QWORD *)(v4 + 552); v145 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v139 + 192LL))(v139); sub_100278250(v184, 0.0, -34.0); v146 = v194; sub_100278350(&v192, v145, v184); cocos2d::CCNode::convertToNodeSpace(&v190, v144, &v192); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v143 + 184LL))(v143, &v190); sub_100278250(&v192, *(float *)&v193, (float)((float)(v196 * 0.5) + 135.0) + -80.0); v147 = cocos2d::CCLabelBMFont::create_3("Mode:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v147 + 160LL))(v147, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v146 + 584) + 456LL))(*(_QWORD *)(v146 + 584), v147); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v147 + 184LL))(v147, &v192); SelectSettingLayer::frameForItem( &v190, *(unsigned __int8 *)(*(_QWORD *)(v146 + 816) + 341LL), *(unsigned int *)(*(_QWORD *)(v146 + 816) + 328LL)); v148 = v191; if ( (v190 & 1) != 0 ) v148 = *(_BYTE **)&v191[15]; v149 = cocos2d::CCSprite::createWithSpriteFrameName(v148); *(_QWORD *)(v146 + 808) = v149; if ( (v190 & 1) != 0 ) { operator delete(*(void **)&v191[15]); v149 = *(_QWORD *)(v146 + 808); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v149 + 160LL))(v149, 1.0); v150 = CCMenuItemSpriteExtra::create(*(_QWORD *)(v146 + 808), 0, v146, LevelSettingsLayer::onMode, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v146 + 552) + 456LL))(*(_QWORD *)(v146 + 552), v150); *(_QWORD *)v186 = *(_QWORD *)(v146 + 552); v151 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v147 + 192LL))(v147); sub_100278250(v169, 0.0, -32.0); sub_100278350(v184, v151, v169); cocos2d::CCNode::convertToNodeSpace(&v190, *(_QWORD *)v186, v184); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v150 + 184LL))(v150, &v190); sub_100278250(&v190, *(float *)&v193, (float)((float)(v196 * 0.5) + 135.0) + -160.0); v152 = cocos2d::CCLabelBMFont::create_3("Options:", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v152 + 160LL))(v152, 0.60000002); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v146 + 584) + 456LL))(*(_QWORD *)(v146 + 584), v152); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v152 + 184LL))(v152, &v190); v153 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v153 + 160LL))(v153, 0.60000002); v154 = CCMenuItemSpriteExtra::create(v153, 0, v146, LevelSettingsLayer::onSettings, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v146 + 552) + 456LL))(*(_QWORD *)(v146 + 552), v154); v155 = *(_QWORD *)(v146 + 552); v156 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v152 + 192LL))(v152); sub_100278250(v160, 0.0, -32.0); sub_100278350(v169, v156, v160); cocos2d::CCNode::convertToNodeSpace(v184, v155, v169); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v154 + 184LL))(v154, v184); return v189; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source