// // LevelSettingsLayer::init from 0xb65840 to 0xb67b18 (8920 bytes) // // 2 xrefs: // > LevelSettingsLayer::create @ 0xb67d78 // > @ 0xaa9c8 // // This function is hookable on this platform (idp: arm, 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 13:02:16 +0000 // __int64 __fastcall LevelSettingsLayer::init(LevelSettingsLayer *this, LevelSettingsObject *a2, LevelEditorLayer *a3) { cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 __int64 v8; // x21 void (__fastcall *v9)(__int64, __int64 *); // x22 __int64 (__fastcall *v10)(__int64, __int64 *); // x22 cocos2d::CCMenu *v11; // x0 __int64 v12; // x0 const char *v13; // x6 float v14; // s11 __int64 v15; // x0 __int64 v16; // x22 cocos2d::CCNode *v17; // x26 void (__fastcall *v18)(__int64, __int64 *); // x25 const char *v19; // x2 __int64 v20; // x0 int v21; // w22 char v22; // w25 __int64 v23; // x0 const char *v24; // x2 __int64 v25; // x26 cocos2d::CCSprite *v26; // x0 __int64 v27; // x0 char v28; // w1 __int64 v29; // x27 cocos2d::CCNode *v30; // x28 __int64 v31; // x0 __int64 (__fastcall *v32)(__int64); // x1 void (__fastcall *v33)(__int64, __int64 *); // x26 __int64 v34; // x24 const char *v35; // x2 __int64 v36; // x26 cocos2d::CCSprite *v37; // x0 __int64 v38; // x0 char v39; // w1 __int64 v40; // x25 cocos2d::CCNode *v41; // x27 __int64 v42; // x0 __int64 (__fastcall *v43)(__int64); // x1 void (__fastcall *v44)(__int64, __int64 *); // x26 __int64 v45; // x28 const char *v46; // x2 __int64 v47; // x26 const char *v48; // x1 __int64 v49; // x23 __int64 v50; // x23 cocos2d::CCNode *v51; // x25 void (__fastcall *v52)(__int64, __int64 *); // x19 __int64 v53; // x26 __int64 v54; // x22 void (__fastcall *v55)(__int64, __int64 *); // x25 __int64 v56; // x1 __int64 v57; // x0 cocos2d::CCNode *v58; // x22 __int64 v59; // x27 unsigned __int8 v60; // w25 cocos2d::CCNode *v61; // x22 CCMenuItemToggler *ToggleButton; // x22 const char *v63; // x2 __int64 v64; // x25 void (__fastcall *v65)(__int64, __int64 *); // x24 __int64 v66; // x25 void (__fastcall *v67)(__int64, __int64 *); // x2 __int64 v68; // x0 __int64 v69; // x25 const char *v70; // x2 GameToolbox *v71; // x0 _QWORD *v72; // x24 __int64 v73; // x24 __int64 v74; // x28 void (__fastcall *v75)(__int64, __int64 *); // x2 const char *v76; // x4 __int64 v77; // x0 __int64 v78; // x22 GameToolbox *v79; // x0 _QWORD *v80; // x22 __int64 v81; // x28 int v82; // w27 void (__fastcall *v83)(__int64, __int64 *); // x23 const char *v84; // x2 const char *v85; // x2 const char *v86; // x2 const char *v87; // x2 const char *v88; // x2 const char *v89; // x2 const char *v90; // x2 __int64 v91; // x23 float v92; // s11 void (__fastcall *v93)(cocos2d::CCNode *, __int64 *); // x28 void (__fastcall *v94)(cocos2d::CCPoint *, __int64 *); // x28 void (__fastcall *v95)(cocos2d::CCPoint *, __int64 *); // x28 void (__fastcall *v96)(cocos2d::CCPoint *, __int64 *); // x28 void (__fastcall *v97)(cocos2d::CCPoint *, __int64 *); // x28 void (__fastcall *v98)(cocos2d::CCPoint *, __int64 *); // x28 __int64 (__fastcall *v99)(__int64, __int64 *); // x28 ColorChannelSprite *v100; // x0 cocos2d::CCSprite *v101; // x0 ColorChannelSprite *v102; // x0 cocos2d::CCSprite *v103; // x0 ColorChannelSprite *v104; // x0 cocos2d::CCSprite *v105; // x0 ColorChannelSprite *v106; // x0 cocos2d::CCSprite *v107; // x0 ColorChannelSprite *v108; // x0 cocos2d::CCSprite *v109; // x0 ColorChannelSprite *v110; // x0 cocos2d::CCSprite *v111; // x0 __int64 v112; // x25 const char *v113; // x1 __int64 v114; // x0 const char *v115; // x2 __int64 v116; // x25 void (__fastcall *v117)(__int64, __int64 *); // x26 __int64 v118; // x0 __int64 v119; // x25 cocos2d::CCNode *v120; // x8 cocos2d::CCNode *v121; // x0 __int64 v122; // x1 void (__fastcall *v123)(__int64, __int64 *); // x26 void (__fastcall *v124)(cocos2d::CCNode *, __int64 *); // x26 void (__fastcall *v125)(__int64, __int64 *); // x26 void (__fastcall *v126)(__int64, __int64 *); // x26 void (__fastcall *v127)(__int64, __int64 *); // x26 void (__fastcall *v128)(__int64, __int64 *); // x26 cocos2d::CCNode *v129; // x26 __int64 v130; // x0 __int64 (__fastcall *v131)(__int64); // x1 void (__fastcall *v132)(__int64, __int64 *); // x23 int v133; // w2 float v134; // s10 __int64 v135; // x1 __int64 v136; // x0 cocos2d::CCNode *v137; // x24 const char *v138; // x2 __int64 v139; // x26 void (__fastcall *v140)(__int64, __int64 *); // x28 __int64 v141; // x24 void (__fastcall *v142)(__int64, __int64 *); // x26 const char *v143; // x2 __int64 v144; // x25 const char *v145; // x6 __int64 v146; // x0 __int64 v147; // x0 const char *v148; // x6 __int64 v149; // x0 __int64 v150; // x0 __int64 v151; // x23 cocos2d::CCNode *v152; // x28 void (__fastcall *v153)(__int64, __int64 *); // x27 const char *v154; // x2 float v155; // s12 __int64 v156; // x26 void (__fastcall *v157)(__int64, __int64 *); // x23 int v158; // w0 const char *v159; // x1 cocos2d::CCString *v160; // x0 cocos2d::CCSprite *CString; // x0 const char *v162; // x1 __int64 v163; // x0 __int64 v164; // x23 cocos2d::CCNode *v165; // x27 __int64 v166; // x0 __int64 (__fastcall *v167)(__int64); // x1 void (__fastcall *v168)(__int64, __int64 *); // x26 __int64 v169; // x28 const char *v170; // x2 __int64 v171; // x26 void (__fastcall *v172)(__int64, __int64 *); // x23 int v173; // w0 const char *v174; // x1 cocos2d::CCString *v175; // x0 cocos2d::CCSprite *v176; // x0 const char *v177; // x1 __int64 v178; // x0 __int64 v179; // x23 cocos2d::CCNode *v180; // x27 __int64 v181; // x0 __int64 (__fastcall *v182)(__int64); // x1 void (__fastcall *v183)(__int64, __int64 *); // x26 __int64 v184; // x28 const char *v185; // x2 __int64 v186; // x26 void (__fastcall *v187)(__int64, __int64 *); // x23 int v188; // w0 const char *v189; // x1 cocos2d::CCString *v190; // x0 cocos2d::CCSprite *v191; // x0 const char *v192; // x1 __int64 v193; // x0 __int64 v194; // x23 cocos2d::CCNode *v195; // x27 __int64 v196; // x0 __int64 (__fastcall *v197)(__int64); // x1 void (__fastcall *v198)(__int64, __int64 *); // x26 __int64 v199; // x28 __int64 v200; // x0 __int64 v201; // x23 cocos2d::CCNode *v202; // x26 void (__fastcall *v203)(__int64, __int64 *); // x25 __int64 v204; // [xsp+B0h] [xbp+A0h] cocos2d::CCPoint *v205; // [xsp+B8h] [xbp+A8h] cocos2d::CCPoint *v206; // [xsp+C0h] [xbp+B0h] cocos2d::CCPoint *v207; // [xsp+C8h] [xbp+B8h] cocos2d::CCPoint *v208; // [xsp+D0h] [xbp+C0h] cocos2d::CCPoint *v209; // [xsp+D8h] [xbp+C8h] cocos2d::CCNode *v210; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v211; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v212; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v213; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v214; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v215; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v216; // [xsp+E0h] [xbp+D0h] cocos2d::CCNode *v217; // [xsp+E0h] [xbp+D0h] cocos2d::CCPoint *v218; // [xsp+E8h] [xbp+D8h] __int64 v219; // [xsp+E8h] [xbp+D8h] cocos2d::CCPoint *v220; // [xsp+F0h] [xbp+E0h] __int64 v221; // [xsp+F0h] [xbp+E0h] cocos2d::CCPoint *v222; // [xsp+F8h] [xbp+E8h] __int64 v223; // [xsp+F8h] [xbp+E8h] cocos2d::CCPoint *v224; // [xsp+100h] [xbp+F0h] __int64 v225; // [xsp+100h] [xbp+F0h] cocos2d::CCNode *v226; // [xsp+108h] [xbp+F8h] cocos2d::CCNode *v227; // [xsp+108h] [xbp+F8h] char *v228; // [xsp+118h] [xbp+108h] cocos2d::CCPoint *v229; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v230; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v231; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v232; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v233; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v234; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v235; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v236; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v237; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v238; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v239; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v240; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v241; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v242; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v243; // [xsp+120h] [xbp+110h] unsigned int v244; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v245; // [xsp+120h] [xbp+110h] cocos2d::CCPoint *v246; // [xsp+120h] [xbp+110h] unsigned __int8 v247; // [xsp+137h] [xbp+127h] int v249; // [xsp+148h] [xbp+138h] int v250; // [xsp+150h] [xbp+140h] __int64 v251; // [xsp+158h] [xbp+148h] BYREF char v252[8]; // [xsp+160h] [xbp+150h] BYREF float v253; // [xsp+168h] [xbp+158h] BYREF char v254[8]; // [xsp+170h] [xbp+160h] BYREF __int64 v255; // [xsp+178h] [xbp+168h] BYREF _QWORD v256[2]; // [xsp+180h] [xbp+170h] BYREF __int64 v257[2]; // [xsp+190h] [xbp+180h] BYREF char *v258; // [xsp+1A0h] [xbp+190h] BYREF __int64 v259; // [xsp+1A8h] [xbp+198h] void *v260; // [xsp+1B0h] [xbp+1A0h] v247 = FLAlertLayer::init(this, 150); if ( !v247 ) return v247; *((_QWORD *)this + 107) = a3; *((_BYTE *)this + 596) = 1; *((_QWORD *)this + 102) = a2; cocos2d::CCObject::retain(a2); v6 = (cocos2d::CCDirector *)*(unsigned int *)(*((_QWORD *)this + 102) + 332LL); *((_DWORD *)this + 178) = (_DWORD)v6; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v251, v7); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v257, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v257); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v257, 455.0, 305.0); v9(v8, v257); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v8, 4294967294LL); v10 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, *(float *)&v251 * 0.5, *((float *)&v251 + 1) * 0.5); v11 = (cocos2d::CCMenu *)v10(v8, v257); v12 = cocos2d::CCMenu::create(v11); *((_QWORD *)this + 69) = v12; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v12, 10); if ( *((_BYTE *)a2 + 368) ) { v14 = (float)(*(float *)&v251 * 0.5) + -185.0; goto LABEL_5; } v81 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Select Color:", "goldFont.fnt", "Path of Light Rank 1"); v82 = 0; (*(void (__fastcall **)(float))(*(_QWORD *)v81 + 160LL))(0.8); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v81); v83 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v81 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v257, *(float *)&v251 * 0.5, (float)(*((float *)&v251 + 1) * 0.5) + 135.0); v83(v81, v257); v231 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"BG:", "bigFont.fnt", v84); (*(void (__fastcall **)(float))(*(_QWORD *)v231 + 160LL))(0.35); v210 = v231; (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v231); v232 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G:", "bigFont.fnt", v85); (*(void (__fastcall **)(float))(*(_QWORD *)v232 + 160LL))(0.35); v218 = v232; (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v232); v233 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G2:", "bigFont.fnt", v86); (*(void (__fastcall **)(float))(*(_QWORD *)v233 + 160LL))(0.35); v220 = v233; (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v233); v234 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Line:", "bigFont.fnt", v87); (*(void (__fastcall **)(float))(*(_QWORD *)v234 + 160LL))(0.35); v222 = v234; (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v234); v235 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"MG:", "bigFont.fnt", v88); (*(void (__fastcall **)(float))(*(_QWORD *)v235 + 160LL))(0.35); v224 = v235; (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v235); v236 = (cocos2d::CCPoint *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"MG2:", "bigFont.fnt", v89); (*(void (__fastcall **)(float))(*(_QWORD *)v236 + 160LL))(0.35); (*(void (__fastcall **)(_QWORD, cocos2d::CCPoint *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v236); v91 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"More:", "bigFont.fnt", v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v91 + 160LL))(v91, 0.35); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v91); v92 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v81 + 192LL))(v81) + 4) - 20.0; v93 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v210 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + -138.0, v92); v93(v210, v257); v94 = *(void (__fastcall **)(cocos2d::CCPoint *, __int64 *))(*(_QWORD *)v218 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + -92.0, v92); v205 = v218; v94(v218, v257); v95 = *(void (__fastcall **)(cocos2d::CCPoint *, __int64 *))(*(_QWORD *)v220 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + -46.0, v92); v206 = v220; v95(v220, v257); v96 = *(void (__fastcall **)(cocos2d::CCPoint *, __int64 *))(*(_QWORD *)v222 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, *(float *)&v251 * 0.5, v92); v207 = v222; v96(v222, v257); v97 = *(void (__fastcall **)(cocos2d::CCPoint *, __int64 *))(*(_QWORD *)v224 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + 46.0, v92); v208 = v224; v97(v224, v257); v98 = *(void (__fastcall **)(cocos2d::CCPoint *, __int64 *))(*(_QWORD *)v236 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + 92.0, v92); v209 = v236; v98(v236, v257); v99 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v91 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, (float)(*(float *)&v251 * 0.5) + 138.0, v92); v100 = (ColorChannelSprite *)v99(v91, v257); v101 = ColorChannelSprite::create(v100); *((_QWORD *)this + 90) = v101; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v101 + 160LL))(v101, 0.8); v204 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 90), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v204 + 72LL))(v204, 1000); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 90) + 72LL))(*((_QWORD *)this + 90), 1000); v102 = (ColorChannelSprite *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v204); v103 = ColorChannelSprite::create(v102); *((_QWORD *)this + 91) = v103; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v103 + 160LL))(v103, 0.8); v226 = (cocos2d::CCNode *)CCMenuItemSpriteExtra::create( *((_QWORD *)this + 91), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v226 + 72LL))(v226, 1001); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 91) + 72LL))(*((_QWORD *)this + 91), 1001); v104 = (ColorChannelSprite *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCNode *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v226); v105 = ColorChannelSprite::create(v104); *((_QWORD *)this + 92) = v105; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v105 + 160LL))(v105, 0.8); v225 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 92), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v225 + 72LL))(v225, 1009); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 92) + 72LL))(*((_QWORD *)this + 92), 1009); v106 = (ColorChannelSprite *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v225); v107 = ColorChannelSprite::create(v106); *((_QWORD *)this + 93) = v107; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v107 + 160LL))(v107, 0.8); v223 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 93), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v223 + 72LL))(v223, 1002); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 93) + 72LL))(*((_QWORD *)this + 93), 1002); v108 = (ColorChannelSprite *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v223); v109 = ColorChannelSprite::create(v108); *((_QWORD *)this + 94) = v109; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v109 + 160LL))(v109, 0.8); v221 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 94), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v221 + 72LL))(v221, 1013); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 94) + 72LL))(*((_QWORD *)this + 94), 1013); v110 = (ColorChannelSprite *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v221); v111 = ColorChannelSprite::create(v110); *((_QWORD *)this + 95) = v111; (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v111 + 160LL))(v111, 0.8); v112 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 95), 0, (__int64)this, (__int64)LevelSettingsLayer::onShowPicker, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v112 + 72LL))(v112, 1014); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 95) + 72LL))(*((_QWORD *)this + 95), 1014); v219 = v112; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v112); v114 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_colorBtn_001.png", v113); *((_QWORD *)this + 96) = v114; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v114 + 160LL))(v114, 0.8); (*(void (__fastcall **)(_QWORD, unsigned int *))(**((_QWORD **)this + 96) + 960LL))( *((_QWORD *)this + 96), &dword_1190550[6]); v116 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"+", "bigFont.fnt", v115); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 96) + 464LL))(*((_QWORD *)this + 96), v116, 1); v117 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v116 + 184LL); *(float *)&v236 = (float)(*(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 96) + 328LL))(*((_QWORD *)this + 96)) * 0.5) + 1.0; v118 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 96) + 328LL))(*((_QWORD *)this + 96)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, *(float *)&v236, (float)(*(float *)(v118 + 4) * 0.5) + 2.0); v117(v116, v257); v119 = CCMenuItemSpriteExtra::create(*((_QWORD *)this + 96), 0, (__int64)this, (__int64)LevelSettingsLayer::onCol, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v119); v120 = v210; v121 = v210; v122 = *(_QWORD *)v210; v211 = *((cocos2d::CCNode **)this + 69); v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v204 + 184LL); v237 = (cocos2d::CCPoint *)(*(_QWORD *(__fastcall **)(cocos2d::CCNode *__return_ptr, cocos2d::CCNode *))(v122 + 192))( v120, v121); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v237); cocos2d::CCNode::convertToNodeSpace(v257, v211, (const cocos2d::CCPoint *)v256); v123(v204, v257); v212 = *((cocos2d::CCNode **)this + 69); v124 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v226 + 184LL); v238 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v205 + 192LL))(v205); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v238); cocos2d::CCNode::convertToNodeSpace(v257, v212, (const cocos2d::CCPoint *)v256); v124(v226, v257); v213 = *((cocos2d::CCNode **)this + 69); v125 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v225 + 184LL); v239 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v206 + 192LL))(v206); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v239); cocos2d::CCNode::convertToNodeSpace(v257, v213, (const cocos2d::CCPoint *)v256); v125(v225, v257); v214 = *((cocos2d::CCNode **)this + 69); v126 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v223 + 184LL); v240 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v207 + 192LL))(v207); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v240); cocos2d::CCNode::convertToNodeSpace(v257, v214, (const cocos2d::CCPoint *)v256); v126(v223, v257); v215 = *((cocos2d::CCNode **)this + 69); v127 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v221 + 184LL); v241 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v208 + 192LL))(v208); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v241); cocos2d::CCNode::convertToNodeSpace(v257, v215, (const cocos2d::CCPoint *)v256); v127(v221, v257); v216 = *((cocos2d::CCNode **)this + 69); v128 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v219 + 184LL); v242 = (cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCPoint *))(*(_QWORD *)v209 + 192LL))(v209); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v242); cocos2d::CCNode::convertToNodeSpace(v257, v216, (const cocos2d::CCPoint *)v256); v128(v219, v257); v129 = *((cocos2d::CCNode **)this + 69); v130 = v91; v131 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v91 + 192LL); v132 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v119 + 184LL); v243 = (cocos2d::CCPoint *)v131(v130); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -22.0); cocos2d::CCPoint::operator+(v256, v243); cocos2d::CCNode::convertToNodeSpace(v257, v129, (const cocos2d::CCPoint *)v256); v132(v119, v257); LevelSettingsLayer::updateColorSprites((ColorChannelSprite **)this); v217 = a2; do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254); switch ( v82 ) { case 1: v133 = 1001; v134 = -3.2; v135 = *(_QWORD *)v226; break; case 2: v133 = 1009; v134 = 0.0; v135 = *(_QWORD *)v225; break; case 3: v133 = 1002; v134 = 2.4; v135 = *(_QWORD *)v223; break; case 4: v133 = 1013; v134 = 0.0; v135 = *(_QWORD *)v221; break; case 5: v133 = 1014; v134 = 2.4; v135 = *(_QWORD *)v219; break; default: v133 = 1000; v134 = 0.0; v135 = *(_QWORD *)v204; break; } v244 = v133; ++v82; v136 = (*(__int64 (**)(void))(v135 + 192))(); cocos2d::CCPoint::operator=(v254, v136); v137 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_colorBtn_001.png", "Path of Light Rank 1"); (*(void (__fastcall **)(cocos2d::CCNode *, unsigned int *))(*(_QWORD *)v137 + 960LL))(v137, &dword_1190550[8]); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v137 + 912LL))(v137, 100); v139 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"+", "bigFont.fnt", v138); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v137 + 456LL))(v137, v139); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v139 + 160LL))(v139, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v139 + 1024LL))(v139, 100); v140 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v139 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v255, v137, (const cocos2d::CCPoint *)&unk_155E508); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, 2.0, 2.5); cocos2d::CCPoint::operator+(v257, &v255); v140(v139, v257); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v137 + 160LL))(v137, 0.3); v141 = CCMenuItemSpriteExtra::create((__int64)v137, 0, (__int64)this, (__int64)LevelSettingsLayer::onLiveEdit, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v141); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v141 + 72LL))(v141, v244); v142 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v141 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v134 + 18.0, 22.0); cocos2d::CCPoint::operator+(v257, v254); v142(v141, v257); CCMenuItemSpriteExtra::setSizeMult(v141, 2.0); } while ( v82 != 6 ); a2 = v217; if ( *((_BYTE *)v217 + 368) ) { v14 = (float)(*(float *)&v251 * 0.5) + -185.0; goto LABEL_5; } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v254, *(float *)&v251 * 0.5, (float)(*((float *)&v251 + 1) * 0.5) + 31.0); v144 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Game Type:", "goldFont.fnt", v143); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v144 + 160LL))(v144, 0.7); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v144, 10); v245 = *(cocos2d::CCPoint **)(*(_QWORD *)v144 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, 0.0, 28.0); cocos2d::CCPoint::operator+(v257, v254); ((void (__fastcall *)(__int64, __int64 *))v245)(v144, v257); v146 = ButtonSprite::create( (ButtonSprite *)"Classic", (const char *)&qword_60 + 4, 0, 1, 0.55, "bigFont.fnt", "GJ_button_04.png", v145, 24.0); v147 = CCMenuItemSpriteExtra::create(v146, 0, (__int64)this, (__int64)LevelSettingsLayer::onGameplayMode, 0); *((_QWORD *)this + 110) = v147; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v147 + 72LL))(v147, 3); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 110)); v228 = *((char **)this + 110); v227 = *((cocos2d::CCNode **)this + 69); v246 = *(cocos2d::CCPoint **)(*(_QWORD *)v228 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, -65.0, 0.0); cocos2d::CCPoint::operator+(v256, v254); cocos2d::CCNode::convertToNodeSpace(v257, v227, (const cocos2d::CCPoint *)v256); ((void (__fastcall *)(char *, __int64 *))v246)(v228, v257); v149 = ButtonSprite::create( (ButtonSprite *)"Platformer", (const char *)&qword_60 + 4, 0, 1, 0.55, "bigFont.fnt", "GJ_button_04.png", v148, 24.0); v150 = CCMenuItemSpriteExtra::create(v149, 0, (__int64)this, (__int64)LevelSettingsLayer::onGameplayMode, 0); *((_QWORD *)this + 111) = v150; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v150 + 72LL))(v150, 4); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 111)); v151 = *((_QWORD *)this + 111); v152 = *((cocos2d::CCNode **)this + 69); v153 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v151 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 65.0, 0.0); cocos2d::CCPoint::operator+(v256, v254); cocos2d::CCNode::convertToNodeSpace(v257, v152, (const cocos2d::CCPoint *)v256); v153(v151, v257); LevelSettingsLayer::updateGameplayModeButtons(this); v14 = (float)(*(float *)&v251 * 0.5) - 185.0; if ( !*((_BYTE *)v217 + 368) ) { v155 = (float)(*(float *)&v251 * 0.5) + 185.0; v156 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"BG:", "goldFont.fnt", v154); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v156 + 160LL))(v156, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v156); v157 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v156 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v257, v155, (float)((float)(*((float *)&v251 + 1) * 0.5) + 100.0) + 35.0); v157(v156, v257); v158 = *((_DWORD *)v217 + 88); v159 = (_BYTE *)(&word_3A + 1); if ( v158 <= 58 ) { if ( v158 > 0 ) { v160 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"bgIcon_%02d_001.png", (const char *)(unsigned int)v158); goto LABEL_43; } v159 = (_BYTE *)(&dword_0 + 1); } v160 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"bgIcon_%02d_001.png", v159); LABEL_43: CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v160); v163 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v162); *((_QWORD *)this + 97) = v163; v164 = CCMenuItemSpriteExtra::create(v163, 0, (__int64)this, (__int64)LevelSettingsLayer::onBGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v164); v165 = *((cocos2d::CCNode **)this + 69); v166 = v156; v167 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v156 + 192LL); v168 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v164 + 184LL); v169 = v167(v166); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -32.0); cocos2d::CCPoint::operator+(v256, v169); cocos2d::CCNode::convertToNodeSpace(v257, v165, (const cocos2d::CCPoint *)v256); v168(v164, v257); v171 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"G:", "goldFont.fnt", v170); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v171 + 160LL))(v171, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v171); v172 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v171 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, v155, (float)(*((float *)&v251 + 1) * 0.5) + 70.0); v172(v171, v257); v173 = *((_DWORD *)v217 + 89); v174 = (_BYTE *)(&dword_14 + 2); if ( v173 <= 21 ) { if ( v173 > 0 ) { v175 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"gIcon_%02d_001.png", (const char *)(unsigned int)v173); goto LABEL_48; } v174 = (_BYTE *)(&dword_0 + 1); } v175 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gIcon_%02d_001.png", v174); LABEL_48: v176 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v175); v178 = cocos2d::CCSprite::createWithSpriteFrameName(v176, v177); *((_QWORD *)this + 98) = v178; v179 = CCMenuItemSpriteExtra::create(v178, 0, (__int64)this, (__int64)LevelSettingsLayer::onGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v179); v180 = *((cocos2d::CCNode **)this + 69); v181 = v171; v182 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v171 + 192LL); v183 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v179 + 184LL); v184 = v182(v181); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -32.0); cocos2d::CCPoint::operator+(v256, v184); cocos2d::CCNode::convertToNodeSpace(v257, v180, (const cocos2d::CCPoint *)v256); v183(v179, v257); v186 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"MG:", "goldFont.fnt", v185); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v186 + 160LL))(v186, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v186); v187 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v186 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, v155, (float)(*((float *)&v251 + 1) * 0.5) + 5.0); v187(v186, v257); v188 = *((_DWORD *)v217 + 91); v189 = (_BYTE *)(&dword_0 + 3); if ( v188 <= 2 ) { if ( v188 >= 0 ) { v190 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"mgIcon_%02d_001.png", (const char *)(unsigned int)v188); goto LABEL_53; } v189 = nullptr; } v190 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"mgIcon_%02d_001.png", v189); LABEL_53: v191 = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v190); v193 = cocos2d::CCSprite::createWithSpriteFrameName(v191, v192); *((_QWORD *)this + 99) = v193; v194 = CCMenuItemSpriteExtra::create(v193, 0, (__int64)this, (__int64)LevelSettingsLayer::onFGArt, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v194); v195 = *((cocos2d::CCNode **)this + 69); v196 = v186; v197 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v186 + 192LL); v198 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v194 + 184LL); v199 = v197(v196); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -32.0); cocos2d::CCPoint::operator+(v256, v199); cocos2d::CCNode::convertToNodeSpace(v257, v195, (const cocos2d::CCPoint *)v256); v198(v194, v257); if ( !*((_BYTE *)v217 + 368) ) { v200 = ButtonSprite::create( (ButtonSprite *)"Font", (const char *)&off_18 + 6, 0, 1, 0.8, "goldFont.fnt", "GJ_button_04.png", v13, 28.0); v201 = CCMenuItemSpriteExtra::create(v200, 0, (__int64)this, (__int64)LevelSettingsLayer::onSelectFont, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v201); v202 = *((cocos2d::CCNode **)this + 69); v203 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v201 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v254, v155, *((float *)&v251 + 1) * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -70.0); cocos2d::CCPoint::operator+(v256, v254); cocos2d::CCNode::convertToNodeSpace(v257, v202, (const cocos2d::CCPoint *)v256); v203(v201, v257); } } LABEL_5: v15 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v13, 30.0); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, (__int64)LevelSettingsLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v17 = *((cocos2d::CCNode **)this + 69); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v256, *(float *)&v251 * 0.5, (float)(*((float *)&v251 + 1) * 0.5) + -130.0); cocos2d::CCNode::convertToNodeSpace(v257, v17, (const cocos2d::CCPoint *)v256); v18(v16, v257); if ( *((_BYTE *)a2 + 368) ) { v54 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Disable", "goldFont.fnt", v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v54 + 160LL))(v54, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v54); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, v14 + 270.0, (float)(*((float *)&v251 + 1) * 0.5) + -90.0); v55(v54, v257); v258 = nullptr; v259 = 0; v260 = nullptr; std::string::__init((__int64 *)&v258, &byte_11B8890, 0); v56 = *(_QWORD *)v54; v57 = v54; v58 = *((cocos2d::CCNode **)this + 69); LOBYTE(v55) = *(_BYTE *)(*((_QWORD *)this + 102) + 464LL) ^ 1; v59 = (*(__int64 (__fastcall **)(__int64))(v56 + 192))(v57); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, 0.0, -30.0); cocos2d::CCPoint::operator+(v257, v59); LevelSettingsLayer::createToggleButton( (__int64)this, (unsigned __int8 *)&v258, (__int64)LevelSettingsLayer::onDisable, 0, (unsigned __int8)v55, v58, (const cocos2d::CCPoint *)v257); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); v258 = nullptr; v259 = 0; v260 = nullptr; std::string::__init((__int64 *)&v258, "Reset\nCamera", 0xCu); v60 = *((_BYTE *)a2 + 440); v61 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v257, *(float *)&v251 * 0.5, *((float *)&v251 + 1) * 0.5); ToggleButton = GameToolbox::createToggleButton( (char *)&v258, (const char *)LevelSettingsLayer::onOptionToggle, 0, v60, v61, (const cocos2d::CCPoint *)v257, (__int64)this, *((_QWORD *)this + 73), nullptr); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); (*(void (__fastcall **)(CCMenuItemToggler *, __int64))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, 1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v253, (float)(*(float *)&v251 * 0.5) + -100.0, (float)(*((float *)&v251 + 1) * 0.5) + -60.0); v64 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Target Order", "goldFont.fnt", v63); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL))(v64, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v64); v65 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v64 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, 0.0, 30.0); cocos2d::CCPoint::operator+(v257, &v253); v65(v64, v257); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v256, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v257, (const cocos2d::CCRect *)v256); v66 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v257); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v66 + 912LL))(v66, 100); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v66 + 960LL); LOWORD(v257[0]) = 0; BYTE2(v257[0]) = 0; v67(v66, v257); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v254, 50.0, 30.0); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v66 + 320LL))(v66, v254); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v66, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v66 + 184LL))(v66, &v253); v68 = CCTextInputNode::create( (CCTextInputNode *)"Order", 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", "Path of Light Rank 1"); *((_QWORD *)this + 108) = v68; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v68, 20); (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 108) + 184LL))(*((_QWORD *)this + 108), &v253); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 108), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 108), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 108) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 108) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 108) + 592LL) = 6; v258 = nullptr; v69 = *((_QWORD *)this + 108); v259 = 0; v260 = nullptr; std::string::__init((__int64 *)&v258, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v69, (__int64)&v258); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); LOWORD(v249) = -21896; BYTE2(v249) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 108), v249); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 108), 0.5); *(_QWORD *)(*((_QWORD *)this + 108) + 584LL) = (char *)this + 544; *(_BYTE *)(*((_QWORD *)this + 108) + 424LL) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 108) + 72LL))(*((_QWORD *)this + 108), 1); v71 = (GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 102) + 372LL); if ( (int)v71 > 0 ) { v72 = *((_QWORD **)this + 108); GameToolbox::intToString((unsigned __int64 *)&v258, v71); CCTextInputNode::setString(v72, (char *)&v258); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); } v253 = v253 + 200.0; v73 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Target Channel", "goldFont.fnt", v70); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v73 + 160LL))(v73, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v73); v230 = *(cocos2d::CCPoint **)(*(_QWORD *)v73 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, 30.0); cocos2d::CCPoint::operator+(v257, &v253); ((void (__fastcall *)(__int64, __int64 *))v230)(v73, v257); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v257, (const cocos2d::CCRect *)v256); v74 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v257); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v74 + 912LL))(v74, 100); v75 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 960LL); LOWORD(v257[0]) = 0; BYTE2(v257[0]) = 0; v75(v74, v257); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v74 + 320LL))(v74, v254); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v74, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v74 + 184LL))(v74, &v253); v77 = CCTextInputNode::create( (CCTextInputNode *)"Channel", 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v76); *((_QWORD *)this + 109) = v77; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v77, 20); (*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 109) + 184LL))(*((_QWORD *)this + 109), &v253); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 109), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 109), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 109) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 109) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 109) + 592LL) = 6; v258 = nullptr; v78 = *((_QWORD *)this + 109); v259 = 0; v260 = nullptr; std::string::__init((__int64 *)&v258, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v78, (__int64)&v258); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); LOWORD(v250) = -21896; BYTE2(v250) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 109), v250); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 109), 0.5); *(_QWORD *)(*((_QWORD *)this + 109) + 584LL) = (char *)this + 544; *(_BYTE *)(*((_QWORD *)this + 109) + 424LL) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 109) + 72LL))(*((_QWORD *)this + 109), 2); v79 = (GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 102) + 376LL); if ( (int)v79 > 0 ) { v80 = *((_QWORD **)this + 109); GameToolbox::intToString((unsigned __int64 *)&v258, v79); CCTextInputNode::setString(v80, (char *)&v258); if ( ((unsigned __int8)v258 & 1) != 0 ) operator delete(v260); } } else { v20 = *(_QWORD *)(*((_QWORD *)this + 102) + 384LL); v21 = *(_DWORD *)(v20 + 608); v22 = v21 != 0; if ( !v21 ) v21 = *(_DWORD *)(v20 + 604); v229 = *((cocos2d::CCPoint **)this + 102); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v257, *(float *)&v251 * 0.5, (float)(*((float *)&v251 + 1) * 0.5) + -67.0); v23 = SongSelectNode::create( v21, v22, (__int64)v229, 0, (const cocos2d::CCPoint *)v257, *((_QWORD *)this + 73), *((cocos2d::CCNode **)this + 69), 0); *((_QWORD *)this + 88) = v23; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v23, 5); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v252, v14, (float)(*((float *)&v251 + 1) * 0.5) + 135.0); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Speed:", "goldFont.fnt", v24); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v25); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v25 + 184LL))(v25, v252); SelectSettingLayer::frameForValue(2u, *(_DWORD *)(*((_QWORD *)this + 102) + 332LL), (__int64 *)&v258); v26 = (cocos2d::CCSprite *)((char *)&v258 + 1); if ( ((unsigned __int8)v258 & 1) != 0 ) v26 = (cocos2d::CCSprite *)v260; v27 = cocos2d::CCSprite::createWithSpriteFrameName(v26, (const char *)(unsigned __int8)v258); v28 = (char)v258; *((_QWORD *)this + 100) = v27; if ( (v28 & 1) != 0 ) { operator delete(v260); v27 = *((_QWORD *)this + 100); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.6); v29 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 100), 0, (__int64)this, (__int64)LevelSettingsLayer::onSpeed, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v29); v30 = *((cocos2d::CCNode **)this + 69); v31 = v25; v32 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 192LL); v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); v34 = v32(v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -34.0); cocos2d::CCPoint::operator+(v256, v34); cocos2d::CCNode::convertToNodeSpace(v257, v30, (const cocos2d::CCPoint *)v256); v33(v29, v257); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v253, v14, (float)((float)(*((float *)&v251 + 1) * 0.5) + 135.0) - 80.0); v36 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Mode:", "goldFont.fnt", v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v36); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v36 + 184LL))(v36, &v253); SelectSettingLayer::frameForValue( *(unsigned __int8 *)(*((_QWORD *)this + 102) + 341LL), *(_DWORD *)(*((_QWORD *)this + 102) + 328LL), (__int64 *)&v258); v37 = (cocos2d::CCSprite *)((char *)&v258 + 1); if ( ((unsigned __int8)v258 & 1) != 0 ) v37 = (cocos2d::CCSprite *)v260; v38 = cocos2d::CCSprite::createWithSpriteFrameName(v37, (const char *)(unsigned __int8)v258); v39 = (char)v258; *((_QWORD *)this + 101) = v38; if ( (v39 & 1) != 0 ) { operator delete(v260); v38 = *((_QWORD *)this + 101); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v38 + 160LL))(v38, 1.0); v40 = CCMenuItemSpriteExtra::create(*((_QWORD *)this + 101), 0, (__int64)this, (__int64)LevelSettingsLayer::onMode, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v40); v41 = *((cocos2d::CCNode **)this + 69); v42 = v36; v43 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 192LL); v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL); v45 = v43(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -32.0); cocos2d::CCPoint::operator+(v256, v45); cocos2d::CCNode::convertToNodeSpace(v257, v41, (const cocos2d::CCPoint *)v256); v44(v40, v257); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v254, v14, (float)((float)(*((float *)&v251 + 1) * 0.5) + 135.0) - 160.0); v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Options:", "goldFont.fnt", v46); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v47); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v47 + 184LL))(v47, v254); v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v48); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.6); v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)LevelSettingsLayer::onSettings, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v50); v51 = *((cocos2d::CCNode **)this + 69); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); v53 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v47 + 192LL))(v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v255, 0.0, -32.0); cocos2d::CCPoint::operator+(v256, v53); cocos2d::CCNode::convertToNodeSpace(v257, v51, (const cocos2d::CCPoint *)v256); v52(v50, v257); return v247; }
GD Web Decomp Icon

GD Web Decomp

Raw Source